/erp/sc/routing/storage/storage/orderAdd{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/storage/storage/orderAdd"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": "{\n \"wid\": \"CUSTOM-ID-1\",\n \"sys_wid\": 1,\n \"type\": 1,\n \"supplier_id\": \"S1929\",\n \"sys_supplier_id\": 125,\n \"order_sn\": \"PO220118001\",\n \"is_shelf\": 1,\n \"remark\": \"备注\",\n \"ship_fee\": \"1.22\",\n \"other_fee\": \"5\",\n \"fee_part_type\": 2,\n \"inbound_time\": \"2022-12-02\",\n \"product_list\": [\n {\n \"sku\": \"MDR-ZX110\",\n \"good_num\": 10,\n \"bad_num\": 0,\n \"price\": \"8.66\",\n \"seller_id\": 21,\n \"fnsku\": \"FN206265A\",\n \"good_whb_code\":\"A-1-1\",\n \"bad_whb_code\":\"次品暂存\",\n }\n ]\n}"
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | wid | 自定义仓库id | string | — | Optional | 自定义仓库id,wid和sys_wid其中一项必填,都填则优先wid |
| 2 | sys_wid | 系统仓库id | integer | — | Required | 系统仓库id,wid和sys_wid其中一项必填,都填则优先wid |
| 3 | type | 单据类型 | integer | — | Required | 单据类型: 1 其他入库 2 采购入库 26 退货入库 27 移除入库 |
| 4 | supplier_id | supplier_id | string | — | Optional | 自定义供应商id【supplier_id、sys_supplier_id 二选一必填,都填优先取supplier_id】 |
| 5 | sys_supplier_id | sys_supplier_id | integer | — | Optional | 系统供应商id【supplier_id、sys_supplier_id 二选一必填,都填优先取supplier_id】 |
| 6 | order_sn | 采购单号【对此采购单执行快捷入库】 | string | — | Optional | 采购单号【对此采购单执行快捷入库】,不支持自定义采购单号 |
| 7 | is_shelf | 采购单快捷入库是否进入【上架暂存仓位】 | integer | — | Optional | 采购单快捷入库是否进入【上架暂存仓位】,1:进入,默认0 |
| 8 | remark | 单据备注 | string | — | Optional | 单据备注 |
| 9 | ship_fee | 运费 | string | — | Optional | 运费 |
| 10 | other_fee | 其它费用 | string | — | Optional | 其它费用 |
| 11 | fee_part_type | 费用分配方式 | integer | — | Optional | 费用分配方式: 0 不分摊 1 按金额 2 按数量 |
| 12 | inbound_time | 自定义入库时间 | string | — | Optional | 自定义入库时间,格式:Y-m-d |
| 13 | inbound_idempotent_code | (入库单)客户参考号 | string | — | Optional | (入库单)客户参考号, 该字段校验唯一不可重复 |
| 14 | product_list | 产品明细 | array<object> | — | Required | 产品明细 |
| 14.1 | sku | sku | string | — | Required | sku |
| 14.2 | good_num | 良品数量 | integer | — | Required | 良品数量 |
| 14.3 | bad_num | 次品数量 | integer | — | Required | 次品数量 |
| 14.4 | price | 单价 | string | — | Required | 单价 |
| 14.5 | seller_id | 店铺id【没有店铺时传0】 | integer | — | Required | 店铺id【没有店铺时传0】 亚马逊店铺对应查询亚马逊店铺信息字段【sid】 多平台店铺对应查询多平台店铺信息字段【store_id】 |
| 14.6 | fnsku | fnsku【存在fnsku时店铺id必填 | string | — | Required | fnsku【存在fnsku时店铺id必填,没有时传空字符串】 |
| 14.7 | good_whb_code | 可用仓位 | string | — | Optional | 可用仓位 |
| 14.8 | bad_whb_code | 次品仓位 | 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 | 5A1EBE67-7793-9E94-7790-AA457B81B3F2 | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2022-06-27 11:54:31 | Required | 响应时间 |
| 6 | data | 响应数据 | object | — | Required | 响应数据 |
| 6.1 | order_sn_arr | 入库单号数组【兼容多个单号情况】 | array<any> | [IB221207001,IB221207002] | Required | 入库单号数组【兼容多个单号情况】 |
| 6.2 | order_sn | order_sn | string | IB221207001 | Required | 入库单号【多个单号情况下值为order_sn_arr里的第一个】 |
The 添加入库单 API (/erp/sc/routing/storage/storage/orderAdd) 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.