我正在使用Amazon Feeds Api中的SubmitFeed _POST_FBA_INBOUND_CARTON_CONTENTS_。我提交了这个XML文档。我已经成功地将此呼叫用于每个纸箱只有一个SKU的简单情况。我希望每个纸箱有三个SKU。 Sellercentral中的订单显示了所有正确的尺寸和重量数据,但是即使我只提交了一个纸箱ID,也还是三个纸箱,而不是一个。
<?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>**************</MerchantIdentifier>
</Header>
<MessageType>CartonContentsRequest</MessageType>
<Message>
<MessageID>1</MessageID>
<CartonContentsRequest>
<ShipmentId>FBA******S2F</ShipmentId>
<NumCartons>1</NumCartons>
<Carton>
<CartonId>55172</CartonId>
<Item>
<SKU>SKU-ABC</SKU>
<QuantityShipped>48</QuantityShipped>
<QuantityInCase>24</QuantityInCase>
</Item>
<Item>
<SKU>SKU-DEF</SKU>
<QuantityShipped>48</QuantityShipped>
<QuantityInCase>24</QuantityInCase>
</Item>
<Item>
<SKU>SKU-XYZ</SKU>
<QuantityShipped>72</QuantityShipped>
<QuantityInCase>24</QuantityInCase>
</Item>
</Carton>
</CartonContentsRequest>
</Message>
</AmazonEnvelope>
<?xml version="1.0"?>
<!-- Revision="$Revision: #3 $" -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<!--
$Date: 2006/11/21 $
AMAZON.COM CONFIDENTIAL. This document and the information contained in it are
confidential and proprietary information of Amazon.com and may not be reproduced,
distributed or used, in whole or in part, for any purpose other than as necessary
to list products for sale on the www.amazon.com web site pursuant to an agreement
with Amazon.com.
-->
<xsd:include schemaLocation="amzn-base.xsd"/>
<xsd:element name="CartonContentsRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ShipmentId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="FBA[A-Z0-9]+" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="NumCartons" type="xsd:positiveInteger" />
<xsd:element name="Carton" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="CartonId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[a-zA-Z0-9]+" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Item" maxOccurs="200">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="SKU"/>
<xsd:element name="QuantityShipped" type="xsd:positiveInteger" />
<xsd:element name="QuantityInCase" type="xsd:positiveInteger" default="1"/>
<xsd:element name="ExpirationDate" type="xsd:date" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
答案 0 :(得分:0)
事实证明,我的问题出在其他地方,因此您可以放心地假设我在此处发布的XML有效。