一个订单的多个包裹的亚马逊订单履行_POST_ORDER_FULFILLMENT_DATA_

时间:2018-10-02 13:34:56

标签: amazon-mws

我一直在处理每天出现一次的问题。具有多个包(fulfillmentdata,item)的订单。这是一个订单,该人可能已经订购了两个不同的物品,并且由商人以两个不同的包裹以不同的跟踪号发送给他们。往往在亚马逊上并不常见,但在其他系统中很常见。

我尝试了XML的多个版本来尝试使这项工作成功,但没有成功。
我的第一次尝试:

<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>XXXXXXXX</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
  <MessageID>1</MessageID>
   <OrderFulfillment>
    <MerchantOrderID>55XXXX</MerchantOrderID>
    <FulfillmentDate>2018-10-01T17:XX:XX-00:00</FulfillmentDate>
    <FulfillmentData>
     <CarrierCode>USPS</CarrierCode>
     <ShippingMethod>First Class Parcel</ShippingMethod>
     <ShipperTrackingNumber>940011590109XXXXXX</ShipperTrackingNumber>
    </FulfillmentData>
    <FulfillmentData>
     <CarrierCode>USPS</CarrierCode>
     <ShippingMethod>First Class Parcel</ShippingMethod>
     <ShipperTrackingNumber>940011590109XXXXX</ShipperTrackingNumber>
    </FulfillmentData>
    <Item>
      <AmazonOrderItemCode>354178450XXXX</AmazonOrderItemCode>
      <Quantity>1</Quantity>
    </Item>
    <Item>
      <AmazonOrderItemCode>014909917XXXX</AmazonOrderItemCode>
      <Quantity>1</Quantity>
    </Item>
   </OrderFulfillment>
 </Message>
</AmazonEnvelope>

接下来,我尝试将其拆分为两个不同的消息

<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
 <DocumentVersion>1.01</DocumentVersion>
 <MerchantIdentifier>XXXXXXXX</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
<MessageID>1</MessageID>
 <OrderFulfillment>
  <MerchantOrderID>554XXX</MerchantOrderID>
  <FulfillmentDate>2018-10-01T17:XX:XX-00:00</FulfillmentDate>
  <FulfillmentData>
    <CarrierCode>USPS</CarrierCode>
    <ShippingMethod>First Class Parcel</ShippingMethod>
    <ShipperTrackingNumber>94001159010920XX</ShipperTrackingNumber>
  </FulfillmentData>
  <Item>
    <AmazonOrderItemCode>0149099174XXXX</AmazonOrderItemCode>
    <Quantity>1</Quantity>
  </Item>
 </OrderFulfillment>
</Message>
<Message>
<MessageID>2</MessageID>
 <OrderFulfillment>
  <MerchantOrderID>554XXX</MerchantOrderID>
  <FulfillmentDate>2018-10-01T17:XX:XX-00:00</FulfillmentDate>
  <FulfillmentData>
    <CarrierCode>USPS</CarrierCode>
    <ShippingMethod>First Class Parcel</ShippingMethod>
    <ShipperTrackingNumber>9400115901092029XXX</ShipperTrackingNumber>
  </FulfillmentData>
  <Item>
    <AmazonOrderItemCode>3541784506XXXX</AmazonOrderItemCode>
    <Quantity>1</Quantity>
  </Item>
 </OrderFulfillment>
</Message>
</AmazonEnvelope>

在第二条消息中,我收到以下错误(对于消息1和2):

<MessageID>2</MessageID>
    <ResultCode>Error</ResultCode>
    <ResultMessageCode>18028</ResultMessageCode>
    <ResultDescription>The data you submitted is incomplete or invalid. For help fixing this, see http://sellercentral.amazon.com/gp/help/30721</ResultDescription>

0 个答案:

没有答案