Amazon MWS Order Cancel process

余生颓废 提交于 2019-12-01 21:38:47

i am able to cancel the entire order in amazon.

xml i am using

<?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>'.$storeDetails["merchantIdentifier"].'</MerchantIdentifier>
    </Header>
    <MessageType>OrderAcknowledgement</MessageType> 
    <Message>
            <MessageID>1</MessageID>
            <OrderAcknowledgement>
                <AmazonOrderID>'.$amazonOrderId.'</AmazonOrderID>
                <StatusCode>Failure</StatusCode>
                <Item>
                                <AmazonOrderItemCode>'.$item['store_product_code'].'</AmazonOrderItemCode>
                                <CancelReason>'.$reason.'</CancelReason>
                            </Item>
            </OrderAcknowledgement>
    </Message> 
</AmazonEnvelope

==== Let me know if it helps.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!