Reference · step 7 of 9

POST/flights/booking/details

{{base_url}}/flights/booking/details

The booking as stored: status, payment status, the flights with the PNR, the passengers with their fare and ticket number per flight, the price.

Headers

Content-Typeapplication/json
AuthorizationBearer {{token}}
Reply (4 notes)
  • journeys[] is the booking journey by journey: its dates, its flights (segment_index restarts at 0 inside each journey; operating airline shown only on a codeshare) and, for every passenger on it, who they are (passenger_index is the same person on every journey), the status, the PNR, the ticket number, the fare paid for that journey in the components of the search price plus ancillaries, the fare attributes (fare_ref, refundable_type, cabin, booking class, fare basis, included baggage) and the ancillaries bought (a seat or meal with its segment_index, a bag without).
  • status per passenger per journey is PENDING until the booking is held or ticketed, then CONFIRMED; CANCELLED, VOIDED or REISSUED come later. price is the booking as a whole in the same components, total_fare and net_fare included.
  • pay_till appears on a held booking. Zero fare fields are omitted (omitempty).
  • status values are the API's order statuses: CREATED, PENDING, SUCCESS, ONHOLD, FAILED, PNR_RELEASED, CANCELLED, ABORTED.
Keys and what they mean
Request
keytypewhen presentimportancemeaning
booking_idstringrequiredmust readThe id book returned.
Total: 1 keys
Reply
keytypewhen presentimportancemeaning
statusstringalwaysmust readThe booking's state: CREATED, ONHOLD, SUCCESS, PNR_RELEASED, CANCELLED, FAILED.
payment_statusstringalwaysmust readPENDING until paid, then SUCCESS; FAILED or REFUNDED later.
pay_tilldatetimeon a holdmust readUntil when a held booking can be confirmed; after it the airline releases the seats.
journeys[]arrayalwaysmust readThe booking journey by journey: its dates, its flights and, for every passenger on it, who they are, their state, the PNR, the ticket, the fare paid for that journey and the add-ons.
journeys[].passengers[].pnrstringonce the airline confirmedmust readThe airline's record locator for this passenger on this journey. Empty until the hold or the ticket is confirmed.
journeys[].passengers[].statusstringalwaysmust readPENDING until confirmed, then CONFIRMED; CANCELLED, VOIDED or REISSUED when something happened to this passenger on this journey.
priceobjectalwaysmust readThe booking's price as a whole, in the components of the search price (base_fare, yq, yr, airline_gst, booking_fee, commission, other_taxes, total_fare, net_fare) plus ancillaries and fees.
journeys[].passengers[].fareobjectalwaysmust readWhat this passenger's journey cost, in the components of the search price plus ancillaries bought on it.
Total: 8 keys
Errors this call answers with (4)
HTTPcodemessagedetailwhen
4019001Authentication requiredInvalid token
4039002You do not have permission for this actionRole without bookings.read.
4003000Invalid requestBooking_id is required
4049005Not foundBooking not found
Questions developers ask (1)
Why is pnr empty?
The airline has not confirmed yet: the passenger reads PENDING. It appears once the hold or the ticket is confirmed.