English
English
简体中文
Contact Us
Register
Log In

Get Commodity Categories

Last Updated on : 2022-09-27 06:12:22download

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

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
mall_codeStringquerytrueThe code of the mall.
langStringquerytrueThe abbreviation of a specified language.

Return parameter

Parameter nameTypeDescription
resultList

Description of result

Parameter nameTypeDescription
codeStringThe code of a specified category.
nameStringThe name of a specified category.
levelIntegerThe level of a specified category.
childrenListThe 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.