One-time licence · source code included
TravelBookingPanel

Technology

How a Flight Booking Engine Works: From Search to Ticket, Step by Step

What really happens between a traveller pressing 'search' and receiving an e-ticket? We follow a booking through every stage of a flight booking engine.

TravelBookingPanel Editorial Team·Published ·Updated ·7 min read

How a Flight Booking Engine Works: From Search to Ticket, Step by Step

A flight booking engine takes a traveller's search, asks one or more airline content sources for available fares, re-prices the chosen option, creates a booking record known as a PNR, takes payment and then issues an electronic ticket. Every one of those steps talks to a supplier system in real time, which is why speed, accuracy and careful error handling matter so much. This guide follows a single booking from the search box to the issued ticket so you know exactly what is happening behind the screen.

The main parts of a flight booking engine

Before following a booking through, it helps to know the pieces involved. Most engines, whatever their size, are built from the same handful of layers.

  • Front end. The search form, results list, fare details and checkout that the traveller sees on a phone, tablet or desktop.
  • Engine core. The logic that sends requests to suppliers, merges and sorts results, applies your pricing rules and tracks the state of each booking.
  • Content sources. Global distribution systems such as Amadeus and Sabre, plus API providers such as Duffel that give access to airline content including NDC offers.
  • Pricing layer. Your margins, discounts, service fees and currency conversion.
  • Payments. Card gateways, bank transfer and, for B2B sub-agents, a prepaid wallet.
  • Back office. Where your staff view bookings, manage changes, process refunds and run reports.

Step 1: The search request

When a traveller enters an origin, destination, dates, number and type of passengers and cabin class, the engine first checks the input makes sense — return date after departure date, at least one adult with any infant, and so on. It then turns the search into a supplier request. Airports and cities are identified by IATA three-letter codes, so a search from a city with several airports can cover all of them under a single city code.

The engine may send the same search to several suppliers at once. Each one replies in its own format, so the engine normalises the responses into one common structure: flights and segments, operating and marketing carriers, fare families, baggage allowance, and a total price broken down into base fare and taxes.

Step 2: Displaying and filtering results

Once the responses arrive, the engine removes duplicates (the same flight returned by two sources), applies your markup rules and sorts the list. Travellers expect filters for number of stops, airlines, departure and arrival times, baggage and price, and they expect those filters to respond instantly, even on a small phone screen.

This is also where your commercial strategy becomes visible. You might add a fixed fee on domestic routes, a percentage on long-haul, or a different margin for one particular airline. In the TravelBookingPanel flight booking software, markups and commissions can be set per agent, product or route, with advanced markup rules available on the Agency and Enterprise plans.

Combining results from more than one supplier

Using several content sources can widen choice, but it adds work for the engine. The same flight may come back at different prices from different suppliers, with different baggage rules or fare brand names. The engine has to decide which version to show, label fare families consistently and remember which supplier each result came from, because the rest of the booking must go back to that same source. Doing this well is what makes a mixed-supplier results page feel like one tidy list rather than a jumble.

Step 3: Fare confirmation and revalidation

A search result is a snapshot, not a promise. Before the traveller pays, the engine asks the supplier to price the exact itinerary again. This confirms that seats are still available in that booking class and that the fare, taxes and fare rules have not changed since the search.

If the price has moved, the engine must show the new amount clearly and ask the traveller to accept it before continuing. Skipping or hiding this step is one of the most common causes of failed bookings, unexpected losses and unhappy customers. The same check is a good moment to display the fare rules — change fees, refundability and baggage — so there are no surprises later.

Step 4: Passenger details and the PNR

Next the traveller enters names exactly as they appear on their passports, dates of birth, contact details and, for many international routes, passport information. The engine sends this to the supplier to create a Passenger Name Record (PNR): the booking file that holds the itinerary, passenger names, contact details and ticketing deadline.

Each PNR has a short alphanumeric record locator that the agency and the distribution system use to retrieve the booking. The airline often holds its own locator for the same reservation, which is why a traveller may see two different references when checking in online.

Ticketing time limits

Creating a PNR reserves seats but does not issue a ticket. Most fares come with a deadline by which the ticket must be issued; if it passes, the airline can cancel the reservation. A good engine records that deadline against the booking and either tickets automatically once payment is confirmed or alerts staff well before it expires.

Step 5: Taking payment

Depending on your workflow and supplier, payment can be taken just before or just after the PNR is created. The usual options are:

  • Card payment through your own payment gateway, settled to your merchant account.
  • Bank transfer, common for higher-value or offline bookings, with ticketing after the funds are confirmed.
  • Agent wallet, where a B2B sub-agent's prepaid balance is debited instantly. Our guide to managing sub-agent wallets and credit limits explains how to run this safely.

The engine must handle every failure path gracefully. If payment fails, the PNR should be released or clearly flagged. If payment succeeds but ticketing fails, staff need an immediate alert so the traveller is not left with money taken and no ticket.

Step 6: Ticket issue

Ticketing turns the reservation into an electronic ticket with a 13-digit ticket number, the first three digits of which identify the validating airline. Who actually issues the ticket depends on your accreditation. IATA-accredited agencies can issue tickets themselves and settle with airlines through the Billing and Settlement Plan (BSP) in their market. Agencies without accreditation typically work through a consolidator that issues on their behalf, or use a supplier that handles ticketing and settlement itself.

Once the ticket is issued, the engine stores the ticket number against the booking, sends the e-ticket and itinerary to the traveller and updates the back office so finance can reconcile the sale.

The journey from search to ticket at a glance
StageWhat happensWhat can go wrong
SearchRequest sent to one or more suppliers; results normalisedSlow suppliers, timeouts, missing content
ResultsDuplicates removed, markups applied, filters shownIncorrect margins, confusing fare families
Fare confirmationExact itinerary priced againPrice increase or seats no longer available
Passenger detailsPNR created with names and contact detailsName mismatches, missing passport data
PaymentCard, bank transfer or wallet debitDeclined card, insufficient wallet balance
TicketingE-ticket issued and storedMissed time limit, ticketing error
After the saleChanges, refunds, voids, schedule changesFare rules ignored, heavy manual work

Step 7: After the sale

The job is not finished once the ticket is out. Airlines change schedules, travellers ask for new dates or refunds, and some tickets can be voided within a short window after issue, depending on airline and market rules. Your back office should show the full booking history, the fare rules and any supplier messages so staff can act quickly and correctly.

Good after-sales handling is where agencies earn loyalty. A traveller who gets a fast, accurate answer about a schedule change is far more likely to book again than one who waits days for a reply.

What to look for in a flight booking engine

  1. Connections to the content sources you need, such as Amadeus, Sabre or Duffel, with contracts and credentials in your own name.
  2. Clear fare revalidation and honest handling of price changes.
  3. Flexible markup rules by route, airline or agent.
  4. Several payment methods, including prepaid wallets for B2B agents.
  5. A back office that shows PNR status, ticket numbers and time limits in one place.
  6. Fast, mobile-friendly pages that work well on slower connections.

If you are still deciding whether to connect through a traditional GDS, through NDC, or both, read our GDS vs NDC guide for travel agencies before you sign any supplier contract.

Next steps

Understanding the flow makes it much easier to choose the right software and suppliers. See how the flight booking module handles search, booking and ticketing, compare plans and pricing, or get in touch with any questions about your setup.

Frequently asked questions

What is a flight booking engine?

It is the software that searches airline content sources for available fares, applies your pricing, creates the booking, takes payment and issues the ticket. It powers the flight search on a travel agency's website or agent portal.

What is a PNR?

A Passenger Name Record is the booking file created in the reservation system. It holds the itinerary, passenger names, contact details and ticketing deadline, and is identified by a short alphanumeric record locator.

Do I need IATA accreditation to sell flights online?

Not necessarily. Accredited agencies can issue tickets and settle through BSP, while others work with a consolidator or a supplier that issues tickets on their behalf. Requirements differ by country, so check what applies in your market.

Why does the price sometimes change at checkout?

Search results are a snapshot. Before payment the engine re-prices the exact itinerary, and if seats in that fare class have sold or the fare has changed, the new price is shown for the traveller to accept.

Which flight suppliers can TravelBookingPanel connect to?

The flight module connects to Amadeus, Sabre and Duffel. Supplier contracts and API credentials are always held in the agency's own name, and supplier fees are separate from the licence.

See the panel running on your own data

Book a guided demo of the booking website, admin back office and B2B agent portal — or compare the plans.