使用MWS API提交订单履行供稿时遇到问题。我尝试发送的XML是:
<?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>**************</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
<MessageID>1</MessageID>
<OrderFulfillment>
<AmazonOrderID>###-#######-#######</AmazonOrderID>
<MerchantFulfillmentID>******************</MerchantFulfillmentID>
<FulfillmentDate>2018-07-13T16:47:51.583+01:00</FulfillmentDate>
<FulfillmentData>
<CarrierCode>Other</CarrierCode>
<ShippingMethod>DPD</ShippingMethod>
<ShipperTrackingNumber>##############</ShipperTrackingNumber>
</FulfillmentData>
<Item>
<AmazonOrderItemCode>B071L86TM1</AmazonOrderItemCode>
<MerchantOrderItemID>***-###</MerchantOrderItemID>
<Quantity>1</Quantity>
</Item>
</OrderFulfillment>
</Message>
</AmazonEnvelope>
我收到通用XML错误消息:
<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>
我检查了其他类似的问题,但没有帮助:'FulfillmentDate'具有ISO 8601格式和时区偏移,遗漏'Item'不起作用,将'CarrierCode'替换为'CarrierName'不起作用,切换将'AmazonOrderID'替换为'MerchantOrderID'无效。