查询商品清单树
https://openapi.guanaitong.tech/commerce/product/getInventoryCategoryTree
正式环境和测试环境的域名请见通用协议
POST
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
| inventory_id | 是 | Integer | 清单ID,对接前给出,需关爱通先配置商城 |
POST /commerce/produc/getInventoryCategoryTree HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/x-www-form-urlencoded
cache-control: no-cache
access_token=48b3b588d536ef9082223f8368a17140&sign=39c4b425ce9aaba0ff9ae2bc8fa82837b4c294d9
&inventory_id=10001×tamp=1573784826
| 参数名称 | 描述 |
| code | 返回码。详见错误代码。 |
| msg | 如果错误,返回错误信息。 |
| data | TreeNode对象 |
| TreeNode对象 | |
|---|---|
| id | Long类型,商品清单 |
| name | String类型,商品清单名称 |
| super_id | Long类型,供应商 |
| children | List[TreeNode]类型,子清单 |
| is_show | 是否显示1是2否 |
{
"code":0,
"msg":"OK",
"data":{
"children":[
{
"id":23445,
"name":"主清单",
"super_id":"123",
"is_show":"1",
"children":[],
}
],
"id":23445,
"name":"主清单",
"super_id":"123",
"is_show":"1"
}
}
{"code":1000210002,"data":null,"msg":"sign check failed!"}