/erp/sc/routing/storage/category/set{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/storage/category/set"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"data": [
{
"id": 1,
"parent_cid": 0,
"title": "衣服",
"category_code": "Bo135152"
}
]
},
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "71936B27-D0AE-8436-7F4F-62BEC7201AAE",
"response_time": "2021-11-11 18:21:45",
"data": [
{
"title": "华为2",
"parent_cid": "",
"id": "41"
}
],
"total": 1
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | data | 请求数据 | array<object> | — | 必填 | 请求数据 |
| 1.1 | id | 为空时新增 | integer | — | 可选 | 为空时新增,不为空时编辑,查询本地产品分类列表对应cid字段 |
| 1.2 | parent_cid | 父级分类id | integer | — | 可选 | 父级分类id |
| 1.3 | title | 分类名称 | string | — | 必填 | 分类名称 |
| 1.4 | category_code | 分类简码 | string | — | 必填 | 分类简码 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 返回信息 | string | success | 必填 | 返回信息 |
| 3 | error_details | 错误信息 | array<any> | — | 必填 | 错误信息 |
| 4 | request_id | 请求链路id | string | — | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2021-01-11 14:49:12 | 必填 | 响应时间 |
| 6 | data | 成功的数据 | array<object> | — | 必填 | 成功的数据 |
| 6.1 | id | 分类id | string | 3 | 必填 | 分类id |
| 6.2 | title | 分类名称 | string | 衣服 | 必填 | 分类名称 |
领星ERP的接口:添加 / 编辑产品分类(/erp/sc/routing/storage/category/set),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。