Question & Answer
Question
Why does changeOrder API not cancel entire order when order line quantity is different from original quantity in
Cause
As per the product behavior changeOrder does not cancel the entire order if the order line and quantity is different from the one on the order because product allows to cancel only the specified quantity and order line combination.
Answer
changeOrder will cancel the entire Order if the cancel is passed at the order Header line without any order line details. It also cancels the entire order if the exact quantity is passed along with the
orderLine detail.
<Order Action="CANCEL" OrderHeaderKey="20160916161501118368">
</Order>
But if you pass the OrderLine and quantity details which is not equal to the one on the order line level, it will only cancel the required line and the quantity mentioned in the OrderLine tag.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21990846