/erp/sc/routing/storage/product/setAux{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/storage/product/setAux"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"sku": "AUX11111",
"product_name": "AUX11111",
"cg_price": "",
"cg_product_length": "",
"cg_product_width": "",
"cg_product_height": "",
"cg_product_net_weight": "",
"supplier_quote": [
{
"erp_supplier_id": 1,
"supplier_id": 0,
"supplier_product_url": [],
"quote_remark": "",
"is_primary": 1,
"quotes": [
{
"currency": "CNY",
"is_tax": 0,
"tax_rate": 0,
"step_prices": [
{
"moq": 0,
"price_with_tax": 0
}
]
}
]
}
],
"remark": "备注"
},
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "CCF38623-DE1A-004F-0961-90A6AF265013",
"response_time": "2021-11-11 11:14:33",
"data": {
"product_id": 1010
}
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | sku | sku | string | — | 必填 | SKU |
| 2 | product_duty_uids | 辅料负责人 UID 列表 | array<integer> | — | 可选 | 辅料负责人 UID 列表,最多 50 人,允许传空数组 |
| 3 | product_name | 品名 | string | — | 必填 | 品名 |
| 4 | cg_price | 采购 | number | — | 可选 | 采购:采购成本(人民币) |
| 5 | cg_product_length | 采购 | number | — | 可选 | 采购:单品规格-长(CM) |
| 6 | cg_product_width | 采购 | number | — | 可选 | 采购:单品规格-宽(CM) |
| 7 | cg_product_height | 采购 | number | — | 可选 | 采购:单品规格-高(CM) |
| 8 | cg_product_net_weight | 采购 | number | — | 可选 | 采购:单品净重(G) |
| 9 | supplier_quote | 供应商报价信息(不传该参数则清空产品供应商报价) | array<object> | — | 可选 | 供应商报价信息(不传该参数则清空产品供应商报价) |
| 9.1 | erp_supplier_id | 领星ERP供应商id | integer | — | 可选 | 领星ERP供应商id |
| 9.2 | supplier_id | 客户系统供应商id | integer | — | 可选 | 客户系统供应商id,没有填这个值或者对应供应商不存在,则取erp_supplier_id |
| 9.3 | supplier_product_url | 采购链接 | array<any> | — | 可选 | 采购链接,字符串数组,最多20个,没有则传空数组 |
| 9.4 | is_primary | 是否首选供应商 | integer | — | 可选 | 是否首选供应商:0-否,1:是 |
| 9.5 | quotes | 报价信息 | array<object> | — | 可选 | 报价信息 |
| 9.5.1 | currency | 报价币种 | string | — | 可选 | 报价币种,目前只有CNY和USD |
| 9.5.2 | is_tax | 是否含税 | integer | — | 可选 | 是否含税:0-否,1-是 |
| 9.5.3 | tax_rate | 税率 | integer | — | 可选 | 税率,为空则表示为0 |
| 9.5.4 | step_prices | 阶梯价信息 | array<object> | — | 可选 | 阶梯价信息 |
| 9.5.4.1 | moq | 最小起订量 | integer | — | 可选 | 最小起订量,最小值为1 |
| 9.5.4.2 | price_with_tax | 含税单价 | number | — | 可选 | 含税单价,4位小数 |
| 10 | remark | 辅料描述 | string | — | 必填 | 辅料描述 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 错误信息 | string | success | 必填 | 错误信息 |
| 3 | error_details | 具体错误信息 | array<any> | — | 必填 | 具体错误信息 |
| 4 | request_id | 请求链路 | string | CCF38623-DE1A-004F-0961-90A6AF265013 | 必填 | 请求链路 |
| 5 | response_time | 响应时间 | string | 2020-04-30 17:33:32 | 必填 | 响应时间 |
| 6 | data | 响应数据 | object | — | 必填 | 响应数据 |
| 6.1 | product_id | 辅料产品id | integer | 1010 | 必填 | 辅料产品id |
领星ERP的接口:添加 / 编辑辅料(/erp/sc/routing/storage/product/setAux),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。