下载数据架构
下载指定数据类型的架构。你可以下载架构文件来进行商品创建、库存更新或订单运输。
相关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,Response
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,Request
<?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