查看商家状态

获取商家账户状态。对于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,Request

<?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,Request

{
    "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