獲取商品價格
獲取商品價格的相關資訊。
相關URL
該操作只適用於Neweggbusiness.com和Newegg.ca平台。
Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/contentmgmt/item/price?sellerid={sellerid}
Newegg.ca: https://api.newegg.com/marketplace/can/contentmgmt/item/price?sellerid={sellerid}
註:請確保您的請求URL全都是小寫(除Seller ID)並且不能包含任何空格或者分行符號。
參數
| 名稱 | 是否必填? | 描述 |
| sellerid | 是 | 您在新蛋商城的商家編號 |
相關請求資訊
| HTTP方式 | 是否需要認證? | 請求格式 | 回覆格式 | 頻率限制 |
| POST | 需要 | XML,Json | XML,Json | 10,000 請求/小時 |
請求文件主體
| 屬性 | 是否必填? | 格式 | 描述 |
| Type | 是 | String | 有效值:
|
| Value | 是 | String | 指定查詢類型的字串 |
| Condition | 否 | Integer | 有效值:
註:
|
Schema: GetItemPriceRequest.xsd
示例:XML, Request
POST https://api.newegg.com/marketplace/b2b/contentmgmt/item/price?sellerid={SellerID}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml
<ContentQueryCriteria>
<Type>1</Type>
<Value>A006testitem201201021459</Value>
</ContentQueryCriteria>
示例:Json, Request
POST https://api.newegg.com/marketplace/b2b/contentmgmt/item/price?sellerid={SellerID}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json
{
"Type": "1",
"Value": "A006testitem201201021459"
}
回覆文件主體
| 屬性 | 格式 | 描述 |
| SellerID | String | 您的商家編號 |
| ItemNumber | String | 新蛋分配的商品編號 |
| SellerPartNumber | String | 商家自訂的商品編號 |
| MAP | Decimal | 最低廣告價格。 如果商品售價低於設置的最低廣告價格,網站會要求客戶將該商品加入購物車來查看價格。 |
| CheckoutMAP | Integer | 有效值:
註:
|
| SellingPrice | Decimal | 實際銷售價格 |
| EnableFreeShipping | Integer | 有效值:
|
| OnPromotion | Integer,separated by comma | 有效值:
|
| ShipByNewegg | Integer | 有效值:
|
| Active | Integer | 有效值:
|
| LimitQuantity | Integer | 客戶在48小時內可以購買該商品的最大數量。最大值是500。註以下返值:
|
Schema: GetItemPriceResponse.xsd
示例:XML, Response
<?xml version="1.0" encoding="utf-8"?>
<PriceResult>
<SellerID>A006</SellerID>
<ItemNumber>9SIA0060884598</ItemNumber>
<SellerPartNumber>A006testitem201201021459</SellerPartNumber>
<ShipByNewegg>1</ShipByNewegg>
<Active>0</Active>
<MAP>25.99</MAP>
<CheckoutMAP>0</CheckoutMAP>
<SellingPrice>20.92</SellingPrice>
<EnableFreeShipping>1</EnableFreeShipping>
<OnPromotion>1,5</OnPromotion>
<LimitQuantity>1</LimitQuantity>
</PriceResult>
示例:Json, Response
{
"Active": "0",
"ItemNumber": "9SIA0060884598",
"SellerID": "A006",
"SellerPartNumber": "A006testitem201201021459",
"ShipByNewegg": "1",
"EnableFreeShipping": "1",
"MAP": 25.99,
"CheckoutMAP": 0,
"OnPromotion": "1,5",
"SellingPrice": 20.92,
"LimitQuantity": 1
}
請求失敗錯誤資訊
常規HTTP錯誤回應,請參考回覆失敗錯誤代碼清單。
| 錯誤代碼 | 描述 |
| CT001 | Invalid ItemNumber
無效的商品編號。 |
| CT002 | Invalid SellerPartNumber
無效的Seller Part#。 |
| CT003 | Invalid UPCCode
無效的UPC Code。 |
| CT005 | Invalid Action Type. We only support:0 – NE Item#, 1 — Seller Parts#, 2 — UPC Code
無效的Action類型。我們只支持:0-NE Item#, 1- Seller Parts#, 2-UPC Code。 |
| CT010 | Cannot find item with specified item condition.
找不到指定condition的商品。 |
| CT026 | Can’t find this item in the system, please create first
系統中找不到該商品,請先創建。 |
示例:XML, Response
<?xml version="1.0" encoding="utf-8"?>
<Errors>
<Error>
<Code>CT002</Code>
<Message>Invalid SellerPartNumber</Message>
</Error>
</Errors>
示例:Json, Response
[
{
"Code": "CT002",
"Message": "Invalid SellerPartNumber"
}
]
更新日期:08/28/2020