提交商品檢索報表

請求獲取新蛋類目下有效商品列表。

相關URL

Newegg.com: https://api.newegg.com/marketplace/reportmgmt/report/submitrequest?sellerid={sellerid}
Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/reportmgmt/report/submitrequest?sellerid={sellerid}
Newegg.ca: https://api.newegg.com/marketplace/can/reportmgmt/report/submitrequest?sellerid={sellerid}

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

參數

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

相關請求資訊

HTTP方式 是否需要認證? 請求格式 回覆格式 頻率限制
POST 需要 XML,Json XML,Json 100 請求/小時

請求文件主體

屬性 是否必填? 格式 描述
OperationType String 固定值:ItemLookupRequest
UPC 如果沒有提供 ManufacturerPart#,該項必填 String 商品的UPC/EAN編碼
Condition Integer 有效值:
1. New(全新)
2. Refurbished(翻新)
3. Used – Like New(二手 – 類似新品)
4. Used – Very Good(二手 – 非常好)
5. Used – Good(二手 – 好)
6. Used – Acceptable(二手 – 尚可)
ManufacturerName 如果沒有提供 UPC,該項必填 String 製造商名稱
ManufacturerPartNumber 如果沒有提供 UPC,該項必填 String 製造商商品編碼
PacksOrSets Integer 指定商品包裝個數

Schema: ItemLookupRequest.xsd

示例:XML, Request

POST https://api.newegg.com/marketplace/reportmgmt/report/submitrequest?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml

<NeweggAPIRequest>
    <OperationType>ItemLookupRequest</OperationType>
    <RequestBody>
        <RequestCriteria>
            <Item>
                <UPC>20140711101111</UPC>
                <Condition>1</Condition>
                <ManufacturerName>q-see</ManufacturerName>
                <ManufacturerPartNumber>canmfpn20140711101</ManufacturerPartNumber>
                <PacksOrSets>1</PacksOrSets>
            </Item>
            <Item>
                <UPC>20140711101111</UPC>
                <Condition>1</Condition>
                <ManufacturerName>q-see</ManufacturerName>
                <ManufacturerPartNumber>canmfpn20140711101</ManufacturerPartNumber>
            </Item>
            <Item>
                <Condition>1</Condition>
                <ManufacturerName>q-see</ManufacturerName>
                <ManufacturerPartNumber>canmfpn20140711101</ManufacturerPartNumber>
                <PacksOrSets>4</PacksOrSets>
            </Item>
            <Item>
                <ManufacturerName>q-see</ManufacturerName>
                <ManufacturerPartNumber>canmfpn20140711101</ManufacturerPartNumber>
            </Item>
        </RequestCriteria>
    </RequestBody>
</NeweggAPIRequest>

示例:Json, Request

POST https://api.newegg.com/marketplace/reportmgmt/report/submitrequest?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json

{
    "OperationType": "ItemLookupRequest",
    "RequestBody": {
        "RequestCriteria": {
            "Item": [
                {
                    "UPC": "20140711101111",
                    "Condition": "1",
                    "ManufacturerName": "q-see",
                    "ManufacturerPartNumber": "canmfpn20140711101"
                },
                {
                    "UPC": "20140711101111",
                    "Condition": "1",
                    "ManufacturerName": "q-see",
                    "ManufacturerPartNumber": "canmfpn20140711101"
                },
                {
                    "Condition": "1",
                    "ManufacturerName": "q-see",
                    "ManufacturerPartNumber": "canmfpn20140711101"
                },
                {
                    "ManufacturerName": "q-see",
                    "ManufacturerPartNumber": "canmfpn20140711101"
                }
            ]
        }
    }
}

回覆文件主體

屬性 格式 描述
IsSuccess String 獲取資料狀態操作:
True:成功
False:失敗
OperationType String 固定值:ItemLookupReportResponse
SellerID String 您的商家編號
RequestId String 新蛋為已提交的請求分配的編號
RequestType String 固定值:ITEM_LOOKUP
RequestDate String 資料提交的時間(太平洋標準時間)
RequestSatus String 提交狀態:
SUBMITTED 已提交(默認)
Memo String 附加資訊

Schema: SubmitReportResponse.xsd

示例: XML, Response

<NeweggAPIResponse>
    <IsSuccess>true</IsSuccess>
    <OperationType>ItemLookupReportResponse</OperationType>
    <SellerID>a001</SellerID>
    <ResponseBody>
        <ResponseList>
            <ResponseInfo>
                <RequestId>270Z8Y3SYIGQV</RequestId>
                <RequestType>ITEM_LOOKUP</RequestType>
                <RequestDate>07/12/2014 11:02:35</RequestDate>
                <RequestStatus>SUBMITTED</RequestStatus>
            </ResponseInfo>
        </ResponseList>
    </ResponseBody>
</NeweggAPIResponse>

示例: Json, Response

{
    "IsSuccess": true,
    "OperationType": "ItemLookupReportResponse",
    "SellerID": "a001",
    "ResponseBody": {
        "ResponseList": [
            {
                "RequestId": "270Z8Y3SYIGQV",
                "RequestType": "ITEM_LOOKUP",
                "RequestDate": "07/12/2014 11:34:57",
                "RequestStatus": "SUBMITTED"
            }
        ]
    }
}

請求失敗錯誤資訊

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

錯誤代碼 描述
RP010 Invalid Order Number.
無效的 Order Number
RP018 Invalid Settlement Date.
無效的 Settlement Date(結算時間)
RP019 The requestID cannot be null or empty.
請求編號(requestID)不能為空
RP020 We are unable to process your request because one of the following search criteria is required: SettlementID, SettlementDate, or SettlementDateFrom and SettlementDateTo.
我們無法處理你的請求,因為你必須提供下列搜索條件中的一個:SettlementID,SettlementDate或 SettlementDateFrom 和 SettlementDateTo
RP021 Maximum item lookup cannot exceed 1000 for each request.
每個請求的商品檢索數量最多不超過1000個
RP022 Daily Inventory Report does not support multiple warehouse locations. For multiple warehouse locations, please use International Program – Daily Inventory Report.
每日庫存報表不支持多個倉庫所在地。若有多個倉庫所在地,請使用新蛋全球化- 每日庫存報表章節內容.

示例: XML, Response

<?xml version="1.0" encoding="utf-8"?>
<Errors>
    <Error>
        <Code>RP018</Code>
        <Message>Invalid Settlement Date</Message>
    </Error>
</Errors>

示例: Json, Response

[
    {
        "Code": "RP018",
        "Message": "Invalid Settlement Date"
    }
]

更新日期:10/15/2018