使用 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跨境小程序
手機入駐更便捷
返回頂部