Get Frontend Category

Last Updated on : 2024-01-12 02:42:19download

Based on the mall code and site code, get the commodity categories available in the frontend.

API address

POST: /v1.0/cloud/ecm/commodity/showcases

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
mall_codeStringbodytrueThe code of the specified mall.
site_codeStringbodytrueThe code of the specified site.
langStringbodyfalseThe language.

Return parameter

Parameter nameTypeDescription
resultShowcaseTreeOpenApiVOThe returned result.

Description of result

Parameter nameTypeDescription
codeStringThe code of the specified category.
nameStringThe name of the specified category.
levelIntegerThe level of the specified category.
childrenListThe sub-category.

Request example

POST: /v1.0/cloud/ecm/commodity/showcases
{
  "mall_code": "8h4tiureddm***",
  "site_code": "CN",
  "lang": "EN"
}

Return example

{
    "result": [
        {
            "code": "Cbgrc6mvk***",
            "level": 1,
            "children": [
            ],
            "name": "Electrical"
        }
    ],
    "t": 1681381201000,
    "success": true
}

Error code

For more information, see error code.