List Brands
Retrieve the list of advertiser's brands
POST/api/v1/brands/list
Request Parameters
Parameters | Notes | Type | Required | Possible Values |
---|---|---|---|---|
advertiserId | ID of advertiser | integer | Y | Unique numeric identifier |
isRestricted | specifies whether to retrieve from list of advertiser's brands or all brands Note:
| Boolean | N | Values:
|
filter[brandName] | Specify the name of the brand to search for Note:
| string | N | Valid brand name for items to be retrieved |
startIndex | Use this parameter to fetch specific number of brands from a list, in combination with count. This indicates the starting position of the list Note: Value of startIndex must be greater than and equal to 0. The default value is 0_ | integer | N | Integer value Example: To return the first ten catalog item brands, set startIndex=0 and count=10 |
count | Defines the total number of items to be returned. You can use this parameter in combination with startIndex, to fetch specific number of item brands from a list. Note: Value of count must be greater than 0. The default value is 100 | integer | N | Integer value Example: To return the first ten catalog item brands, set startIndex=0 and count=1 |
Note:
"The error message TOO_MANY_FILTERS_PROVIDED_IN_REQUEST is returned when too many filters are used and the request is not processed"
Sample Request
curl -X POST \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/brands/list' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>'
--header 'WM_SEC.AUTH_SIGNATURE: **************' \ --header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779' \ --data '{ "advertiserId": 1, "isRestricted": true, "filter[brandName]": ["Brand Name"], "startIndex": 0, "count": 5 } '
Response
Element | Description | Type |
---|---|---|
code | The response code can have following values: • success • failure | string |
details | Details will populate an error message in case of code=failure | string |
totalResults | Total number of rows returned in the response | integer |
data | data will populate details of brands retrieved through request, if code is success
| array |
Sample Response
{ "code": "success", "totalResults": 1, "data": [ { "brandName": " Brand Name", "itemCount": 891 } ]
}
Updated about 1 month ago