/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}"
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | type | 仓库类型 | integer | — | 可选 | 仓库类型: 1 本地仓【默认值】 3 海外仓 4 亚马逊平台仓 6 AWD仓 |
| 2 | sub_type | 海外仓子类型 | integer | — | 可选 | 海外仓子类型: 1 无API海外仓 2 有API海外仓【此参数只在type=3生效】 |
| 3 | is_delete | 是否删除 | string | — | 可选 | 是否删除,多个使用英文逗号分隔: 0 未删除【默认值】 1 已删除 |
| 4 | offset | 分页偏移量 | integer | — | 可选 | 分页偏移量,默认0 |
| 5 | length | 分页长度 | integer | — | 可选 | 分页长度,默认1000条 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | 必填 | 消息提示 |
| 3 | error_details | 错误信息 | array<any> | — | 必填 | 错误信息 |
| 4 | request_id | 请求链路id | string | 502B9DD9-1BA0-03C5-6C61-D77C830440A6 | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2020-05-18 11:23:47 | 必填 | 响应时间 |
| 6 | total | 总数 | integer | 5 | 必填 | 总数 |
| 7 | data | 响应数据 | array<object> | — | 必填 | 响应数据 |
| 7.1 | wid | 系统仓库id | integer | 1300 | 必填 | 系统仓库id |
| 7.2 | name | 仓库名 | string | 00000 | 必填 | 仓库名 |
| 7.3 | type | 仓库类型 | integer | 1 | 必填 | 仓库类型: 1 本地仓 3 海外仓 4 平台仓 6 AWD仓 |
| 7.4 | is_delete | 是否删除 | string | 0 | 必填 | 是否删除:0 未删除,1 已删除 |
| 7.5 | t_country_area_name | 第三方仓库国家/地区 | string | 英国 | 必填 | 第三方仓库国家/地区 |
| 7.6 | t_status | 状态 | integer | 1 | 必填 | 状态:0 未启用 ,1 启用 |
| 7.7 | t_warehouse_code | 第三方仓库代码 | string | UKBM | 必填 | 第三方仓库代码 |
| 7.8 | t_warehouse_name | 第三方仓库名 | string | UKBM Warehouse | 必填 | 第三方仓库名 |
| 7.9 | country_code | 国家代码 | string | UK | 必填 | 国家代码 |
| 7.10 | wp_id | 服务商ID | integer | 1 | 必填 | 服务商ID,仅type=3且仓库为第三方海外仓时有值 |
| 7.11 | wp_name | 第三方海外仓服务商名字 | string | 0 | 必填 | 第三方海外仓服务商名字 |
领星ERP的接口:查询仓库列表(/erp/sc/data/local_inventory/warehouse),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。