我准备了提交订单的Feed。
它与一个订单完美配合,但不知何故,它不适用于多个订单和状态跟踪错误。
<Result>
<MessageID>9223372036854775807</MessageID>
<ResultCode>Error</ResultCode>
<ResultMessageCode>50001</ResultMessageCode>
<ResultDescription>The XML you submitted is ill-formed at the Amazon Envelope XML level at (or near) line 24, column 23.</ResultDescription>
</Result>
我的Feed在下面。
<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xsi:noNamespaceSchemaLocation="amzn-envelope.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>xxxxxxxxxxxx</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<OrderFulfillment>
<AmazonOrderID>123-4567-78965</AmazonOrderID>
<FulfillmentDate>2018-05-21T06:58:20Z</FulfillmentDate>
<FulfillmentData>
<CarrierName>xxxxx</CarrierName>
<ShippingMethod>xxxx</ShippingMethod>
<ShipperTrackingNumber>xxxxxx</ShipperTrackingNumber>
</FulfillmentData>
<Item>
<AmazonOrderItemCode>1233</AmazonOrderItemCode>
<Quantity>1</Quantity>
</Item>
</OrderFulfillment>
<OrderFulfillment>
<AmazonOrderID>123-4567-78966</AmazonOrderID>
<FulfillmentDate>2018-05-22T06:58:18Z</FulfillmentDate>
<FulfillmentData>
<CarrierName>xxxx</CarrierName>
<ShippingMethod>xxxx</ShippingMethod>
<ShipperTrackingNumber>xxxxxx</ShipperTrackingNumber>
</FulfillmentData>
<Item>
<AmazonOrderItemCode>xxxxxxxxx</AmazonOrderItemCode>
<Quantity>1</Quantity>
</Item>
</OrderFulfillment>
</Message>
</AmazonEnvelope>
如果我错过了什么,请告诉我。 感谢
答案 0 :(得分:0)
乍一看对我好看。联系MWS支持人员,他们可以准确地告诉您发生了什么。
答案 1 :(得分:0)
谢谢,@ ScottG记住我这个。 XML Feed中有一个小的变化,只需将其分成多个消息,每个订单就意味着每个订单提要一条消息。
所以解决方案是
<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xsi:noNamespaceSchemaLocation="amzn-envelope.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>xxxxxxxxxxxx</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<OrderFulfillment>
<AmazonOrderID>123-4567-78965</AmazonOrderID>
<FulfillmentDate>2018-05-21T06:58:20Z</FulfillmentDate>
<FulfillmentData>
<CarrierName>xxxxx</CarrierName>
<ShippingMethod>xxxx</ShippingMethod>
<ShipperTrackingNumber>xxxxxx</ShipperTrackingNumber>
</FulfillmentData>
<Item>
<AmazonOrderItemCode>1233</AmazonOrderItemCode>
<Quantity>1</Quantity>
</Item>
</OrderFulfillment>
</Message>
<Message>
<MessageID>2</MessageID>
<OperationType>Update</OperationType>
<OrderFulfillment>
<AmazonOrderID>123-4567-78966</AmazonOrderID>
<FulfillmentDate>2018-05-22T06:58:18Z</FulfillmentDate>
<FulfillmentData>
<CarrierName>xxxx</CarrierName>
<ShippingMethod>xxxx</ShippingMethod>
<ShipperTrackingNumber>xxxxxx</ShipperTrackingNumber>
</FulfillmentData>
<Item>
<AmazonOrderItemCode>xxxxxxxxx</AmazonOrderItemCode>
<Quantity>1</Quantity>
</Item>
</OrderFulfillment>
</Message>
</AmazonEnvelope>