轻易云
注册体验

领星ERP查询仓库列表接口

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

查询仓库列表

POST/erp/sc/data/local_inventory/warehouse
加工厂
{
  "operation": {
    "method": "POST",
    "path": "/erp/sc/data/local_inventory/warehouse"
  },
  "protocol": "HTTPS",
  "host": "https://openapi.lingxing.com",
  "rateLimit": {
    "tokenBucketCapacity": 1,
    "text": ""
  },
  "requestExample": {
    "type": 1,
    "sub_type": 2,
    "is_delete": 0,
    "offset": 0,
    "length": 1000
  },
  "responseExample": "{\n    \"code\": 0,\n    \"message\": \"success\",\n    \"error_details\": [],\n    \"request_id\": \"D7FFE246-BE0D-D8C9-355D-ADB1EB860C3C\",\n    \"response_time\": \"2024-07-31 14:33:14\",\n    \"data\": [\n        {\n            \"wid\": 1300,\n            \"type\": 1,\n            \"name\": \"00000\",\n            \"is_delete\": 0,\n            \"wp_id\":1,\n            \"wp_name\":\"\"\n            \"t_country_area_name\": \"英国\",\n  \t\t\t\"t_status\": 1,\n  \t\t\t\"t_warehouse_code\": \"UKBM\",\n \t\t\t\"t_warehouse_name\": \"UKBM Warehouse\",\n  \t\t\t\"country_code\": \"UK\"\n        },\n\t\t{\n            \"wid\": 858,\n            \"type\": 1,\n            \"name\": \"测试仓\",\n            \"is_delete\": 0,\n            \"wp_id\":1,\n            \"wp_name\":\"\"\n  \t\t\t\"t_country_area_name\": \"英国\",\n \t\t\t \"t_status\": 1,\n  \t\t\t\"t_warehouse_code\": \"UKBM\",\n  \t\t\t\"t_warehouse_name\": \"UKBM Warehouse\",\n  \t\t\t\"country_code\": \"UK\"\n\t\t}\n    ],\n    \"total\": 2\n}"
}

接口请求参数

序号字段名称类型默认值必填描述
1type仓库类型integer—可选仓库类型: 1 本地仓【默认值】 3 海外仓 4 亚马逊平台仓 6 AWD仓
2sub_type海外仓子类型integer—可选海外仓子类型: 1 无API海外仓 2 有API海外仓【此参数只在type=3生效】
3is_delete是否删除string—可选是否删除,多个使用英文逗号分隔: 0 未删除【默认值】 1 已删除
4offset分页偏移量integer—可选分页偏移量,默认0
5length分页长度integer—可选分页长度,默认1000条

接口响应参数

序号字段名称类型默认值必填描述
1code状态码integer0必填状态码,0 成功
2message消息提示stringsuccess必填消息提示
3error_details错误信息array<any>—必填错误信息
4request_id请求链路idstring502B9DD9-1BA0-03C5-6C61-D77C830440A6必填请求链路id
5response_time响应时间string2020-05-18 11:23:47必填响应时间
6total总数integer5必填总数
7data响应数据array<object>—必填响应数据
7.1wid系统仓库idinteger1300必填系统仓库id
7.2name仓库名string00000必填仓库名
7.3type仓库类型integer1必填仓库类型: 1 本地仓 3 海外仓 4 平台仓 6 AWD仓
7.4is_delete是否删除string0必填是否删除:0 未删除,1 已删除
7.5t_country_area_name第三方仓库国家/地区string英国必填第三方仓库国家/地区
7.6t_status状态integer1必填状态:0 未启用 ,1 启用
7.7t_warehouse_code第三方仓库代码stringUKBM必填第三方仓库代码
7.8t_warehouse_name第三方仓库名stringUKBM Warehouse必填第三方仓库名
7.9country_code国家代码stringUK必填国家代码
7.10wp_id服务商IDinteger1必填服务商ID,仅type=3且仓库为第三方海外仓时有值
7.11wp_name第三方海外仓服务商名字string0必填第三方海外仓服务商名字

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

需要对接这个接口?

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