All categories
Market availability: US only
Use the All categories API to retrieve categories within a Walmart department. This is typically used after selecting a department from the All departments API to support category selection, mapping, and internal classification.
Endpoint
GET /v3/utilities/taxonomy/departments/{departmentId}Function
Use this API to access:
- Department information
- Department name
- Department ID
- Category names
- Category IDs
Request sample
curl --request GET \ --url https://marketplace.walmartapis.com/v3/utilities/taxonomy/departments \ --header 'WM_GLOBAL_VERSION: 3.1' \ --header 'WM_MARKET: us' \ --header 'accept: application/json'Modify your code
1. Replace the department ID
Replace departmentId in the endpoint with the department ID which you want to retrieve category information.
2. Specify the Market
Example:
--header 'WM_MARKET: us'
3. Include authentication credentials
Ensure the request includes the required Walmart Marketplace authentication headers and a valid access token.
Response sample
200
{ "status": "SUCCESS", "response": { "departmentName": "LAUNDRY AND HOUSEHOLD CHEMICALS", "departmentId": "44003", "category": [ { "categoryName": "CLEANING PRODUCTS", "categoryId": "44106" }, { "categoryName": "LAUNDRY CARE", "categoryId": "44108" }, { "categoryName": "HOUSEHOLD CHEMICALS L3", "categoryId": "1044076" }, { "categoryName": "HOME FRAGRANCE", "categoryId": "44107" }, { "categoryName": "CLEANING TOOLS", "categoryId": "1044080" } ] }
}403
{ "error": [ { "code": "FORBIDDEN.GMP_GATEWAY_API", "field": "MarketNotSupported.", "description": "This capability isn’t available for the market you requested. Please refer to the market availability within the API reference section for this API on <https://developer.walmart.com/> for details.", "info": "Access denied.", "severity": "ERROR", "category": "DATA", "causes": [], "errorIdentifiers": {} } ]
}Result
Category taxonomy information
status:Indicates whether the API request was completed successfullyresponse:Contains the department information and associated categoriesdepartmentName:Identifies the name of the departmentdepartmentId:Identifies the department using a unique IDcategory:Contains the list of categories associated with the departmentcategoryName:Identifies the name of a categorycategoryId:Identifies a category using a unique ID
Next steps
After successfully retrieving categories, review the returned category names and IDs to identify the classifications associated with the selected department.
Use the category information to support product classification and maintain accurate category mappings within your catalog management system.
Updated 2 days ago

