获取仓库列表
获取当前在新蛋平台上的卖家自发货仓库列表。回复包括仓库位置、状态和运送目的地。
相关URL
Newegg.com: https://api.newegg.com/marketplace/sellermgmt/seller/warehouse?sellerid={sellerid}
注:请确保您的请求URL全都是小写(除Seller ID)并且不能包含任何空格或者换行符。
参数
| 名称 | 是否必填? | 描述 |
| sellerid | 是 | 您在新蛋商城的商家编号 |
相关请求信息
| HTTP方式 | 是否需要认证? | 请求格式 | 回复格式 | 频率限制 |
| GET | 需要 | XML,Json | XML,Json | 10请求/小时 |
请求文件主体
示例:XML,Request
GET https://api.newegg.com/marketplace/sellermgmt/seller/warehouse?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml
示例:Json,Request
GET https://api.newegg.com/marketplace/sellermgmt/seller/warehouse?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json
回复文件主体
| 属性 | 格式 | 描述 |
| IsSuccess | String | 用于获取数据状态的操作 True:成功 False:失败 |
| OperationType | String | 固定值:GetSellerWarehouseResponse |
| SellerID | String | 商家编号 |
| ResponseDate | String | 回复日期 |
| WarehouseLocation | String | 您仓库所在国家的国际标准3位国家代码。 完整国家代码列表,请通过以下链接下载:International Country Guide |
| Status | String | 有效值: 0: Inactive 禁用 1: Active 启用 |
| CountryCode | String | 您的商品销售到的目的国家/地区。只接受国际标准3位国家代码。
完整国家代码列表,请通过以下链接下载:International Country Guide |
Schema: GetWarehouseResponse.xsd
示例:XML,Response
<?xml version="1.0" encoding="utf-8"?>
<NeweggAPIResponse>
<IsSuccess>true</IsSuccess>
<OperationType>GetSellerWarehouseResponse</OperationType>
<SellerID>A006</SellerID>
<ResponseDate>2022-09-20T14:16:29.7872897-07:00</ResponseDate>
<ResponseBody>
<WarehouseList>
<Warehouse>
<WarehouseLocation>USA</WarehouseLocation>
<Status>1</Status>
<ShippingDestination>
<CountryCode>USA</CountryCode>
<CountryCode>AUS</CountryCode>
<CountryCode>ARG</CountryCode>
</ShippingDestination>
</Warehouse>
<Warehouse>
<WarehouseLocation>CHN</WarehouseLocation>
<Status>1</Status>
<ShippingDestination>
<CountryCode>USA</CountryCode>
<CountryCode>AUS</CountryCode>
</ShippingDestination>
</Warehouse>
</WarehouseList>
</ResponseBody>
</NeweggAPIResponse>
示例:Json,Response
{
"IsSuccess": "true",
"OperationType": "GetSellerWarehouseResponse",
"SellerID": "A006",
"ResponseDate": "2022-09-20T13:48:24.2275901-07:00"
"ResponseBody": {
"WarehouseList": [
{
"WarehouseLocation": "USA",
"Status": 1,
"ShippingDestination": [
"USA","AUS","ARG"
]
},
{
"WarehouseLocation": "CHN",
"Status": 1,
"ShippingDestination": [
"USA","AUS"
]
}
]
}
}
请求失败错误信息
常规HTTP错误回复,请参考回复失败错误代码列表。
更新日期:09/21/2022