查询产品分类详细信息
企业可通过此接口查询产品分类详细信息 及 下一级子分类信息
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/product/library/query_product_category_info
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | str | 是 | 调用接口凭证 |
Body参数:
{
"parent_id": 56,
"is_entrance": false
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
parent_id | long | 是 | 产品类型ID或父产品分类ID |
is_entrance | bool | 否 | 子级是否需要加入全部和未分类,默认值:false |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"product_category_infos": [
{
"product_category_id": 32,
"product_category_name": "test_11f821648f80",
"product_type_id": 99,
"parent_id": 57,
"children_category_list": [
{
"product_category_id": 32,
"product_category_name": "test_11f821648f80",
"product_type_id": 99,
"parent_id": 57,
"children_category_list": null
},
{
"product_category_id": 32,
"product_category_name": "test_11f821648f80",
"product_type_id": 99,
"parent_id": 57,
"children_category_list": null
}
]
}
]
},
"sub_code": "00000"
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | 响应对象 |
product_category_infos | object[] | 产品分类信息集合 |
product_category_id | long | 产品分类ID |
product_category_name | string | 产品分类名称 |
product_type_id | long | 产品类型ID |
parent_id | long | 父产品类型ID |
children_category_list | object[] | 下一级子产品类型信息集合 |