/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
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | type | 单据类型 | integer | — | 必填 | 单据类型:1 加工单,2 拆分单 |
| 2 | wid | 系统仓库id | integer | — | 必填 | 系统仓库id |
| 3 | remark | 备注 | string | — | 可选 | 备注 |
| 4 | is_no_lock | 生成加工单状态 | string | — | 可选 | 生成加工单状态:0默认,1待配货 |
| 5 | product_list | 产品信息 | array<object> | — | 必填 | 产品信息 |
| 5.1 | combo_sku | 组合品sku | string | — | 必填 | 组合品sku |
| 5.2 | combo_sid | 组合品店铺id | integer | — | 必填 | 组合品店铺id,没有传0即可 |
| 5.3 | combo_fnsku | 组合品fnsku | string | — | 可选 | 组合品fnsku |
| 5.4 | quantity_num | 加工量 / 拆分量 | integer | — | 必填 | 加工量 / 拆分量 |
| 5.5 | combo_whb_code | 加工单组合品入库仓位 | string | — | 可选 | 加工单组合品入库仓位,不传默认暂存可用;拆分单不用传 【查询本地仓位列表 接口对应字段【storage_bin】】 |
| 5.6 | process_fee | 加工费【默认0】 | number | — | 可选 | 加工费【默认0】;加工单专有,拆分单可不传 |
| 5.7 | single_product_list | 单品明细项 | array<object> | — | 必填 | 单品明细项 |
| 5.7.1 | sku | 单品sku | string | — | 必填 | 单品sku |
| 5.7.2 | fnsku | 单品fnsku | string | — | 可选 | 单品fnsku |
| 5.7.3 | sid | 单品店铺id | integer | — | 必填 | 单品店铺id,组合品店铺id为0时此字段值传0 |
| 5.7.4 | price_scale | 单品拆分比例 | number | — | 必填 | 单品拆分比例 |
| 5.7.5 | whb_code | 拆分单的单品入库仓位 | string | — | 可选 | 拆分单的单品入库仓位,不传默认可用暂存;加工单不用传 【查询本地仓位列表 接口对应字段【storage_bin】】 |
| 5.8 | remark | remark | string | — | 可选 | remark |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | 必填 | 消息提示 |
| 3 | error_details | 错误信息 | array<any> | — | 必填 | 错误信息 |
| 4 | request_id | 请求链路id | string | D4F7833C-53E7-207E-E4AB-E0BA96D0DA13 | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2022-08-23 16:56:31 | 必填 | 响应时间 |
| 6 | data | 响应数据 | object | — | 必填 | 响应数据 |
| 6.1 | order_sn | 加工单/拆分单 单号 | string | PT230321003 | 必填 | 加工单/拆分单 单号 |
| 7 | total | 总数 | integer | 0 | 必填 | 总数 |
领星ERP的接口:创建加工单 / 拆分单(/erp/sc/routing/inventoryReceipt/StorageProcess/addStorageProcessOrder),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。