Lingxing
切换旧版

查询仓库库存明细

POST/erp/sc/routing/data/local_inventory/inventoryDetails

支持查询本地仓/海外仓库存明细,对应系统【仓库】>【库存明细】数据

接口信息

API Path请求协议请求方式令牌桶容量
/erp/sc/routing/data/local_inventory/inventoryDetailsHTTPSPOST1

请求参数

widstring
仓库id,多个使用英文逗号分隔
offsetinteger
分页偏移量,默认0
lengthinteger
分页长度,默认20,上限800
skustring
SKU,单个,(模糊搜索)

请求示例

{
    "wid": "1,578,765",
    "offset": 0,
    "length": 20,
    "sku": "Test01"
}

返回结果

Json Object

codeinteger必填
状态码,0 成功
示例 0
messagestring必填
消息提示
示例 success
error_detailsarray<any>必填
错误信息
request_idstring必填
请求链路id
示例 BD36FCD8-E32E-E9E1-6BEC-06DE331C95AB
response_timestring必填
响应时间
示例 2021-06-15 17:49:16
totalinteger必填
总数
示例 1
dataarray<object>必填
响应数据
隐藏子属性
widinteger必填
仓库id
示例 1771
product_idinteger必填
本地产品id
示例 23551
skustring必填
SKU
示例 sku-1
seller_idstring必填
店铺id
fnskustring必填
FNSKU
product_totalinteger必填
实际库存总量【可用量+次品量+待检待上架量+锁定量】
示例 11
product_valid_numinteger必填
可用量
示例 11
expect_valid_numinteger必填
期望可用
示例 11
product_bad_numinteger必填
次品量
product_qc_numinteger必填
待检待上架量
product_lock_numinteger必填
锁定量
storage_distribute_numinteger必填
FBA发货单待配货量
stock_cost_totalstring必填
库存成本
示例 11.00
quantity_receivestring必填
待到货量
示例 1
expect_pending_numinteger必填
期望待到货量
示例 1
stock_coststring必填
单位库存成本
示例 1.00
product_onwayinteger必填
调拨在途
示例 1
transit_head_coststring必填
调拨在途头程成本
示例 0.01
average_ageinteger必填
平均库龄
示例 1
third_inventoryobject必填
海外仓第三方库存信息
隐藏子属性
qty_sellableinteger必填
可用量
示例 35194
qty_pendinginteger必填
待上架库存
qty_reservedinteger必填
锁定量
示例 7
qty_onwayinteger必填
第三方海外仓备货在途
third_inventory_dataarray<object>必填
海外仓子产品库存明细
隐藏子属性
namestring必填
库存对比
localinteger必填
系统
thirdinteger必填
第三方仓
diffinteger必填
库存差异
support_boxboolean必填
是否同步箱库存
product_thirdinteger必填
(三方可用量-箱库存可用量 ) * 配对数量
box_thirdinteger必填
箱库存可用量 * 配对数量
childrenarray<object>必填
海外仓子项库存明细列表
隐藏子属性
third_skustring必填
海外仓sku
third_namestring必填
海外仓sku名称
match_numinteger必填
配对数量
third_valueinteger必填
三方可用量
third_total_valueinteger必填
三方可用量*配对数量
product_thirdinteger必填
(三方可用量-箱库存可用量 ) * 配对数量
box_thirdinteger必填
箱库存可用量 * 配对数量
stock_age_listarray<object>必填
库龄信息
隐藏子属性
namestring必填
标题
示例 0-15天库龄
qtyinteger必填
数量
示例 1
purchase_pricestring必填
采购单价
pricestring必填
单位费用
head_stock_pricestring必填
单位头程
stock_pricestring必填
单位库存成本

返回成功示例

{
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "B6566678-9238-338C-3FD5-BBEEF01635BA",
    "response_time": "2022-09-08 15:57:49",
    "data": [
        {
            "wid": 1,
            "product_id": 10001,
            "sku": "1111",
            "seller_id": "0",
            "fnsku": "",
            "product_total": 1943,
            "product_valid_num": 681,
            "expect_valid_num": 681,
            "product_bad_num": 110,
            "product_qc_num": 519,
            "product_lock_num": 633,
            "stock_cost_total": "19430.00",
            "quantity_receive": "562",
            "expect_pending_num": 562,
            "stock_cost": "10.0000",
            "product_onway": 0,
            "transit_head_cost": "0.00",
	        "average_age": 135,
            "third_inventory": [],
            "stock_age_list": [
                {
                    "name": "0-15天库龄",
                    "qty": 20
                },
                {
                    "name": "16-30天库龄",
                    "qty": 0
                },
                {
                    "name": "31-90天库龄",
                    "qty": 1348
                },
                {
                    "name": "91天以上库龄",
                    "qty": 575
                }
            ]
        }
    ],
    "total": 1
}