/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
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | sku | SKU(添加时必填) | string | — | Required | SKU(添加时必填) |
| 2 | product_name | 品名(添加时必填) | string | — | Required | 品名(添加时必填) |
| 3 | picture_list | 产品图片信息 | array<object> | — | Optional | 产品图片信息 |
| 3.1 | pic_url | 产品图片链接 | string | — | Optional | 产品图片链接 |
| 3.2 | is_primary | 是否产品主图 | integer | — | Optional | 是否产品主图:0 否,1 是 |
| 4 | model | 型号 | string | — | Optional | 型号 |
| 5 | unit | 单位(商品单位 | string | — | Optional | 单位(商品单位:套、个、台) |
| 6 | status | 状态【默认1】 | integer | — | Optional | 状态【默认1】:0 停售,1 在售,2 开发中,3 清仓 |
| 7 | category_id | 分类id | integer | — | Optional | 分类id,与分类同时存在时,优先取分类id |
| 8 | category | 分类 | string | — | Optional | 分类 |
| 9 | brand_id | 品牌id | integer | — | Optional | 品牌id,与品牌同时存在时,优先取品牌id |
| 10 | brand | 品牌 | string | — | Optional | 品牌 |
| 11 | product_developer | 开发者名称 | string | — | Optional | 开发者名称 |
| 12 | product_developer_uid | 开发者id | integer | — | Optional | 开发者id,与开发者名称同时填写时,以开发者id为准 |
| 13 | product_duty_uids | 负责人id | array<any> | — | Optional | 负责人id |
| 14 | is_append_product_duty | 负责人是否追加创建人 | integer | — | Optional | 负责人是否追加创建人:0 否,1 是;默认1,该字段只有编辑SKU时该才生效 |
| 15 | product_creator_uid | 创建人ERP id | integer | — | Optional | 创建人ERP id,默认 api 用户id |
| 16 | description | 商品描述 | string | — | Optional | 商品描述 |
| 17 | group_list | 组合商品列表 | array<object> | — | Optional | 组合商品列表,捆绑产品子产品的总数量要大于1 |
| 17.1 | sku | 子商品 | string | — | Optional | 子商品 |
| 17.2 | quantity | 商品比例数 | integer | — | Optional | 商品比例数 |
| 17.3 | cost_ratio | 费用比例 | integer | — | Optional | 费用比例,默认为空,若填写则每项必填,且总和为1 |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | Required | 状态码,0 成功 |
| 2 | message | 提示消息 | string | success | Required | 提示消息 |
| 3 | error_details | 错误信息 | array<any> | — | Required | 错误信息 |
| 4 | request_id | 请求链路id | string | 81CA6A9A-A5C4-8B5E-5FED-E1C2EC04753C | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2020-12-01 12:11:12 | Required | 响应时间 |
| 6 | data | 响应数据 | object | — | Required | 响应数据 |
| 6.1 | product_id | 本地产品id | integer | 2125067 | Required | 本地产品id |
The 添加 / 编辑捆绑产品 API (/erp/sc/routing/storage/product/setBundled) of 领星ERP is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 领星ERP version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.