Retrieve all available product categories, regardless of market variations. Product categories are updated frequently, so it’s recommended to call the API in real time to ensure you are using the latest category data. Caching category data locally may result in using outdated information, leading to errors when creating global products.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The BCP-47 locale codes for displaying category information. Default: The default locale of your shop. Possible values:
cs-CZde-ATde-BEde-DEel-GRen-GBen-IEen-USes-ESes-MXfr-FRfr-BEhu-HUid-IDit-ITja-JPms-MYnl-NLnl-BEpl-PLpt-BRpt-PTth-THvi-VNzh-CN
Filter categories by this keyword in local_name.
Filter categories by the category tree version.Possible values based on region:
- US, EU and SEA: v2, represents the 7-level category tree. Important: For US, EU and SEA shops, you must pass v2 when using this API.
- Other regions: v1, represents the 3-level category tree.Default: v1
Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
The list of categories that meet the query conditions.
object
The category ID.
The parent category ID.
For the root category, the parent ID is 0.
The name of the category.
A flag to indicate if the category is a leaf category. Note: You can only create or edit products that belong to a leaf category.
The shop’s permission status for this category. Possible values:
- AVAILABLE: You have the permission to create products in this category.
- NON_MAIN_CATEGORY: This category is out of scope for this seller, and you do not have permission to use it. Contact your account manager for assistance.
Example
{ "code": 0, "data": { "categories": [ { "id": "600001", "parent_id": "0", "local_name": "Home Supplies", "is_leaf": false, "permission_statuses": [ "AVAILABLE" ] } ] }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}