/erp/sc/routing/inventoryReceipt/StorageProcess/addStorageProcessOrder{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/inventoryReceipt/StorageProcess/addStorageProcessOrder"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"type": 1,
"wid": 1,
"remark": "备注",
"is_no_lock": "0",
"product_list": [
{
"combo_sku": "xxxxxx",
"combo_sid": 0,
"combo_fnsku": "xxx",
"quantity_num": 0,
"combo_whb_code": "1",
"process_fee": "1",
"remark": "",
"single_product_list": [
{
"sku": "xxx",
"fnsku": "",
"sid": 0,
"price_scale": "",
"whb_code": "1"
}
]
}
]
},
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "D4F7833C-53E7-207E-E4AB-E0BA96D0DA13",
"response_time": "2022-08-23 16:56:31",
"data": {
"order_sn": "PT230321003"
},
"total": 0
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | type | 单据类型 | integer | — | Required | 单据类型:1 加工单,2 拆分单 |
| 2 | wid | 系统仓库id | integer | — | Required | 系统仓库id |
| 3 | remark | 备注 | string | — | Optional | 备注 |
| 4 | is_no_lock | 生成加工单状态 | string | — | Optional | 生成加工单状态:0默认,1待配货 |
| 5 | product_list | 产品信息 | array<object> | — | Required | 产品信息 |
| 5.1 | combo_sku | 组合品sku | string | — | Required | 组合品sku |
| 5.2 | combo_sid | 组合品店铺id | integer | — | Required | 组合品店铺id,没有传0即可 |
| 5.3 | combo_fnsku | 组合品fnsku | string | — | Optional | 组合品fnsku |
| 5.4 | quantity_num | 加工量 / 拆分量 | integer | — | Required | 加工量 / 拆分量 |
| 5.5 | combo_whb_code | 加工单组合品入库仓位 | string | — | Optional | 加工单组合品入库仓位,不传默认暂存可用;拆分单不用传 【查询本地仓位列表 接口对应字段【storage_bin】】 |
| 5.6 | process_fee | 加工费【默认0】 | number | — | Optional | 加工费【默认0】;加工单专有,拆分单可不传 |
| 5.7 | single_product_list | 单品明细项 | array<object> | — | Required | 单品明细项 |
| 5.7.1 | sku | 单品sku | string | — | Required | 单品sku |
| 5.7.2 | fnsku | 单品fnsku | string | — | Optional | 单品fnsku |
| 5.7.3 | sid | 单品店铺id | integer | — | Required | 单品店铺id,组合品店铺id为0时此字段值传0 |
| 5.7.4 | price_scale | 单品拆分比例 | number | — | Required | 单品拆分比例 |
| 5.7.5 | whb_code | 拆分单的单品入库仓位 | string | — | Optional | 拆分单的单品入库仓位,不传默认可用暂存;加工单不用传 【查询本地仓位列表 接口对应字段【storage_bin】】 |
| 5.8 | remark | remark | string | — | Optional | remark |
| 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 | D4F7833C-53E7-207E-E4AB-E0BA96D0DA13 | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2022-08-23 16:56:31 | Required | 响应时间 |
| 6 | data | 响应数据 | object | — | Required | 响应数据 |
| 6.1 | order_sn | 加工单/拆分单 单号 | string | PT230321003 | Required | 加工单/拆分单 单号 |
| 7 | total | 总数 | integer | 0 | Required | 总数 |
The 创建加工单 / 拆分单 API (/erp/sc/routing/inventoryReceipt/StorageProcess/addStorageProcessOrder) 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.