获取文件处理结果
如果文件处理状态显示为已完成,那么你就可以通过这个接口获取处理报告。
相关URL
Newegg.com: https://api.newegg.com/marketplace/datafeedmgmt/feeds/result/{Requestid}?sellerid={sellerid}
Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/datafeedmgmt/feeds/result/{Requestid}?sellerid={sellerid}
Newegg.ca: https://api.newegg.com/marketplace/can/datafeedmgmt/feeds/result/{Requestid}?sellerid={sellerid}
注:请确保您的请求URL全都是小写(除Seller ID)并且不能包含任何空格或者换行符。
参数
| 名称 | 是否必填? | 描述 |
| sellerid | 是 | 您在新蛋商城的商家编号 |
| Requestid | 是 | 已提交的数据请求的请求ID |
相关请求信息
| HTTP方式 | 是否需要认证? | 请求格式 | 回复格式 | 频率限制 |
| Get | 需要 | XML,Json | XML,Json | 10,000 请求/小时 |
示例:XML,Request
GET https://api.newegg.com/marketplace/datafeedmgmt/feeds/result/{Requestid}?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml
示例:Json,Request
GET https://api.newegg.com/marketplace/datafeedmgmt/feeds/result/{Requestid}?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json
回复文件主体
| 属性 | 格式 | 描述 |
| DocumentVersion | Decimal | 固定值:1.0 |
| MessageType | String | ProcessingReport |
| OrginalMessageName | String | 标识已处理信息的有效值 |
| OriginalMessageType | String | 可用于标识相关请求类型的错误或是警告的适用信息。 |
| ProcessedStamp | Datetime | 已处理信息的时间标记: 时间格式:8/12/2010 9:32:33 PM |
| StatusCode | String | 标识信息处理状态的有效值 |
| ProcessedCount | Integer | 已处理记录的总数 |
| SuccessCount | Integer | 已成功处理记录的总数 |
| WithErrorCount | Integer | 已处理记录中出错的记录总数 |
| SubCategoryID | String | 可用于标识相关请求类型的错误或是警告的适用信息。 |
| SellerPartNumber | String | |
| ManufacturerPartNumberOrISBN | String | |
| NeweggItemNumber | String | |
| UPC | String | |
| OrderNumber | String | |
| TrackingNumber | String | |
| ErrorDescription | String | 错误或警告的原因 |
Schema: ProcessingReport.xsd
示例:XML,Response
<?xml version="1.0" encoding="utf-8"?>
<NeweggEnvelope>
<Header>
<DocumentVersion>1.0</DocumentVersion>
</Header>
<MessageType>ProcessingReport</MessageType>
<Message>
<ProcessingReport>
<OriginalMessageName>APIAutoFile.xml</OriginalMessageName> <!-- please ignore this element -->
<StatusCode>ProcessReport</StatusCode>
<ProcessingSummary>
<ProcessedCount>3</ProcessedCount>
<SuccessCount>1</SuccessCount>
<WithErrorCount>2</WithErrorCount>
</ProcessingSummary>
<Result>
<AdditionalInfo>
<SubCategoryID>1648</SubCategoryID>
<SellerPartNumber>sellerparttest001</SellerPartNumber>
<ManufacturerPartNumberOrISBN>mftparttest001</ManufacturerPartNumberOrISBN>
<UPC />
</AdditionalInfo>
<ErrorList>
<ErrorDescription>Error(s). Item not created.</ErrorDescription>
<ErrorDescription>Manufacturer - The manufacturer does not exist in our system. Please contact Marketplace Support for more information </ErrorDescription>
</ErrorList>
</Result>
<Result>
<AdditionalInfo>
<SubCategoryID>1648</SubCategoryID>
<SellerPartNumber>sellerparttest002</SellerPartNumber>
<ManufacturerPartNumberOrISBN>mftparttest002</ManufacturerPartNumberOrISBN>
<UPC>null</UPC>
</AdditionalInfo>
<ErrorList>
<ErrorDescription>Error(s). Item not created.</ErrorDescription>
<ErrorDescription>UPC - Format Error: UPC must be an numeric string of at least 12 digits.</ErrorDescription>
</ErrorList>
</Result>
</ProcessingReport>
</Message>
</NeweggEnvelope>
示例:Json,Response
{
"NeweggEnvelope": {
"Header": {
"DocumentVersion": "1.0"
},
"MessageType": "ProcessingReport",
"Message": {
"ProcessingReport": {
"OriginalMessageName": "APIAutoFile.xml",
"StatusCode": "ProcessReport",
"ProcessingSummary": {
"ProcessedCount": "3",
"SuccessCount": "1",
"WithErrorCount": "2"
},
"Result": [
{
"AdditionalInfo": {
"SubCategoryID": "1648",
"SellerPartNumber": "sellerparttest001",
"ManufacturerPartNumberOrISBN": "mftparttest001"
},
"ErrorList": {
"ErrorDescription": [
"Error(s). Item not created.",
"Manufacturer - The manufacturer does not exist in our system. Please contact Marketplace Support for more information."
]
}
},
{
"AdditionalInfo": {
"SubCategoryID": "1648",
"SellerPartNumber": "sellerparttest002",
"ManufacturerPartNumberOrISBN": "mftparttest002",
"UPC": "null"
},
"ErrorList": {
"ErrorDescription": [
"Error(s). Item not created.",
"UPC - Format Error: UPC must be an numeric string of at least 12 digits."
]
}
}
]
}
}
}
}
请求失败错误信息
常规HTTP错误回复,请参考回复失败错误代码列表。
| 错误代码 | 描述 |
| DF004 | Unfortunately, we are unable to process your request at this time. We apologize for the inconvenience. Please try again later.
抱歉,当前我们无法处理你的请求。我们为给你造成的不便致歉。请稍后再试。 |
| DF005 | Your feed was not submitted successfully (Feed Request ID: [{0}]). Please resubmit your feed again.
你的数据没有提交成功(Feed Request ID: [{0}])。请重新提交你的数据。 |
| DF006 | The requestID cannot be null.
requestID 不能为空 |
| DF007 | Invalid RequestID.
无效的 requestID |
| DF010 | Data feed request processing failed:{0} Available values: a. FileContentError (mapped error message: Incorrect data feed format or template) b. No record (mapped error message: request with no record specified.) 数据请求处理失败:{0} 有效值: a. 文件内容错误(映射错误信息:错误的数据格式或模板) b. 没有记录(映射错误信息:请求中无给定记录) |
示例:XML,Response
<?xml version="1.0" encoding="utf-8"?>
<Errors>
<Error>
<Code>DF006</Code>
<Message>Invalid RequestID</Message>
</Error>
</Errors>
示例:Json,Response
[
{
"Code": "DF006",
"Message": "Invalid RequestID"
}
]
更新日期:10/15/2018