/erp/sc/routing/inventoryReceipt/StorageAllocation/addAllocationOrder{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/inventoryReceipt/StorageAllocation/addAllocationOrder"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"wid": "",
"sys_wid": 1,
"to_wid": "",
"sys_to_wid": 2,
"freight_fee": "",
"other_fee": "",
"fee_part_type": 0,
"remark": "备注xx",
"type": 1,
"predict_time": "2022-08-01",
"product_list": [
{
"sku": "sku-123",
"seller_id": "",
"fnsku": "",
"good_num": 1,
"bad_num": 0,
"cg_package_length": "",
"cg_package_width": "",
"cg_package_height": "",
"cg_product_gross_weight": "",
"freight_fee_unit": "",
"other_fee_unit": "",
"product_remark": "产品备注"
}
]
},
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "C70FD2A7-4E7D-6B32-7D72-FC42587CE97E",
"response_time": "2022-07-29 14:33:42",
"data": {
"order_sn": "TF220729002"
},
"total": 0
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | wid | 客户出库仓库id(与系统仓库出库id任一必填 | integer | — | Optional | 客户出库仓库id(与系统仓库出库id任一必填,优先取客户出库仓库id) |
| 2 | sys_wid | 系统仓库出库id(与客户仓库出库id任一必填 | integer | — | Optional | 系统仓库出库id(与客户仓库出库id任一必填,优先取客户出库仓库id) |
| 3 | to_wid | 客户入库仓库id(与系统仓库入库id任一必填 | integer | — | Optional | 客户入库仓库id(与系统仓库入库id任一必填,优先取客户入库仓库id) |
| 4 | sys_to_wid | 系统仓库入库id(与客户仓库入库id任一必填 | integer | — | Optional | 系统仓库入库id(与客户仓库入库id任一必填,优先取客户入库仓库id) |
| 5 | freight_fee | 运费 | string | — | Optional | 运费 |
| 6 | other_fee | 其他费用 | string | — | Optional | 其他费用 |
| 7 | fee_part_type | 费用分摊方式 | integer | — | Optional | 费用分摊方式:【默认0】 0 不分摊 2 按sku数量分摊 3 按重量 4 按体积 5 按自定义 |
| 8 | remark | 备注 | string | — | Optional | 备注 |
| 9 | type | 调拨类型 | integer | — | Optional | 调拨类型:【默认1】 1 简易调拨【创建已完成状态的单据】 2 完整调拨【创建待收货状态的单据】 |
| 10 | predict_time | 预计到货时间 | string | — | Optional | 预计到货时间,格式:Y-m-d |
| 11 | product_list | product_list | array<object> | — | Required | |
| 11.1 | sku | sku | string | — | Required | sku |
| 11.2 | seller_id | 店铺id | integer | — | Optional | 店铺id,不传默认0【对应查询亚马逊店铺信息接口字段sid】 |
| 11.3 | fnsku | fnsku | string | — | Optional | fnsku,不传默认为空 |
| 11.4 | good_num | 可用调拨量 | integer | — | Optional | 可用调拨量,和次品调拨量其中一项必填 |
| 11.5 | bad_num | 次品调拨量 | integer | — | Optional | 次品调拨量,和可用调拨量其中一项必填 |
| 11.6 | cg_package_length | 包装规格-长(CM) | string | — | Optional | 包装规格-长(CM),不传或者传空则取产品管理的值 |
| 11.7 | cg_package_width | 包装规格-宽(CM) | string | — | Optional | 包装规格-宽(CM),不传或者传空则取产品管理的值 |
| 11.8 | cg_package_height | 包装规格-高(CM) | string | — | Optional | 包装规格-高(CM),不传或者传空则取产品管理的值 |
| 11.9 | cg_product_gross_weight | 单品净重 | string | — | Optional | 单品净重,不传或者传空则取产品管理的值 |
| 11.10 | freight_fee_unit | 单位运费 | string | — | Optional | 单位运费,若费用分摊方式为5-自定义则必填,其他则该字段无效 |
| 11.11 | other_fee_unit | 单位其他费用 | string | — | Optional | 单位其他费用,若费用分摊方式为5-自定义则必填,其他则该字段无效 |
| 11.12 | product_remark | 明细备注 | string | — | Optional | 明细备注,最大长度为255个字符 |
| 11.13 | out_available_bin | 出库可用仓位列表 | array<object> | — | Optional | 出库可用仓位列表 |
| 11.13.1 | whb_code | 出库可用仓位编码 | string | — | Optional | 出库可用仓位编码 |
| 11.14 | out_inferior_bin | 出库次品仓位列表 | array<object> | — | Optional | 出库次品仓位列表 |
| 11.14.1 | whb_code | 出库次品仓位编码 | string | — | Optional | 出库次品仓位编码 |
| 11.14.2 | num | 出库次品仓位数量 | string | — | Optional | 出库次品仓位数量 |
| 11.15 | to_available_bin | 入库可用仓位列表 | array<object> | — | Optional | 入库可用仓位列表 |
| 11.15.1 | whb_code | 入库可用仓位编码 | string | — | Optional | 入库可用仓位编码 |
| 11.15.2 | num | 入库可用仓位数量 | string | — | Optional | 入库可用仓位数量 |
| 11.16 | to_inferior_bin | 入库次品仓位列表 | array<object> | — | Optional | 入库次品仓位列表 |
| 11.16.1 | whb_code | 入库次品仓位编码 | string | — | Optional | 入库次品仓位编码 |
| 11.16.2 | num | 入库次品仓位数量 | string | — | Optional | 入库次品仓位数量 |
| 12 | out_bin_type | 0 默认 | string | — | Optional | 0 默认 1 出库仓位不为空时,必传 |
| 13 | out_available_bin | out_available_bin | object | — | Optional | |
| 13.1 | num | 出库可用仓位调拨量 | string | — | Optional | 出库可用仓位调拨量 |
| 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 | C70FD2A7-4E7D-6B32-7D72-FC42587CE97E | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2022-07-29 14:33:42 | Required | 响应时间 |
| 6 | data | 响应数据 | object | — | Required | 响应数据 |
| 6.1 | order_sn | 调拨单号 | string | TF220729002 | Required | 调拨单号 |
| 7 | total | 总数 | integer | 0 | Required | 总数 |
The 创建待收货/已完成的调拨单 API (/erp/sc/routing/inventoryReceipt/StorageAllocation/addAllocationOrder) 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.