Subaving _POST_ORDER_FULFILLMENT_DATA_ Feed时亚马逊MWS错误

时间:2014-10-08 17:16:57

标签: amazon-mws

我收到以下错误:

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

我提交的XML如下:

<?xml version="1.0" encoding="utf-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
  <Header>
    <DocumentVersion>1.01</DocumentVersion>
    <MerchantIdentifier>**REMOVED**</MerchantIdentifier>
  </Header>
  <MessageType>OrderFulfillment</MessageType>
  <Message>
    <MessageID>1</MessageID>
    <OrderFulfillment>
      <MerchantOrderID>ORD-20000018</MerchantOrderID>
      <MerchantFulfillmentID>DEL-50000018</MerchantFulfillmentID>
      <FulfillmentDate>2014-10-08T14:55:00+00:00</FulfillmentDate>
      <FulfillmentData>
        <CarrierCode>Royal Mail</CarrierCode>
        <ShippingMethod>Standard</ShippingMethod>
        <ShipperTrackingNumber>KF95809XXXGB</ShipperTrackingNumber>
      </FulfillmentData>
      <Item>
        <MerchantOrderItemID>1013</MerchantOrderItemID>
        <MerchantFulfillmentItemID>22</MerchantFulfillmentItemID>
        <Quantity>2</Quantity>
      </Item>
    </OrderFulfillment>
  </Message>
</AmazonEnvelope>

你能不能告诉我哪里出错了,我用xsd仔细检查了元素名称。

1 个答案:

答案 0 :(得分:1)

根据OrderFulfillment.xsd架构,MerchantFulfillmentID的类型为IDNumber,派生自xsd:positiveInteger类型。 amzn-base.xsd还为<xsd:pattern value="\d{1,20}"/>指定IDNumber的正则表达式约束。因此,请尝试将您的第一个MerchantFulfillmentID更改为一个整数(顺便说一句,此时与MerchantFulfillmentID下的第二个Item不匹配)。