/erp/sc/routing/storage/product/setBundled{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/storage/product/setBundled"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"sku": "skuAdd",
"product_name": "skuAddProductName",
"picture_list": [
{
"pic_url": "http://www.news.cn/xxx/1129400title0h.jpg",
"is_primary": 1
}
],
"model": "model s",
"unit": "个",
"status": 1,
"category_id": 1,
"category": "分类1",
"brand_id": 2,
"brand": "品牌2",
"product_developer": "张三",
"product_developer_uid": 12,
"product_duty_uids": [
1,
2,
3
],
"is_append_product_duty": 1,
"product_creator_uid": 13,
"description": "有logo 白盒",
"group_list": [
{
"sku": "skuAdd1-1",
"quantity": 2
}
]
},
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "8290CE90-93C5-4529-3A51-CA45B7C0CF0D",
"response_time": "2023-02-27 15:41:30",
"data": {
"product_id": 2125067
},
"total": 0
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | sku | SKU(添加时必填) | string | — | 必填 | SKU(添加时必填) |
| 2 | product_name | 品名(添加时必填) | string | — | 必填 | 品名(添加时必填) |
| 3 | picture_list | 产品图片信息 | array<object> | — | 可选 | 产品图片信息 |
| 3.1 | pic_url | 产品图片链接 | string | — | 可选 | 产品图片链接 |
| 3.2 | is_primary | 是否产品主图 | integer | — | 可选 | 是否产品主图:0 否,1 是 |
| 4 | model | 型号 | string | — | 可选 | 型号 |
| 5 | unit | 单位(商品单位 | string | — | 可选 | 单位(商品单位:套、个、台) |
| 6 | status | 状态【默认1】 | integer | — | 可选 | 状态【默认1】:0 停售,1 在售,2 开发中,3 清仓 |
| 7 | category_id | 分类id | integer | — | 可选 | 分类id,与分类同时存在时,优先取分类id |
| 8 | category | 分类 | string | — | 可选 | 分类 |
| 9 | brand_id | 品牌id | integer | — | 可选 | 品牌id,与品牌同时存在时,优先取品牌id |
| 10 | brand | 品牌 | string | — | 可选 | 品牌 |
| 11 | product_developer | 开发者名称 | string | — | 可选 | 开发者名称 |
| 12 | product_developer_uid | 开发者id | integer | — | 可选 | 开发者id,与开发者名称同时填写时,以开发者id为准 |
| 13 | product_duty_uids | 负责人id | array<any> | — | 可选 | 负责人id |
| 14 | is_append_product_duty | 负责人是否追加创建人 | integer | — | 可选 | 负责人是否追加创建人:0 否,1 是;默认1,该字段只有编辑SKU时该才生效 |
| 15 | product_creator_uid | 创建人ERP id | integer | — | 可选 | 创建人ERP id,默认 api 用户id |
| 16 | description | 商品描述 | string | — | 可选 | 商品描述 |
| 17 | group_list | 组合商品列表 | array<object> | — | 可选 | 组合商品列表,捆绑产品子产品的总数量要大于1 |
| 17.1 | sku | 子商品 | string | — | 可选 | 子商品 |
| 17.2 | quantity | 商品比例数 | integer | — | 可选 | 商品比例数 |
| 17.3 | cost_ratio | 费用比例 | integer | — | 可选 | 费用比例,默认为空,若填写则每项必填,且总和为1 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 提示消息 | string | success | 必填 | 提示消息 |
| 3 | error_details | 错误信息 | array<any> | — | 必填 | 错误信息 |
| 4 | request_id | 请求链路id | string | 81CA6A9A-A5C4-8B5E-5FED-E1C2EC04753C | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2020-12-01 12:11:12 | 必填 | 响应时间 |
| 6 | data | 响应数据 | object | — | 必填 | 响应数据 |
| 6.1 | product_id | 本地产品id | integer | 2125067 | 必填 | 本地产品id |
领星ERP的接口:添加 / 编辑捆绑产品(/erp/sc/routing/storage/product/setBundled),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。