查看商家狀態
獲取商家帳戶狀態。對於Newegg.com,它還包含商家倉庫的位置和配送目的地的相關資訊。
相關URL
Newegg.com: https://api.newegg.com/marketplace/sellermgmt/seller/accountstatus?sellerid={sellerid}&version={version} Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/sellermgmt/seller/accountstatus?sellerid={sellerid} Newegg.ca: https://api.newegg.com/marketplace/can/sellermgmt/seller/accountstatus?sellerid={sellerid}
註:請確保您的請求URL全都是小寫(除Seller ID)並且不能包含任何空格或者分行符號。
參數
名稱 | 是否必填? | 描述 |
sellerid | 是 | 您在新蛋商城的商家編號 |
version | 是 | Newegg.com適用版本:307 返回商家會員級別資訊、倉庫所在地、配送目的地 |
相關請求資訊
HTTP方式 | 是否需要認證? | 請求格式 | 回覆格式 | 頻率限制 |
GET | 需要 | XML,Json | XML,Json | 500 請求/小時 |
請求文件主體
示例:XML, Request
GET https://api.newegg.com/marketplace/sellermgmt/seller/accountstatus?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/accountstatus?sellerid={sellerid} Authorization: 720ddc067f4d115bd544aff46bc75634 SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D Content-Type: application/json Accept: application/json
回覆文件主體
屬性 | 格式 | 描述 |
IsSuccess | String | 用於獲取資料狀態的操作 True:成功 False:失敗 |
OperationType | String | 固定值:GetSellerAccountStatusResponse |
SellerID | String | 商家編號 |
SellerName | String | 商家店鋪名稱 |
Status | String | 商家帳戶狀態 有效值: Active(正常) Suspended(被凍結) InActive(未激活) Terminated(被終止) Closed(已關閉) |
Membership | Integer | 會員級別代碼: 0: Non-Elite 非精英賣家 1: Professional 菁英賣家 2: Enterprise 企業賣家 有效版本:307 |
WarehouseLocation | String | 您倉庫所在國家的國際標準3位國家代碼。 完整國家代碼清單,請通過以下連結下載:International Country Guide 有效版本:307 |
WarehouseType | Integer | 運送訂單的倉庫類型: 0: SBS(商家配送) 1: SBN(新蛋配送) 有效版本:307 |
ShipToCountry | String | 該倉庫支持配送的國家。只接受國際標準3位國家代碼。 完整國家代碼清單,請通過以下連結下載:International Country Guide 有效版本:307 |
Schema: GetSellerAccountStatusResponse.xsd
示例: XML, Response
<?xml version="1.0" encoding="utf-8"?> <NeweggAPIResponse> <IsSuccess>true</IsSuccess> <OperationType>GetSellerAccountStatusResponse</OperationType> <SellerID>A006</SellerID> <ResponseBody> <SellerName> <![CDATA[Test_MKTPLS]]> </SellerName> <Status>Active</Status> <Membership>0</Membership> <FufillmentCenterList> <FufillmentCenter> <WarehouseLocation>TUR</WarehouseLocation> <WarehouseType>0</WarehouseType> <ShippingDestinationList> <ShipToCountry>TUR</ShipToCountry> <ShipToCountry>USA</ShipToCountry> </ShippingDestinationList> </FufillmentCenter> <FufillmentCenter> <WarehouseLocation>USA</WarehouseLocation> <WarehouseType>0</WarehouseType> <ShippingDestinationList> <ShipToCountry>USA</ShipToCountry> <ShipToCountry>NZL</ShipToCountry> </ShippingDestinationList> </FufillmentCenter> <FufillmentCenter> <WarehouseLocation>USA</WarehouseLocation> <WarehouseType>1</WarehouseType> <ShippingDestinationList> <ShipToCountry>AUS</ShipToCountry> <ShipToCountry>USA</ShipToCountry> <ShipToCountry>SGP</ShipToCountry> </ShippingDestinationList> </FufillmentCenter> </FufillmentCenterList> </ResponseBody> </NeweggAPIResponse>
示例: Json, Response
{ "IsSuccess": true, "OperationType": "GetSellerAccountStatusResponse", "SellerID": "A006", "ResponseBody": { "Membership": 0, "FufillmentCenterList": [ { "WarehouseLocation": "TUR", "WarehouseType": 0, "ShippingDestinationList": [ "TUR", "USA" ] }, { "WarehouseLocation": "USA", "WarehouseType": 0, "ShippingDestinationList": [ "USA", "NZL" ] }, { "WarehouseLocation": "USA", "WarehouseType": 1, "ShippingDestinationList": [ "AUS", "USA", "SGP" ] } ], "SellerName": "Test_MKTPLS", "Status": "Active" } }
請求失敗錯誤資訊
常規HTTP錯誤回應,請參考回覆失敗錯誤代碼清單。
更新日期:12/30/2020