user profile
Sign in
user profile

Help with OrderAdjustment XML

by Seller_Gdn7MWR6vn6BY

Hey, I am wanting to use the feeds api (XML) to cancel an order and also issue a restocking fee, the XML passes when tested against the XSD files, but fails after submission with a ResultMessageCode: 18028 and a ResultDescription: The data you submitted with this item is incomplete or invalid. Please resubmit the item with all required fields completed with valid data.

<?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>valid merchant id</MerchantIdentifier>
</Header>
<MessageType>OrderAdjustment</MessageType>
<Message>
    <MessageID>1</MessageID>
    <OperationType>Update</OperationType>
    <OrderAdjustment>
        <AmazonOrderID>valid order id</AmazonOrderID>
        <ActionType>Cancel</ActionType>
        <CODCollectionMethod>DirectPayment</CODCollectionMethod>
        <AdjustedItem>
            <AmazonOrderItemCode>valid order item code</AmazonOrderItemCode>
            <AdjustmentReason>CustomerCancel</AdjustmentReason>
            <ItemPriceAdjustments>
                <Component>
                    <Type>Principal</Type>
                    <Amount currency='USD'>0</Amount>
                </Component>
                <Component>
                    <Type>Shipping</Type>
                    <Amount currency='USD'>0.00</Amount>
                </Component>
                <Component>
                    <Type>RestockingFee</Type>
                    <Amount currency='USD'>3.00</Amount>
                </Component>
            </ItemPriceAdjustments>
            <QuantityCancelled>1</QuantityCancelled>
            <Quantity>1</Quantity>
        </AdjustedItem>
    </OrderAdjustment>
</Message>
</AmazonEnvelope>

Any help would be greatly appreciated, I am not sure what is missing or wrong with my XML file, and not sure if I am even doing the price adjustments correctly.

Thanks

Tags: Cancelled order, Shipping
00
38 views
3 replies
Reply
3 replies
Quick filters
Sort by
user profile
Seller_atnk8fSvVuoeY
In reply to: Seller_Gdn7MWR6vn6BY's post

Why are you charging a restocking fee on a cancelled order. You can only cancel unshipped orders so a restocking fee would not apply.

Reply
00
user profile
Seller_cu1Lr54OxusWw
In reply to: Seller_Gdn7MWR6vn6BY's post

You can’t cancel an order if you confirmed shipment. You can only refund less restocking.

Reply
00
user profile
Seller_Gdn7MWR6vn6BY
In reply to: Seller_Gdn7MWR6vn6BY's post
This post has been deleted
Reply
00
There are no more posts to display
Go to original post

Similar Discussions