Prices in this command’s output are integers in minor units. Money objects
carry
decimal_places — divide by 10 ** decimal_places to display
({ "value": 15977, "decimal_places": 2 } is 159.77, not 15,977). See
Money & prices.Usage
Options
Examples
POST /v1/exchange_price answer: payment_outcome, total_due, the traveler’s figures in customer_amounts, and a quote_id to commit against. In customer_amounts, original_fare is what the traveler paid for the ticket, new_fare the new ticket’s value, penalty_amount the airline’s change fee (absent when there is none), total_due exactly what is charged, non_refundable_difference the price difference the exchange does not pay back when the new ticket costs less (present only when there is one), and residual_value the part of the original fare the airline keeps as a credit (EMD) in the traveler’s name after an exchange to a cheaper fare (present only when the airline reports one; it is not refunded to the card and not part of total_due). An exchange does not pay a price difference back: payment_outcome is ADD_COLLECT or EVEN, never REFUND. They add up: original_fare + total_due = new_fare + penalty_amount + residual_value + non_refundable_difference, an absent figure counting as 0. The top-level fare_difference, original_fare, new_fare and penalty_amount are the supplier’s figures and are deprecated.
Moving a ZZ Standard ticket to ZZ Flex on the sandbox test airline prints, among the other fields:
