/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}"
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | type | 仓库类型 | integer | — | Optional | 仓库类型: 1 本地仓【默认值】 3 海外仓 4 亚马逊平台仓 6 AWD仓 |
| 2 | sub_type | 海外仓子类型 | integer | — | Optional | 海外仓子类型: 1 无API海外仓 2 有API海外仓【此参数只在type=3生效】 |
| 3 | is_delete | 是否删除 | string | — | Optional | 是否删除,多个使用英文逗号分隔: 0 未删除【默认值】 1 已删除 |
| 4 | offset | 分页偏移量 | integer | — | Optional | 分页偏移量,默认0 |
| 5 | length | 分页长度 | integer | — | Optional | 分页长度,默认1000条 |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | Required | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | Required | 消息提示 |
| 3 | error_details | 错误信息 | array<any> | — | Required | 错误信息 |
| 4 | request_id | 请求链路id | string | 502B9DD9-1BA0-03C5-6C61-D77C830440A6 | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2020-05-18 11:23:47 | Required | 响应时间 |
| 6 | total | 总数 | integer | 5 | Required | 总数 |
| 7 | data | 响应数据 | array<object> | — | Required | 响应数据 |
| 7.1 | wid | 系统仓库id | integer | 1300 | Required | 系统仓库id |
| 7.2 | name | 仓库名 | string | 00000 | Required | 仓库名 |
| 7.3 | type | 仓库类型 | integer | 1 | Required | 仓库类型: 1 本地仓 3 海外仓 4 平台仓 6 AWD仓 |
| 7.4 | is_delete | 是否删除 | string | 0 | Required | 是否删除:0 未删除,1 已删除 |
| 7.5 | t_country_area_name | 第三方仓库国家/地区 | string | 英国 | Required | 第三方仓库国家/地区 |
| 7.6 | t_status | 状态 | integer | 1 | Required | 状态:0 未启用 ,1 启用 |
| 7.7 | t_warehouse_code | 第三方仓库代码 | string | UKBM | Required | 第三方仓库代码 |
| 7.8 | t_warehouse_name | 第三方仓库名 | string | UKBM Warehouse | Required | 第三方仓库名 |
| 7.9 | country_code | 国家代码 | string | UK | Required | 国家代码 |
| 7.10 | wp_id | 服务商ID | integer | 1 | Required | 服务商ID,仅type=3且仓库为第三方海外仓时有值 |
| 7.11 | wp_name | 第三方海外仓服务商名字 | string | 0 | Required | 第三方海外仓服务商名字 |
The 查询仓库列表 API (/erp/sc/data/local_inventory/warehouse) of 领星ERP is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 领星ERP version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.