/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
}
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | sku | sku | string | — | Required | SKU |
| 2 | product_duty_uids | 辅料负责人 UID 列表 | array<integer> | — | Optional | 辅料负责人 UID 列表,最多 50 人,允许传空数组 |
| 3 | product_name | 品名 | string | — | Required | 品名 |
| 4 | cg_price | 采购 | number | — | Optional | 采购:采购成本(人民币) |
| 5 | cg_product_length | 采购 | number | — | Optional | 采购:单品规格-长(CM) |
| 6 | cg_product_width | 采购 | number | — | Optional | 采购:单品规格-宽(CM) |
| 7 | cg_product_height | 采购 | number | — | Optional | 采购:单品规格-高(CM) |
| 8 | cg_product_net_weight | 采购 | number | — | Optional | 采购:单品净重(G) |
| 9 | supplier_quote | 供应商报价信息(不传该参数则清空产品供应商报价) | array<object> | — | Optional | 供应商报价信息(不传该参数则清空产品供应商报价) |
| 9.1 | erp_supplier_id | 领星ERP供应商id | integer | — | Optional | 领星ERP供应商id |
| 9.2 | supplier_id | 客户系统供应商id | integer | — | Optional | 客户系统供应商id,没有填这个值或者对应供应商不存在,则取erp_supplier_id |
| 9.3 | supplier_product_url | 采购链接 | array<any> | — | Optional | 采购链接,字符串数组,最多20个,没有则传空数组 |
| 9.4 | is_primary | 是否首选供应商 | integer | — | Optional | 是否首选供应商:0-否,1:是 |
| 9.5 | quotes | 报价信息 | array<object> | — | Optional | 报价信息 |
| 9.5.1 | currency | 报价币种 | string | — | Optional | 报价币种,目前只有CNY和USD |
| 9.5.2 | is_tax | 是否含税 | integer | — | Optional | 是否含税:0-否,1-是 |
| 9.5.3 | tax_rate | 税率 | integer | — | Optional | 税率,为空则表示为0 |
| 9.5.4 | step_prices | 阶梯价信息 | array<object> | — | Optional | 阶梯价信息 |
| 9.5.4.1 | moq | 最小起订量 | integer | — | Optional | 最小起订量,最小值为1 |
| 9.5.4.2 | price_with_tax | 含税单价 | number | — | Optional | 含税单价,4位小数 |
| 10 | remark | 辅料描述 | string | — | Required | 辅料描述 |
| 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 | 请求链路 | string | CCF38623-DE1A-004F-0961-90A6AF265013 | Required | 请求链路 |
| 5 | response_time | 响应时间 | string | 2020-04-30 17:33:32 | Required | 响应时间 |
| 6 | data | 响应数据 | object | — | Required | 响应数据 |
| 6.1 | product_id | 辅料产品id | integer | 1010 | Required | 辅料产品id |
The 添加 / 编辑辅料 API (/erp/sc/routing/storage/product/setAux) 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.