Skip to main content
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.
Price a specific exchange offer.

Usage

Options

Examples

Prints the POST /v1/exchange_price answer: payment_outcome, total_due or total_refund, 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 or total_refund exactly what is charged or refunded, 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 or total_refund). They add up: original_fare + total_due − total_refund = new_fare + penalty_amount + residual_value, with residual_value counted as 0 when absent. 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:
78900 + 29800 = 106200 + 2500.