Skip to navigation

Flights app workflow

Step-by-step workflow for building a flight booking application with the Air API.

The typical flight booking application follows this workflow:

1

Search for flights

Use search_fares to find available flights by origin, destination, dates, and passenger count. Results include fare details and availability.

2

Get pricing

Use get_pricing to retrieve detailed pricing information for selected flights including taxes, fees, and fare rules.

3

Check availability

Use check_availability to verify real-time seat availability for the desired flight.

4

View fare rules and seat map

Use get_fare_rules to review cancellation and change policies. Use get_seat_map to view available seats.

5

Prepare for booking

Use get_checkout_data to retrieve billing, payment, and traveler information needed to complete the booking.

6

Book the flight

Use book to create the reservation. Include passenger details, payment information, and seat selections.

7

Manage the reservation

Use get_reservation_details to view the booking or cancel to cancel a booking.