Apply promotions or coupons
A store associate can apply coupons to an order in the order modification flow. In the Edit Order
screen, a store associate can either scan a coupon or enter the coupon code to apply the coupon to
the order. The translateBarCode API is called to translate the coupon
code. Once the coupon is identified, the changeOrder API is called in
the pending changes mode to apply the coupon to the order. If the coupon is successfully applied to
the order, the screen is refreshed with the updated information such as order total and discounts.
If the coupon is not successfully applied, an error message is displayed. A store associate can also
delete a coupon by clicking the X icon next to the coupon. The
getCompleteOrderDetails API is called to refresh the screen with the
updated information.
When
the store associate clicks Save, the changeOrder
API is called to apply or remove a
coupon based on the user's action.