| 方法 | 端点 | 描述 |
|---|---|---|
| GET | /api/v202206/warehouses | 获取仓库列表 |
[新增] v202608 补丁(2026-09 新增): 现有 GET /api/v202206/warehouses响应新增shipping_services字段(仓库启用的物流渠道清单)以下为本次新增内容与说明。
| 键 | 值 |
|---|---|
| Authorization | Bearer eyJ0eXAiOiJKV1QiLCJhbGciOi ... |
| 类型 | 名称 | 描述 | 必填/选填 | 数据结构 |
|---|---|---|---|---|
| query | api | API 类型 可用值: index.by-default | 必填 | enum |
GET /api/v202206/warehouses?api=index.by-default| 键 | 值 |
|---|---|
| errcode | 0/4000 |
| errmsg | ok/Error Info |
| data | Data Properties |
| 名称 | 描述 | 数据结构 |
|---|---|---|
| warehouse_id | 仓库 id | integer |
| warehouse_name | 仓库名称 | string |
| address1 | 街道地址1 | string |
| address2 | 街道地址2 | string |
| country | 国家 | string |
| state | 州/省 | string |
| zip | 邮编 | string |
| city | 城市 | string |
| phone | 电话 | string |
| fax | 传真 | string |
| shipping_services | 当前可用的物流渠道数组(无启用则为空数组) | array |
| 名称 | 描述 | 数据结构 |
|---|---|---|
| carrier | 承运商 示例: FedEx / UPS / USPS / DHL | string |
| carrier_service | 承运商服务名 示例: FedEx Ground / FedEx Ground Home Delivery / UPS Next Day Air | string |
{
"errcode": 0,
"errmsg": "ok",
"data": {
"items": [
{
"warehouse_id": 100,
"warehouse_name": "SG-MDW1",
"address1": "460 Gibraltar Drive",
"address2": null,
"state": "IL",
"zip": "60440",
"city": "Bolingbrook",
"phone": "888-566-8826",
"fax": "8885081917",
"country": "US",
"shipping_services": [
{ "carrier": "FedEx", "carrier_service": "FedEx Ground" },
{ "carrier": "FedEx", "carrier_service": "FedEx Ground Home Delivery" },
{ "carrier": "UPS", "carrier_service": "UPS Next Day Air" }
]
},
{
"warehouse_id": 101,
"warehouse_name": "SG-SMF1",
"address1": "2900 N MacArthur Dr Suite 150",
"address2": null,
"state": "CA",
"zip": "95376",
"city": "Tracy",
"phone": "888-566-8826",
"fax": "8885081917",
"country": "US",
"shipping_services": [
{ "carrier": "FedEx", "carrier_service": "FedEx Ground" }
]
}
]
}
}