獲取倉庫列表
獲取當前在新蛋平台上的賣家自發貨倉庫列表。回覆包括倉庫位置、狀態和運送目的地。
相關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