Book flight
Overview
The book endpoint creates a flight reservation in the GDS. It supports regular GDS content (Amadeus, Sabre) as well as low-cost carriers and NDC content from Travelfusion.
Use case
This endpoint can be used on a reservation check-out page to allow users to book a fare. The booking process initiates the reservation with the airline, which may take some time to fully process.
View the complete_verification endpoint for more information on the booking process for Travelfusion fares that require 3D security for credit card payments.
What’s next?
The booking_uid in the response must be used to get reservation details via the get_reservation_details endpoint until the status becomes something other than in-progress.
Key parameters
Response structure
The response contains:
booking_uid— unique booking identifier for tracking the reservationstatus— initial reservation status (typicallyin-progress)pnr_id— passenger name record identifier in the GDS
Booking flow
Validate fare via pricing
Always call the pricing endpoint first to confirm the fare is still available.
Collect traveler and payment details
Gather traveler information and payment method from your checkout page.
Error handling
If the booking fails, common scenarios include:
- Fare no longer available — the fare expired between pricing and booking
- Payment declined — credit card validation failed
- Duplicate booking — same
booktrack_idwas already used (create a new one for retries)
Always create a new booktrack_id when re-attempting a booking that failed. Reusing the same identifier will result in a duplicate booking error.
