> For the complete documentation index, see [llms.txt](https://docs.phptravels.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.phptravels.com/modules/flights.md).

# Flights

PHPTRAVELS flights module docs: connect Amadeus, Duffel, Kiwi, Sabre, TBO, PKfare and other flight APIs with your own credentials, markup and test booking.

### The PHPTRAVELS flights module

The flights module is the airline booking engine of PHPTRAVELS. Customers search one-way, return and multi-city trips, compare fares from your connected suppliers, and book with your markup included. Agents can book the same fares in the B2B portal at their own rates. Product overview: [Flight booking engine](https://phptravels.com/features/flights).

Every flight supplier needs your **own agreement and API credentials**. Ticketing rules, deposits and IATA or consolidator arrangements are between you and the supplier.

### Supplier guides

* [Amadeus Self Service](https://docs.phptravels.com/modules/flights/amadeus-self-service) -- Amadeus app keys and your first search.
* [Amadeus Entreprise](https://docs.phptravels.com/modules/flights/amadeus-entreprise) -- sandbox and production keys for Amadeus Enterprise.
* [Duffel](https://docs.phptravels.com/modules/flights/duffel) -- NDC, GDS and low-cost content through one access token.
* [Kiwi](https://docs.phptravels.com/modules/flights/kiwi) -- Kiwi.com Tequila AffilID and API key.
* [Sabre](https://docs.phptravels.com/modules/flights/sabre) -- Sabre GDS fares.
* [TBO](https://docs.phptravels.com/modules/flights/tbo) -- TBO Holidays air fares (TBO hotels are under Stays).
* [Seeru](https://docs.phptravels.com/modules/flights/seeru), [Kayak](https://docs.phptravels.com/modules/flights/kayak), [Pkfare](https://docs.phptravels.com/modules/flights/pkfare) and [Travelpayouts](https://docs.phptravels.com/modules/flights/travelpayouts).

### Common setup for every flight supplier

1. Log in to `yourdomain.com/admin` and open **Settings > Modules**.
2. Select the supplier in the flights list.
3. On **General**, enable it, keep **Dev mode** on development and set the currency and PNR type your workflow needs.
4. On **Credentials**, paste the supplier's values and click **Test** if shown.
5. On **Markup**, set B2C and B2B margins.
6. Search a busy route on your website, make a test booking and check the supplier reference on the booking in the admin.
7. Switch to production credentials and **Dev mode** production.

### Choosing a supplier

Start with the supplier you already have a contract with. Add a second source when you need more routes or lower fares; results from all active suppliers are shown together, each with its own markup.

### Common errors

* **No results** -- supplier disabled, wrong environment, or no availability on that route.
* **Fare changed at booking** -- the airline re-priced the seat; search again.
