HomeGuidesRecipesAPI ReferenceChangelog
GuidesAPI ReferenceCustomer Help CenterLog In
These docs are for v2017-01-01. Click to read the latest docs for v2018-06-26.

Adjustments

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 true order.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.