/erp/sc/routing/data/local_inventory/wareHouseStatement{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/data/local_inventory/wareHouseStatement"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"offset": 0,
"length": 20,
"wid": "1,5,18",
"start_date": "2024-07-29",
"end_date": "2024-07-29",
"type": "100"
},
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "596A9701-F2B8-1291-3EFC-9099C295A9C4",
"response_time": "2024-07-31 15:39:39",
"data": [
{
"wid": 18,
"ware_house_name": "深圳仓",
"order_sn": "PT240729003",
"product_id": 33043,
"product_name": "电脑cyt",
"sku": "diannaocyt",
"seller_id": "0",
"fnsku": "",
"product_good_num": -10,
"product_bad_num": 0,
"product_qc_num": 0,
"product_lock_num": 10,
"price": "",
"amount": "",
"product_amounts": "",
"type": 100,
"type_text": "库存调整",
"fee_cost": "",
"single_cg_price": "",
"single_fee_cost": "",
"opt_uid": 10603434,
"opt_time": "2024-07-29 20:12",
"opt_realname": "马旭哲",
"cancel_time": "",
"remark": "加工单锁定库存",
"bid": 0,
"brand_name": "",
"ref_order_sn": "",
"product_total": 0,
"statement_id": "401469208181637651"
}
],
"total": 32
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | wid | 仓库ID | string | — | Optional | 仓库ID,多个仓库ID用英文逗号分隔,不填默认所有仓库 |
| 2 | type | 流水类型 | string | — | Optional | 流水类型:【多个流水类型用英文逗号分隔,不填默认全部类型】 1 其他入库 2 采购入库 3 调拨入库 10 其它入库(已撤销) 11 其他出库 12 FBA出库 13 调拨出库 14 退货出库 15 FBM退货 16 换标入库 17 加工入库 18 拆分入库 20 采购入库(已撤销) 21 库存调整 23 委外入库 25 盘盈入库 32 委外出库 33 盘亏出库 34 换标出库 35 加工出库 36 拆分出库 43 FBM出库 50 成本补录 110 其它出库(已撤销) 120 FBA出库(已撤销) 130 调拨出库(已撤销) 140 退货出库(已撤销) 210 库存调整(已撤销) 500 成本补录(已撤销) |
| 3 | start_date | 操作开始时间 | string | — | Optional | 操作开始时间,格式:Y-m-d,闭区间,联合结束时间使用 |
| 4 | end_date | 操作结束时间 | string | — | Optional | 操作结束时间,格式:Y-m-d,开区间,联合开始时间使用 |
| 5 | offset | 分页偏移量 | integer | — | Optional | 分页偏移量,默认0 |
| 6 | length | 分页长度 | integer | — | Optional | 分页长度,默认20 |
| 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 | CF670F06-BD65-E580-7018-47219C66AC26 | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2020-05-18 11:23:47 | Required | 响应时间 |
| 6 | data | 响应数据 | array<object> | — | Required | 响应数据 |
| 6.1 | statement_id | 流水ID | string | 11036 | Required | 流水ID |
| 6.2 | wid | 仓库ID | integer | 8 | Required | 仓库ID |
| 6.3 | ware_house_name | 仓库名 | string | 测试仓库 | Required | 仓库名 |
| 6.4 | bid | 商品品牌ID | integer | 18 | Required | 商品品牌ID |
| 6.5 | order_sn | 单据号 | string | OB220527028 | Required | 单据号 |
| 6.6 | product_id | 商品ID | integer | 18232 | Required | 商品ID |
| 6.7 | product_name | 品名 | string | AA-组合3 | Required | 品名 |
| 6.8 | sku | sku | string | AA-组合3 | Required | SKU |
| 6.9 | fnsku | fnsku | string | — | Required | FNSKU |
| 6.10 | product_total | 商品总量 | number | — | Required | 商品总量 |
| 6.11 | product_good_num | 良品量 | number | — | Required | 良品量 |
| 6.12 | product_bad_num | 次品量 | number | — | Required | 次品量 |
| 6.13 | product_qc_num | 质检量 | number | — | Required | 质检量 |
| 6.14 | product_lock_num | 锁定量 | number | — | Required | 锁定量 |
| 6.15 | price | 单价 | number | 1 | Required | 单价 |
| 6.16 | amount | 金额 | number | 0 | Required | 金额 |
| 6.17 | type | 流水类型 | string | 1 | Required | 流水类型: 1 其他入库 2 采购入库 3 调拨入库 10 其它入库(已撤销) 11 其他出库 12 FBA出库 13 调拨出库 14 退货出库 15 FBM退货 16 换标入库 17 加工入库 18 拆分入库 20 采购入库(已撤销) 21 库存调整 23 委外入库 25 盘盈入库 32 委外出库 33 盘亏出库 34 换标出库 35 加工出库 36 拆分出库 43 FBM出库 50 成本补录 110 其它出库(已撤销) 120 FBA出库(已撤销) 130 调拨出库(已撤销) 140 退货出库(已撤销) 210 库存调整(已撤销) 500 成本补录(已撤销) |
| 6.18 | remark | 备注 | string | 库存初始化 | Required | 备注 |
| 6.19 | opt_uid | 操作人员ID | integer | 230 | Required | 操作人员ID |
| 6.20 | opt_time | 操作时间 | string | 2020-09-05 16:23 | Required | 操作时间 |
| 6.21 | cancel_time | 撤销时间 | string | 2020-09-06 10:23 | Required | 撤销时间 |
| 6.22 | fee_cost | 费用成本 | string | 0.00 | Required | 费用成本 |
| 6.23 | brand_name | 品牌 | string | New desk | Required | 品牌 |
| 6.24 | single_fee_cost | 单位费用成本 | number | 0 | Required | 单位费用成本 |
| 6.25 | single_cg_price | 采购单价 | number | 1 | Required | 采购单价 |
| 6.26 | product_amounts | 货值 | number | 0 | Required | 货值 |
| 6.27 | type_text | 流水类型文本 | string | 其他入库 | Required | 流水类型文本 |
| 6.28 | opt_realname | 操作人员姓名 | string | 李X | Required | 操作人员姓名 |
| 7 | total | 总数目 | integer | 1 | Required | 总数目 |
The 查询库存流水(旧) API (/erp/sc/routing/data/local_inventory/wareHouseStatement) 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.