下載資料架構
下載指定資料類型的類目模式。你可以下載類目範本文件來進行商品創建、庫存更新或訂單運輸。
相關URL
Newegg.com: https://api.newegg.com/marketplace/sellermgmt/seller/feedschema?sellerid={sellerid}
Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/sellermgmt/seller/feedschema?sellerid={sellerid}
Newegg.ca: https://api.newegg.com/marketplace/can/sellermgmt/seller/feedschema?sellerid={sellerid}
註:請確保您的請求URL全都是小寫(除Seller ID)並且不能包含任何空格或者分行符號。
參數
| 名稱 | 是否必填? | 描述 |
| sellerid | 是 | 您在新蛋商城的商家編號 |
相關請求資訊
| HTTP方式 | 是否需要認證? | 請求格式 | 回覆格式 | 頻率限制 |
| PUT | 需要 | XML,Json | XML,Json | 10 請求/分鐘/商家 |
請求文件主體
| 屬性 | 是否必填? | 格式 | 描述 | |||||||||||||||||||||||||||||||||
| OperationType | 是 | String | 固定值:GetFeedSchemaRequest | |||||||||||||||||||||||||||||||||
| FeedType | 是 | Integer | 你想從我們的系統中下載的資料類目模式類型
當前支持的類型如下:
|
|||||||||||||||||||||||||||||||||
| IndustryCode | 如果FeedType為ITEM_DATA,則必填 | String | ITEM_DATA 範本從屬的類目代碼 你可以通過獲取主類目列表功能獲取類目代碼 |
Schema: GetSchemaRequest.xsd
示例:XML, Request
PUT https://api.newegg.com/marketplace/sellermgmt/seller/feedschema?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml
<NeweggAPIRequest>
<OperationType>GetFeedSchemaRequest</OperationType>
<RequestBody>
<GetFeedSchema>
<FeedType>1</FeedType>
<IndustryCode>BA</IndustryCode>
</GetFeedSchema>
</RequestBody>
</NeweggAPIRequest>
示例:Json, Request
PUT https://api.newegg.com/marketplace/sellermgmt/seller/feedschema?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json
{
"OperationType": "GetFeedSchemaRequest",
"RequestBody": {
"GetFeedSchema": {
"FeedType": "1",
"IndustryCode": "BA"
}
}
}
回覆文件主體
新蛋會在返回源碼文件前將其壓縮為一個 Base64 編碼的字串。為了獲取到這個包,您需要:
- 下載回覆,將它保存為一個帶有“.zip”尾碼的二進位文件
- 用zip文件提取應用程式解碼Base64編碼的字串。
請求失敗錯誤資訊
常規HTTP錯誤回應,請參考回覆失敗錯誤代碼清單。
| 錯誤代碼 | 描述 |
| DF008 | Invalid industry code [{0}].
無效的主類目編碼[{0}]. |
示例: XML, Response
<?xml version="1.0" encoding="utf-8"?>
<Errors>
<Error>
<Code>DF008</Code>
<Message>Invalid industry code ABC</Message>
</Error>
</Errors>
示例: Json, Response
[
{
"Code": "DF008",
"Message": "Invalid industry code ABC"
}
]
更新日期:05/26/2021