獲取新蛋倉庫列表

獲取新蛋倉庫的有效資訊。

相關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}

註:請確保您的請求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, Response

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, Response

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: Tennessee Bulk Warehouse(田納西大型倉庫)
07: California Small Warehouse(加利福尼亞小型倉庫)
08: California Bulk Item Warehouse(加利福尼亞大型倉庫)
10: New Jersey Bulk Warehouse(新澤西大型倉庫)
14: New Jersey 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>

示例: 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"
            }
        ]
    }
}

請求失敗錯誤資訊

常規HTTP錯誤回應,請參考回覆失敗錯誤代碼清單

更新日期:10/15/2018