2

我正在使用以下 XML 通过 Feed 接收跟踪信息并更新亚马逊:

<?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>
4

2 回答 2

1

删除 <MerchantFulfillmentID>123456</MerchantFulfillmentID> 它会工作

你可以有<AmazonOrderID>

或者<MerchantOrderID> this can be only used if you linked your internal order in order acknowledgement feed </MerchantOrderID>

于 2016-10-03T16:03:03.777 回答
0
 <CarrierName>UPS</CarrierName>

我认为这应该是:

 <CarrierCode>UPS</CarrierCode>

Selling on Amazon Guide to XML 指出,“如果 CarrierCode 的选项列表(在基本 XSD 中)不包含您使用的承运人,您可以使用 CarrierName 而不是 CarrierCode。”

也许它已经认识到 UPS 应该是 CarrierCode 而不是 CarrierName?

更新:

这实际上可能是:

在“Item”元素中,您的“MerchantFulfillmentID”实际上应该是“MerchantFulfillment Item ID”。我也犯了同样的错误。

此外,日期“2013-17-09T00:00:00”似乎无效。

于 2014-05-22T18:56:24.690 回答