Get Brands
Use this API to retrieve a full list of brands.
Query Parameters
- page number
Default value:
1
By default first page will be listed. For navigating through pages, use the page parameter.
- limit number
Default value:
20
The number of results to return per request.
- id number[]
Unique identifier of the brand.
- slug string[]
A common or friendly name for the brand, should be in lowercase.
Responses
- 200
Success response
- application/json
- Example
{
"statusCode": 200,
"data": {
"results": [
{
"_id": 33,
"name": "KFC Chicken",
"slug": "kfc-chicken",
"logoUrl": "imageUrl"
}
],
"pagination": {
"currentPage": 1,
"lastPage": 1,
"perPage": 20,
"totalResults": 3
}
}
}
GET /ecommerce/v1/brands
Authorization
type: oauth2flow: clientCredentialsscopes: brand:read
Request
Request
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/brands' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/brands' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/brands' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/brands' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/brands' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/brands' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/brands' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'