List Taxonomies
Retrieve list of taxonomies
Request Parameters
| Parameters | Notes | Type | Required | Possible Values |
|---|---|---|---|---|
| advertiserId | ID of advertiser | integer | Y | Unique numeric identifier |
| filter[level] | Specifies the depth of the taxonomy hierarchy to return. level= 1: returns only department Note: default value is 3 | integer | N | Values: 1,2,3 |
| filter[brandName] | Taxonomy applicable to the specified brand is returned Note: Supports 'exact' match | array of strings | N | Valid brand name for taxonomy list to be retrieved |
| filter[department] | Retrieve taxonomy hierarchy for the given department Note:
| array of strings | N | Valid department |
| filter[category] | Retrieve taxonomy hierarchy for the given category Note:
| array of strings | N | Valid category |
| filter[subCategory] | Retrieve taxonomy hierarchy for the given subcategory Note:
| array of strings | N | Valid subcategory |
| startIndex | Use this parameter to fetch specific number of items 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 items, set startIndex=0 and count=10 |
| count | Defines the total number of items to be returned. 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 items, 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/taxonomies/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, "filter[level]": 3, "filter[brandName]": ["MM6"], "filter[department]": ["Clothing"], "filter[category]": ["Accessories"], "filter[subCategory]": ["Handbags"], "startIndex": 0, "count": 5, }'
Get List of taxonomies - Without any filters Request
curl -X POST \
'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/taxonomies/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": 16534, }'
List of taxonomies - With only Level 1 Request
curl -X POST \
'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/taxonomies/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": 16354,
"filter[level]": 1
}'
Get List of Taxonomies - With only Brand Filter
curl -X POST \
'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/taxonomies/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": 16354,
"filter[brandName]": ["MM6 by Mason"]
}'
Get List of Taxonomies - With only department Filter
curl -X POST \
'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/taxonomies/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": 16354254,
"filter[department]": ["Office"]
}'
Get List of Taxonomies - With combination of department and category
curl -X POST \
'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/taxonomies/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": 16354, "filter[department]": ["Office"], "filter[category]": ["Tape & Adhesives" ] }'
Get List of Taxonomies - Combination of department and level=2 Request
curl -X POST \
'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/taxonomies/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": 16354,
"filter[level]": 2,
"filter[department]": ["Office"]
}'
Get List of Taxonomies - Combination of category and level=1 Request
curl -X POST \
'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/taxonomies/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": 16354,
"filter[level]": 1,
"filter[category]": ["Tape & Adhesives"] }' Response
| Element | Description | Optional field/Nullable? | Type | Possible values |
|---|---|---|---|---|
| code | The response code can have following values:
Click here for more information about Status Codes and Errors | Y | string | success, failure |
| details | List of error codes associated with the request. Use these codes for programmatic error handling. | N | array<string> | Refer to this link for detailed error messages |
| totalResults | Total number of rows returned in the response. Only returned when code=success | integer | ||
| data | data will populate details of items, retrieved through request if code is success
Only returned when code=success | Y | array | |
| message | High-level summary of the error, when available. | Y | string | |
| errors | Detailed information about one or more errors, including the affected field (when applicable), error code, and a human-readable description. | Y | array<object> |
errors array object details
| Field | Description | Optional field/Nullable? | Type | Possible values |
|---|---|---|---|---|
| field | JSON field associated with the error. Omitted if the error applies to the request as a whole. | Y | string | |
| errorType | Machine-readable error code that uniquely identifies the error condition. Applications should use this value for error handling logic. | N | string | |
| description | Human-readable explanation of the error, including why the request failed and, when possible, how to resolve it | N | string |
Sample Response - Get List of taxonomies
{ "code": "success", "totalResults": 8, "data": [ { "level": 1, "name": "x", "attributes": { "type": "age_group", "values": [ { "value": "Child", "count": 25 }, { "value": "Adult", "count": 589 } ] }, "taxonomies": { "level": 2, "name": "y", "attributes": { "type": "age_group", "values": [ { "value": "Child", "count": 25 }, { "value": "Adult", "count": 589 } ] } }, "taxonomies": { "level": 3, "name": "z", "itemCount": 8661, "attributes": { "type": "age_group", "values": [ { "value": "Child", "count": 25 }, { "value": "Adult", "count": 589 }, { "value": "Toddler", "count": 8 } ] } } } ]
}
Sample Response - Get List of taxonomies - Without any filter
{ "code": "success", "totalResults": 1, "data": [ { "level": 1, "name": "x", "taxonomies": { "level": 2, "name": "y", "taxonomies": { "level": 3, "name": "z", "itemCount": 11638 } } } ]
}Sample Response - Get List of taxonomies - With only Level 1
{ "code": "success", "totalResults": 1, "data": [ { "level": 1, "name": "Health & Beauty", "itemCount": 2, "attributes": { "type": "age_group", "values": [ { "value": "Child", "count": 25 }, { "value": "Adult", "count": 589 } ] } } ]
}
Sample Response - Get List of taxonomies - With only Brand Filter
{ "code": "success", "totalResults": 1, "data": [ { "level": 1, "name": "Health & Beauty", "taxonomies": { "level": 2, "name": "y", "taxonomies": { "level": 3, "name": "z", "itemCount": 247628 } } } ]
}Sample Response - Get List of taxonomies - With only Department Filter
{ "code": "success", "totalResults": 1546, "data": [ { "level": 1, "name": "x", "taxonomies": { "level": 2, "name": "y", "taxonomies": { "level": 3, "name": "z", "itemCount": 247628 } } } ]
}Sample Response Failure
{ "code": "failure", "details": ["string"], "message": "string",
"errors": [ { "field": "string", "errorType": "string", "description": "string" } ]
}Updated 15 days ago
