Get Commodity Categories

Last Updated on : 2023-06-15 05:55:52

Set the information about commodity categories when a commodity is added.

API address

GET: /v1.0/sellercenter/commodity/categories

Request parameter

Parameter name Type IN Required Description
mall_code String query true The code of the mall.
lang String query true The abbreviation of a specified language.

Return parameter

Parameter name Type Description
result List

Description of result

Parameter name Type Description
code String The code of a specified category.
name String The name of a specified category.
level Integer The level of a specified category.
children List The sub-category.

Request example

GET: /v1.0/sellercenter/commodity/categories?mall_code=8h4tiureddm8&lang=zh

Return example

{
    "result": [
        {
            "code": "CTaklzeezc54xc",
            "level": 1,
            "children": [
                {
                    "code": "CTaklzi582p0eq",
                    "level": 2,
                    "children": [
                        {
                            "code": "CTaklzokjyo5jk",
                            "level": 3,
                            "name": "Refrigerator"
                        }
                    ],
                    "name": "Small Home Appliances"
                }
            ],
            "name": "Electrical Appliances"
        }
    ],
    "t": 1624963184322,
    "success": true
}

Error code

For more information, see error code.