Get Frontend Category

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

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 name Type IN Required Description
mall_code String body true The code of the specified mall.
site_code String body true The code of the specified site.
lang String body false The language.

Return parameter

Parameter name Type Description
result ShowcaseTreeOpenApiVO The returned result.

Description of result

Parameter name Type Description
code String The code of the specified category.
name String The name of the specified category.
level Integer The level of the specified category.
children List The 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.