Get Sub Category Brands
You can list all brands belonging to a sub category using this service. Brand IDs returned here can be used as the subCategoryBrandId filter parameter on the Get Products service.
Request
curl --location --request GET '<BASE_URL>/sub-category-brands?subCategoryId=36'
--header 'Content-Type: application/json'
--header 'Authorization: <jwtToken>'
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| subCategoryId | Integer | Yes | The sub category ID to list brands for |
Response
200 OK
[
{
"id": 886,
"name": "Apple",
"subCategoryId": 36
},
{
"id": 887,
"name": "Samsung",
"subCategoryId": 36
}
]
Response Fields
| Field | Type | Description |
|---|---|---|
| id | Integer | Brand ID |
| name | String | Brand name |
| subCategoryId | Integer | Parent sub category ID |