Lingxing
切换旧版

查询仓位库存明细

POST/erp/sc/routing/data/local_inventory/inventoryBinDetails

接口信息

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

请求参数

widstring
仓库id,多个仓库用英文逗号分隔,默认所有仓库
bin_type_liststring
仓位类型,多个类型用英文逗号分隔:
1 待检暂存
2 可用暂存
3 次品暂存
4 拣货暂存
5 可用
6 次品
offsetinteger
分页偏移量,默认0
lengthinteger
分页长度,默认20 ,上限500

请求示例

{
    "wid": "1,5,18",
    "bin_type_list": "5",
    "offset": 0,
    "length": 20
}

返回结果

Json Object

codeinteger必填
状态码,0 成功
示例 0
messagestring必填
返回消息
示例 success
error_detailsarray<any>必填
错误信息
request_idstring必填
请求链路id
示例 BDE02505-821E-2757-5938-650A21A6875B
response_timestring必填
响应时间
示例 2021-07-16 11:01:34
dataarray<object>必填
响应数据
隐藏子属性
widinteger必填
仓库id
示例 1771
wh_namestring必填
仓库名称
whb_idinteger必填
仓位id
whb_namestring必填
仓位名称
whb_typestring必填
仓位类型
whb_type_namestring必填
仓位类型名称
product_idinteger必填
商品id
示例 23551
skustring必填
SKU
示例 导入大写PNG
seller_idstring必填
店铺id
fnskustring必填
FNSKU
totalinteger必填
总量
示例 11
lockNuminteger必填
锁定量
validNumstring必填
未锁定量
third_inventoryobject必填
海外仓第三方库存信息
隐藏子属性
qty_sellableinteger必填
可用量
示例 35194
qty_pendinginteger必填
待上架库存
qty_reservedinteger必填
锁定量
示例 7
qty_onwayinteger必填
备货在途
totalinteger必填
总条数
示例 1

返回成功示例

{
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "A884D2C7-186A-2810-072A-7A0123093BBA",
    "response_time": "2024-07-31 15:08:33",
    "data": [
        {
            "wid": 1,
            "product_id": 10001,
            "sku": "ceshi001",
            "seller_id": "0",
            "fnsku": "",
            "product_total": 55889,
            "product_valid_num": 0,
            "product_bad_num": 0,
            "product_qc_num": 3322,
            "product_lock_num": 52567,
            "good_lock_num": 52566,
            "bad_lock_num": 1,
            "stock_cost_total": "4214317.76",
            "quantity_receive": "10005050",
            "stock_cost": "75.4051",
            "product_onway": 187,
            "transit_head_cost": "0.00",
            "average_age": 610,
            "third_inventory": [],
            "stock_age_list": [
                {
                    "name": "0-15天库龄",
                    "qty": 0
                },
                {
                    "name": "16-45天库龄",
                    "qty": 119
                },
                {
                    "name": "61-120天库龄",
                    "qty": 14
                },
                {
                    "name": "121-150天库龄",
                    "qty": 1128
                },
                {
                    "name": "151-180天库龄",
                    "qty": 1
                },
                {
                    "name": "181-210天库龄",
                    "qty": 131
                },
                {
                    "name": "366天以上库龄",
                    "qty": 54111
                }
            ],
            "available_inventory_box_qty": "5256.6"
        }
    ],
    "total": 12093
}