获取新蛋仓库列表

获取新蛋仓库的有效信息。

相关URL

Newegg.com: https://api.newegg.com/marketplace/sbnmgmt/inboundshipment/warehouse?sellerid={sellerid}
Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/sbnmgmt/inboundshipment/warehouse?sellerid={sellerid}
Newegg.com: https://api.newegg.com/marketplace/sbnmgmt/inboundshipment/warehouse?sellerid={sellerid} Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/sbnmgmt/inboundshipment/warehouse?sellerid={sellerid}
Newegg.com: https://api.newegg.com/marketplace/sbnmgmt/inboundshipment/warehouse?sellerid={sellerid}
Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/sbnmgmt/inboundshipment/warehouse?sellerid={sellerid}

注:请确保您的请求URL全都是小写(除Seller ID)并且不能包含任何空格或者换行符。

参数

名称 是否必填? 描述
sellerid 您在新蛋商城的商家编号

相关请求信息

HTTP方式 是否需要认证? 请求格式 回复格式 频率限制
PUT 需要 XML,Json XML,Json 1000 请求/分钟/商家

请求文件主体

属性 是否必填? 格式 描述
OperationType String 固定值:GetWarehouseRequest
WarehouseCode Integer 新蛋仓库的编码

目前美国有效新蛋仓库编码:
06: Tennessee Bulk Warehouse 田纳西大型仓库
07: California Small Warehouse 加利福尼亚小型仓库
08: California Bulk Item Warehouse 加利福尼亚大型仓库
10: New Jersey Bulk Warehouse 新泽西大型仓库
14: New Jersey Small Warehouse 新泽西小型仓库

Schema: GetWarehouseListRequest.xsd

示例:XML,Request

PUT https://api.newegg.com/marketplace/b2b/sbnmgmt/inboundshipment/warehouse?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml
<NeweggAPIRequest>
<OperationType>GetWarehouseRequest</OperationType>
<RequestBody>
<WarehouseCode>10</WarehouseCode>
</RequestBody>
</NeweggAPIRequest>
PUT https://api.newegg.com/marketplace/b2b/sbnmgmt/inboundshipment/warehouse?sellerid={sellerid} Authorization: 720ddc067f4d115bd544aff46bc75634 SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D Content-Type: application/xml Accept: application/xml <NeweggAPIRequest> <OperationType>GetWarehouseRequest</OperationType> <RequestBody> <WarehouseCode>10</WarehouseCode> </RequestBody> </NeweggAPIRequest>
PUT https://api.newegg.com/marketplace/b2b/sbnmgmt/inboundshipment/warehouse?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml

<NeweggAPIRequest>
    <OperationType>GetWarehouseRequest</OperationType>
    <RequestBody>
        <WarehouseCode>10</WarehouseCode>
    </RequestBody>
</NeweggAPIRequest>

示例:Json,Request

GET https://api.newegg.com/marketplace/b2b/sbnmgmt/inboundshipment/shipmentlist?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json
{
"OperationType": "GetWarehouseRequest",
"RequestBody": {
"WarehouseCode": "10"
}
}
GET https://api.newegg.com/marketplace/b2b/sbnmgmt/inboundshipment/shipmentlist?sellerid={sellerid} Authorization: 720ddc067f4d115bd544aff46bc75634 SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D Content-Type: application/json Accept: application/json { "OperationType": "GetWarehouseRequest", "RequestBody": { "WarehouseCode": "10" } }
GET https://api.newegg.com/marketplace/b2b/sbnmgmt/inboundshipment/shipmentlist?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json

{
    "OperationType": "GetWarehouseRequest",
    "RequestBody": {
        "WarehouseCode": "10"
    }
}

回复文件主体

属性 格式 描述
IsSuccess String 用来确认获取请求状态的操作是否成功
True:成功
False:失败
OperationType String 固定值:GetWarehouseResponse
SellerID String 您的商家编号
WarehouseCode String 有效新蛋仓库编码
目前美国有效新蛋仓库编码:
06: Tennesse Bulk Warehouse 田纳西大型仓库
07: California Small Warehouse 加利福尼亚小型仓库
08: California Bulk Item Warehouse 加利福尼亚大型仓库
10: New Jersy Bulk Warehouse 新泽西大型仓库
14: New Jersy Small Warehouse 新泽西小型仓库
AllowBulkItem Integer 此新蛋仓库接收大批量商品:
0 – No 否
1 – Yes 是
AllowSmallItem Integer 此新蛋仓库接受小件商品
0 – No 否
1 – Yes 是
ShipToAddress1 String 收货新蛋仓库地址 1
ShipToAddress2 String 收货新蛋仓库地址 2
ShipToCityName String 新蛋仓库收货地所在城市
ShipToStateCode String 新蛋仓库收货地州代码
ShipToZipCode String 新蛋仓库收货地邮编
ShipToCountryCode String 新蛋仓库收货国家代码

Schema: GetWarehouseListResponse.xsd

示例:XML,Response

<?xml version="1.0" encoding="utf-8"?>
<NeweggAPIResponse>
<IsSuccess>true</IsSuccess>
<OperationType>GetWarehouseResponse</OperationType>
<SellerID>V006</SellerID>
<ResponseBody>
<WarehouseList>
<Warehouse>
<WarehouseCode>10</WarehouseCode>
<AllowBulkItem>0</AllowBulkItem>
<AllowSmallItem>1</AllowSmallItem>
<ShipToAddress1>
<![CDATA[4995 Citation Dr Suite 101,Dock 1-10]]>
</ShipToAddress1>
<ShipToCityName>Memphis</ShipToCityName>
<ShipToStateCode>TN</ShipToStateCode>
<ShipToZipCode>38118</ShipToZipCode>
<ShipToCountryCode>USA</ShipToCountryCode>
</Warehouse>
</WarehouseList>
</ResponseBody>
</NeweggAPIResponse>
<?xml version="1.0" encoding="utf-8"?> <NeweggAPIResponse> <IsSuccess>true</IsSuccess> <OperationType>GetWarehouseResponse</OperationType> <SellerID>V006</SellerID> <ResponseBody> <WarehouseList> <Warehouse> <WarehouseCode>10</WarehouseCode> <AllowBulkItem>0</AllowBulkItem> <AllowSmallItem>1</AllowSmallItem> <ShipToAddress1> <![CDATA[4995 Citation Dr Suite 101,Dock 1-10]]> </ShipToAddress1> <ShipToCityName>Memphis</ShipToCityName> <ShipToStateCode>TN</ShipToStateCode> <ShipToZipCode>38118</ShipToZipCode> <ShipToCountryCode>USA</ShipToCountryCode> </Warehouse> </WarehouseList> </ResponseBody> </NeweggAPIResponse>
<?xml version="1.0" encoding="utf-8"?>
<NeweggAPIResponse>
    <IsSuccess>true</IsSuccess>
    <OperationType>GetWarehouseResponse</OperationType>
    <SellerID>V006</SellerID>
    <ResponseBody>
        <WarehouseList>
            <Warehouse>
                <WarehouseCode>10</WarehouseCode>
                <AllowBulkItem>0</AllowBulkItem>
                <AllowSmallItem>1</AllowSmallItem>
                <ShipToAddress1>
                    <![CDATA[4995 Citation Dr Suite 101,Dock 1-10]]>
                </ShipToAddress1>
                <ShipToCityName>Memphis</ShipToCityName>
                <ShipToStateCode>TN</ShipToStateCode>
                <ShipToZipCode>38118</ShipToZipCode>
                <ShipToCountryCode>USA</ShipToCountryCode>
            </Warehouse>
        </WarehouseList>
    </ResponseBody>
</NeweggAPIResponse>

示例:Json,Response

{
"IsSuccess": true,
"OperationType": "GetWarehouseResponse",
"SellerID": "V006",
"ResponseBody": {
"WarehouseList": [
{
"WarehouseCode": "10",
"AllowBulkItem": 0,
"AllowSmallItem": 1,
"ShipToAddress1": "4995 Citation Dr Suite 101,Dock 1-10",
"ShipToCityName": "Memphis",
"ShipToStateCode": "TN",
"ShipToZipCode": "38118",
"ShipToCountryCode": "USA"
}
]
}
}
{ "IsSuccess": true, "OperationType": "GetWarehouseResponse", "SellerID": "V006", "ResponseBody": { "WarehouseList": [ { "WarehouseCode": "10", "AllowBulkItem": 0, "AllowSmallItem": 1, "ShipToAddress1": "4995 Citation Dr Suite 101,Dock 1-10", "ShipToCityName": "Memphis", "ShipToStateCode": "TN", "ShipToZipCode": "38118", "ShipToCountryCode": "USA" } ] } }
{
    "IsSuccess": true,
    "OperationType": "GetWarehouseResponse",
    "SellerID": "V006",
    "ResponseBody": {
        "WarehouseList": [
            {
                "WarehouseCode": "10",
                "AllowBulkItem": 0,
                "AllowSmallItem": 1,
                "ShipToAddress1": "4995 Citation Dr Suite 101,Dock 1-10",
                "ShipToCityName": "Memphis",
                "ShipToStateCode": "TN",
                "ShipToZipCode": "38118",
                "ShipToCountryCode": "USA"
            }
        ]
    }
}

请求失败错误信息

常规HTTP错误回复,请参考回复失败错误代码列表

更新日期:10/15/2018