All categories
Use the All categories API to retrieve Walmart categories within a specific 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/departmentId \ --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" } ] }
}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 about 19 hours ago

