Get Commodity Categories

Last Updated on : 2024-01-12 02:38:16download

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.