轻易云
注册体验

领星ERP查询仓位库存明细接口

所属平台
领星ERP
类型
WebAPI
作用
QUERY
接口版本
1.0
适配器
\Adapter\LingXing\LXQueryAdapter
授权方式
OTHER
描述
仓库 / 库存&流水 · POST · 请求参数 4 个(必填 0) · 响应参数 25 个 · 限流令牌桶容量 1
更新日期
2026-11-21

查询仓位库存明细

POST/erp/sc/routing/data/local_inventory/inventoryBinDetails
加工厂
{
  "operation": {
    "method": "POST",
    "path": "/erp/sc/routing/data/local_inventory/inventoryBinDetails"
  },
  "protocol": "HTTPS",
  "host": "https://openapi.lingxing.com",
  "rateLimit": {
    "tokenBucketCapacity": 1,
    "text": ""
  },
  "requestExample": {
    "wid": "1,5,18",
    "bin_type_list": "5",
    "offset": 0,
    "length": 20
  },
  "responseExample": {
    "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
  }
}

接口请求参数

序号字段名称类型默认值必填描述
1wid仓库idstring—可选仓库id,多个仓库用英文逗号分隔,默认所有仓库
2bin_type_list仓位类型string—可选仓位类型,多个类型用英文逗号分隔: 1 待检暂存 2 可用暂存 3 次品暂存 4 拣货暂存 5 可用 6 次品
3offset分页偏移量integer—可选分页偏移量,默认0
4length分页长度integer—可选分页长度,默认20 ,上限500

接口响应参数

序号字段名称类型默认值必填描述
1code状态码integer0必填状态码,0 成功
2message返回消息stringsuccess必填返回消息
3error_details错误信息array<any>—必填错误信息
4request_id请求链路idstringBDE02505-821E-2757-5938-650A21A6875B必填请求链路id
5response_time响应时间string2021-07-16 11:01:34必填响应时间
6data响应数据array<object>—必填响应数据
6.1wid仓库idinteger1771必填仓库id
6.2wh_name仓库名称string—必填仓库名称
6.3whb_id仓位idinteger—必填仓位id
6.4whb_name仓位名称string—必填仓位名称
6.5whb_type仓位类型string—必填仓位类型
6.6whb_type_name仓位类型名称string—必填仓位类型名称
6.7product_id商品idinteger23551必填商品id
6.8skuskustring导入大写PNG必填SKU
6.9seller_id店铺idstring—必填店铺id
6.10fnskufnskustring—必填FNSKU
6.11total总量integer11必填总量
6.12lockNum锁定量integer—必填锁定量
6.13validNum未锁定量string—必填未锁定量
6.14third_inventory海外仓第三方库存信息object—必填海外仓第三方库存信息
6.14.1qty_sellable可用量integer35194必填可用量
6.14.2qty_pending待上架库存integer—必填待上架库存
6.14.3qty_reserved锁定量integer7必填锁定量
6.14.4qty_onway备货在途integer—必填备货在途
7total总条数integer1必填总条数

领星ERP的接口:查询仓位库存明细(/erp/sc/routing/data/local_inventory/inventoryBinDetails),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。

需要对接这个接口?

轻易云已预置该接口的适配能力,联系我们即可开始配置数据集成。