使用 XML 管理亚马逊订单2——确认接收订单
通过“订单确认”上传数据,您能够确认订单下载是否成功。确认上传数据还允许您提供自己的订单编号和订单商品编号,如果需要的话,可在之后用作相同订单的上传数据的参考。
此外,您可以在以下任意情况下利用该上传数据取消整个订单:
买家要求您取消订单(并且您还没有对订单进行配送)。
您接收到了一个单项商品订单,但您不能够对商品(已残损商品)进行配送。
您无法将订单上传到您的系统里面。
要,请使用 失败状态代码。
https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/OrderAcknowledgement.xsd
<?xml version="1.0" ?> <!- Revision="$Revision: #7 $" --> <xsd:schema elementFormDefault="qualified"> <xsd:include schemaLocation="amzn-base.xsd" /> <xsd:element name="OrderAcknowledgement"> <xsd:complexType> <xsd:sequence> <xsd:element ref="AmazonOrderID" /> <xsd:element ref="MerchantOrderID" minOccurs="0" /> <xsd:element name="StatusCode"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Success" /> <xsd:enumeration value="Failure" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="Item" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element ref="AmazonOrderItemCode" /> <xsd:element ref="MerchantOrderItemID" minOccurs="0" /> <xsd:element name="CancelReason" minOccurs="0"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="NoInventory" /> <xsd:enumeration value="ShippingAddressUndeliverable" /> <xsd:enumeration value="CustomerExchange" /> <xsd:enumeration value="BuyerCanceled" /> <xsd:enumeration value="GeneralAdjustment" /> <xsd:enumeration value="CarrierCreditDecision" /> <xsd:enumeration value="RiskAssessmentInformationNotValid" /> <xsd:enumeration value="CarrierCoverageFailure" /> <xsd:enumeration value="CustomerReturn" /> <xsd:enumeration value="MerchandiseNotReceived" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>
<?xml version="1.0" ?> <AmazonEnvelope noNamespaceSchemaLocation="amzn-envelope.xsd"> <Header> <DocumentVersion>1.01</DocumentVersion> <MerchantIdentifier> M_IDENTIFIER</MerchantIdentifier> </Header> <MessageType>订单确认</MessageType> <Message> <MessageID>1</MessageID> <OrderAcknowledgement> <AmazonOrderID>050-1234567-1234567</AmazonOrderID> <MerchantOrderID>1234567</MerchantOrderID> <StatusCode>成功</StatusCode> <Item> <AmazonOrderItemCode>12345678901234</AmazonOrderItemCode> <MerchantOrderItemID>1234567</MerchantOrderItemID> </Item> </OrderAcknowledgement> </Message> </AmazonEnvelope>
Acknowledge Receipt of Orders - Order Acknowledgement
Description
The Order Acknowledgment feed allows you to acknowledge your success or failure with downloading an order. The acknowledgment feed also allows you to provide your own order ID and order item IDs, which you can then reference in future feeds for the same order, if desired.
Additionally, you can use this feed to cancel the entire order under one of these circumstances:
The customer asked you to cancel the order (and you have not yet shipped it).
You received a single-item order but you can't ship the item (damaged goods).
You are unable to upload an order into your system.
To cancel the order, use the Failure StatusCode.
Dictionary
XSD
https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/OrderAcknowledgement.xsd
<?xml version="1.0" ?><!- Revision="$Revision: #7 $" --><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xsd:include schemaLocation="amzn-base.xsd" /><xsd:element name="OrderAcknowledgement"><xsd:complexType><xsd:sequence> <xsd:element ref="AmazonOrderID" /> <xsd:element ref="MerchantOrderID" minOccurs="0" /><xsd:element name="StatusCode"><xsd:simpleType><xsd:restriction base="xsd:string"> <xsd:enumeration value="Success" /> <xsd:enumeration value="Failure" /> </xsd:restriction> </xsd:simpleType> </xsd:element><xsd:element name="Item" minOccurs="0" maxOccurs="unbounded"><xsd:complexType><xsd:sequence> <xsd:element ref="AmazonOrderItemCode" /> <xsd:element ref="MerchantOrderItemID" minOccurs="0" /><xsd:element name="CancelReason" minOccurs="0"><xsd:simpleType><xsd:restriction base="xsd:string"> <xsd:enumeration value="NoInventory" /> <xsd:enumeration value="ShippingAddressUndeliverable" /> <xsd:enumeration value="CustomerExchange" /> <xsd:enumeration value="BuyerCanceled" /> <xsd:enumeration value="GeneralAdjustment" /> <xsd:enumeration value="CarrierCreditDecision" /> <xsd:enumeration value="RiskAssessmentInformationNotValid" /> <xsd:enumeration value="CarrierCoverageFailure" /> <xsd:enumeration value="CustomerReturn" /> <xsd:enumeration value="MerchandiseNotReceived" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>Example
<?xml version="1.0" ?><AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"><Header> <DocumentVersion>1.01</DocumentVersion> <MerchantIdentifier> M_IDENTIFIER</MerchantIdentifier></Header><MessageType>OrderAcknowledgement</MessageType><Message> <MessageID>1</MessageID> <OrderAcknowledgement> <AmazonOrderID>050-1234567-1234567</AmazonOrderID> <MerchantOrderID>1234567</MerchantOrderID> <StatusCode>Success</StatusCode> <Item> <AmazonOrderItemCode>12345678901234</AmazonOrderItemCode> <MerchantOrderItemID>1234567</MerchantOrderItemID> </Item> </OrderAcknowledgement></Message></AmazonEnvelope>
特别声明:以上文章内容仅代表作者本人观点,不代表ESG跨境电商观点或立场。如有关于作品内容、版权或其它问题请于作品发表后的30日内与ESG跨境电商联系。
二维码加载中...
使用微信扫一扫登录
使用账号密码登录
平台顾问
微信扫一扫
马上联系在线顾问
小程序
ESG跨境小程序
手机入驻更便捷
返回顶部