Newegg Developer Portal

獲取進貨請求處理狀態

獲取指定的進貨請求狀態。

相關URL

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


註:請確保您的請求URL全都是小寫(除Seller ID)並且不能包含任何空格或者分行符號。

參數

名稱 是否必填? 描述
sellerid 是 您在新蛋商城的商家編號

相關請求資訊

HTTP方式 是否需要認證? 請求格式 回復格式 頻率限制
PUT 需要 XML,Json XML,Json 1000 請求/分鐘/商家

請求文件主體

屬性 是否必填? 格式 描述
OperationType 是 String 固定值:GetShipmentStatusRequest
ShipmentID 否 String 請求編號。如果請求編號已提供,其他條件將被忽略
ActionCode 否 Integer 操作代碼
0.All(Default) 所有(默認)
1.Create 創建
2.Void 作廢
MaxCount 否 Integer 返回記錄數最大值。默認為 100。
如果你指定的值超過 100,系統將仍返回 100 條記錄數。
RequestStatus 否 String 已提交請求的狀態
有效值:
ALL (Default) 所有(默認)
SUBMITTED 已提交
IN_PROGRESS 處理中
FINISHED 已完成
CANCELLED 已取消
RequestDateFrom 否 DateTime 根據請求時間範圍查找(太平洋標準時間)。
請參考可接受時間格式
RequestDateTo 否 DateTime 根據請求時間範圍查找(太平洋標準時間)。
請參考可接受時間格式

Schema: GetShipmentStatusRequest.xsd

示例:XML, Request

PUT https://api.newegg.com/marketplace/sbnmgmt/inboundshipment/shipmentstatus?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml
<NeweggAPIRequest>
<OperationType>GetShipmentStatusRequest</OperationType>
<RequestBody>
<GetRequestStatus>
<RequestIDList>
<RequestID>22AZLF9YXKT7S</RequestID>
</RequestIDList>
<ActionCode>1</ActionCode>
<MaxCount>100</MaxCount>
<RequestStatus>ALL</RequestStatus>
<RequestDateFrom/>
<RequestDateTo/>
</GetRequestStatus>
</RequestBody>
</NeweggAPIRequest>
PUT https://api.newegg.com/marketplace/sbnmgmt/inboundshipment/shipmentstatus?sellerid={sellerid} Authorization: 720ddc067f4d115bd544aff46bc75634 SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D Content-Type: application/xml Accept: application/xml <NeweggAPIRequest> <OperationType>GetShipmentStatusRequest</OperationType> <RequestBody> <GetRequestStatus> <RequestIDList> <RequestID>22AZLF9YXKT7S</RequestID> </RequestIDList> <ActionCode>1</ActionCode> <MaxCount>100</MaxCount> <RequestStatus>ALL</RequestStatus> <RequestDateFrom/> <RequestDateTo/> </GetRequestStatus> </RequestBody> </NeweggAPIRequest>
PUT https://api.newegg.com/marketplace/sbnmgmt/inboundshipment/shipmentstatus?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml

<NeweggAPIRequest>
    <OperationType>GetShipmentStatusRequest</OperationType>
    <RequestBody>
        <GetRequestStatus>
            <RequestIDList>
                <RequestID>22AZLF9YXKT7S</RequestID>
            </RequestIDList>
            <ActionCode>1</ActionCode>
            <MaxCount>100</MaxCount>
            <RequestStatus>ALL</RequestStatus>
            <RequestDateFrom/>
            <RequestDateTo/>
        </GetRequestStatus>
    </RequestBody>
</NeweggAPIRequest>

示例:Json, Request

PUT https://api.newegg.com/marketplace/sbnmgmt/inboundshipment/shipmentstatus?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json
{
"OperationType": "GetShipmentStatusRequest",
"RequestBody": {
"GetRequestStatus": {
"RequestIDList": {
"RequestID": [
"22AZLF9YXKT7S"
]
},
"ActionCode": 1,
"MaxCount": 100,
"RequestStatus": "ALL",
"RequestDateFrom": "2013-5-4",
"RequestDateTo": "2013-8-4"
}
}
}
PUT https://api.newegg.com/marketplace/sbnmgmt/inboundshipment/shipmentstatus?sellerid={sellerid} Authorization: 720ddc067f4d115bd544aff46bc75634 SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D Content-Type: application/json Accept: application/json { "OperationType": "GetShipmentStatusRequest", "RequestBody": { "GetRequestStatus": { "RequestIDList": { "RequestID": [ "22AZLF9YXKT7S" ] }, "ActionCode": 1, "MaxCount": 100, "RequestStatus": "ALL", "RequestDateFrom": "2013-5-4", "RequestDateTo": "2013-8-4" } } }
PUT https://api.newegg.com/marketplace/sbnmgmt/inboundshipment/shipmentstatus?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json

{
    "OperationType": "GetShipmentStatusRequest",
    "RequestBody": {
        "GetRequestStatus": {
            "RequestIDList": {
                "RequestID": [
                    "22AZLF9YXKT7S"
                ]
            },
            "ActionCode": 1,
            "MaxCount": 100,
            "RequestStatus": "ALL",
            "RequestDateFrom": "2013-5-4",
            "RequestDateTo": "2013-8-4"
        }
    }
}

回覆文件主體

屬性 格式 描述
IsSuccess String 用來確認獲取請求狀態的操作是否成功
True:成功
False:失敗
OperationType String 固定值: GetShipmentStatusResponse
SellerID String 商家編號
RequestID String 請求編號
ActionCode Integer 操作代碼
1.Create 創建
2.Void 作廢
RequestDate String 請求提交時間
RequestStatus String 已提交請求的狀態的有效值:
ALL (Default) 所有(默認)
SUBMITTED 已提交
IN_PROGRESS 處理中
FINISHED 已完成
CANCELLED 已取消
Memo String 詳細的錯誤資訊

Schema: GetShipmentStatusResponse.xsd

示例: XML, Response

<?xml version="1.0" encoding="utf-8"?>
<NeweggAPIResponse>
<IsSuccess>true</IsSuccess>
<SellerID>A006</SellerID>
<OperationType>GetShipmentStatusResponse</OperationType>
<ResponseBody>
<ResponseList>
<ResponseInfo>
<RequestId>22AZLF9YXKT7S</RequestId>
<ActionCode>1</ActionCode>
<RequestDate>07/11/2013 16:39:30</RequestDate>
<RequestStatus>IN_PROGRESS</RequestStatus>
</ResponseInfo>
</ResponseList>
</ResponseBody>
</NeweggAPIResponse>
<?xml version="1.0" encoding="utf-8"?> <NeweggAPIResponse> <IsSuccess>true</IsSuccess> <SellerID>A006</SellerID> <OperationType>GetShipmentStatusResponse</OperationType> <ResponseBody> <ResponseList> <ResponseInfo> <RequestId>22AZLF9YXKT7S</RequestId> <ActionCode>1</ActionCode> <RequestDate>07/11/2013 16:39:30</RequestDate> <RequestStatus>IN_PROGRESS</RequestStatus> </ResponseInfo> </ResponseList> </ResponseBody> </NeweggAPIResponse>
<?xml version="1.0" encoding="utf-8"?>
<NeweggAPIResponse>
    <IsSuccess>true</IsSuccess>
    <SellerID>A006</SellerID>
    <OperationType>GetShipmentStatusResponse</OperationType>
    <ResponseBody>
        <ResponseList>
            <ResponseInfo>
                <RequestId>22AZLF9YXKT7S</RequestId>
                <ActionCode>1</ActionCode>
                <RequestDate>07/11/2013 16:39:30</RequestDate>
                <RequestStatus>IN_PROGRESS</RequestStatus>
            </ResponseInfo>
        </ResponseList>
    </ResponseBody>
</NeweggAPIResponse>

示例: Json, Response

{
"IsSuccess": true,
"SellerID": "A006",
"OperationType": "GetShipmentStatusResponse",
"ResponseBody": {
"ResponseList": [
{
"RequestId": "22AZLF9YXKT7S",
"ActionCode": 1,
"RequestDate": "07/11/2013 16:39:30",
"RequestStatus": "IN_PROGRESS"
}
]
}
}
{ "IsSuccess": true, "SellerID": "A006", "OperationType": "GetShipmentStatusResponse", "ResponseBody": { "ResponseList": [ { "RequestId": "22AZLF9YXKT7S", "ActionCode": 1, "RequestDate": "07/11/2013 16:39:30", "RequestStatus": "IN_PROGRESS" } ] } }
{
    "IsSuccess": true,
    "SellerID": "A006",
    "OperationType": "GetShipmentStatusResponse",
    "ResponseBody": {
        "ResponseList": [
            {
                "RequestId": "22AZLF9YXKT7S",
                "ActionCode": 1,
                "RequestDate": "07/11/2013 16:39:30",
                "RequestStatus": "IN_PROGRESS"
            }
        ]
    }
}

請求失敗錯誤資訊

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

更新日期:10/15/2018