Skip to main content
POST
/
v1
/
exchange_commit
Commit a flight exchange
curl --request POST \
  --url https://api.example.com/v1/exchange_commit \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "booking_ref": "JNK-A0AUR2",
  "last_name": "Carrard",
  "offer_id": "exch_offer_3c1a9f",
  "session_reference": "exch_7a1c93f0"
}
'
{
  "exchange_reference": "exch_7a1c93f0",
  "new_order_id": "ord_5d2e81b9",
  "new_ticket_numbers": [
    "0012345678901"
  ],
  "status": "exchanged",
  "payment_outcome": "paid",
  "warnings": [
    "<string>"
  ]
}
Execute a previously priced exchange. Poll exchange status for terminal state.

Authorizations

X-API-Key
string
header
required

Body

application/json
booking_ref
string
required
Example:

"JNK-A0AUR2"

last_name
string
required
Example:

"Carrard"

offer_id
string
required
session_reference
string
required
ticket_numbers
string[]
provider
string

Response

Commit a flight exchange

exchange_reference
string
Example:

"exch_7a1c93f0"

new_order_id
string
Example:

"ord_5d2e81b9"

new_ticket_numbers
string[]
Example:
["0012345678901"]
status
string
Example:

"exchanged"

payment_outcome
string
Example:

"paid"

warnings
string[]