Legacy platform

Cancel an order line

If the customer decides to cancel one or more products in an order, the store associate can click the x icon for the corresponding order line. A confirmation pop-up is displayed where the store associate can select the reason for cancellation and confirm. The getCommonCodeList API is called with the CodeType as YCD_CANCEL_REASON to display the cancellation reasons. The modifyFulfillmentOptions API is called in the pending changes mode to cancel the product.

When the store associate clicks Save, the changeOrder API is called to commit the changes to the database. If the changes are successfully saved to the order, an appropriate success message is displayed and the store associate can click Proceed to Refund to go to the Capture Payment screen.