亚马逊 MWS 使用一个 Feed 将多个订单标记为已发货
Amazon MWS Marking multiple orders as shipped using one feed
我已经为提交已发货的订单准备了 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>
如果我遗漏了什么,请告诉我。
谢谢
乍一看还不错。联系 MWS 支持,他们可以准确地告诉您发生了什么。
谢谢@ScottG 让我记住了这个。
XML 供稿中有一个小的变化,只是将其分成多条消息,因为每个订单意味着每个订单供稿一条消息。
所以解决方案是
<?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>
我已经为提交已发货的订单准备了 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>
如果我遗漏了什么,请告诉我。 谢谢
乍一看还不错。联系 MWS 支持,他们可以准确地告诉您发生了什么。
谢谢@ScottG 让我记住了这个。 XML 供稿中有一个小的变化,只是将其分成多条消息,因为每个订单意味着每个订单供稿一条消息。
所以解决方案是
<?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>