我正在使用以下XML接收跟踪信息并通过Feed更新Amazon:
<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>**Commented Out**</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
<MessageID>1</MessageID>
<OrderFulfillment>
<AmazonOrderID>**Commented Out**</AmazonOrderID>
<MerchantFulfillmentID>123456</MerchantFulfillmentID>
<FulfillmentDate>2013-17-09T00:00:00</FulfillmentDate>
<FulfillmentData>
<CarrierName>UPS</CarrierName>
<ShippingMethod>UPS Ground</ShippingMethod>
<ShipperTrackingNumber>**Commented Out**</ShipperTrackingNumber>
</FulfillmentData>
<Item>
<AmazonOrderItemCode>**Commented Out**</AmazonOrderItemCode>
<MerchantFulfillmentID>1</MerchantFulfillmentID>
<Quantity>1</Quantity>
</Item>
</OrderFulfillment>
</Message>
</AmazonEnvelope>
我收到以下回复,我无法确定:
<Result>
<MessageID>1</MessageID>
<ResultCode>Error</ResultCode>
<ResultMessageCode>25</ResultMessageCode>
<ResultDescription>We are unable to process the XML feed because one or more items are invalid. Please re-submit the feed.</ResultDescription>
</Result>
答案 0 :(得分:0)
<CarrierName>UPS</CarrierName>
我相信这应该是:
<CarrierCode>UPS</CarrierCode>
亚马逊销售指南指出,&#34;如果CarrierCode的选项列表(在基础XSD中)不包含您使用的运营商,则可以使用CarrierName而不是CarrierCode。&#34;
也许它已经认识到UPS应该是CarrierCode而不是CarrierName?
更新:
实际上这可能是:
在&#34;项目&#34; element,your&#34; MerchantFulfillmentID&#34;实际应该是&#34; MerchantFulfillment 项目 ID&#34;。我也犯了同样的错误。
也是日期&#34; 2013-17-09T00:00:00&#34;似乎无效。
答案 1 :(得分:0)
删除
<MerchantFulfillmentID>123456</MerchantFulfillmentID>
它会起作用
您可以拥有<AmazonOrderID>
或<MerchantOrderID> this can be only used if you linked your internal order in order acknowledgement feed </MerchantOrderID>