Adjustments are one of the key pieces in an order. They are essentially an audit trail of changes made to a booking by the traveler, seller or any other authorized delegate. Adjustments serve two key purposes:
- Redundancy check: Summing up the order's
baseAmount
along with the adjustment amounts will give you the final amount of the order. This formula should always be trueorder.baseAmount + order.addOns.amount + order.adjustments.amount = order.amount
- Audit trail: All changes to an order are done via adjustments.
Each end point below will create an adjustment to modify the order.