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.
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 -- Amadeus app keys and your first search.
Amadeus Entreprise -- sandbox and production keys for Amadeus Enterprise.
Duffel -- NDC, GDS and low-cost content through one access token.
Kiwi -- Kiwi.com Tequila AffilID and API key.
Sabre -- Sabre GDS fares.
TBO -- TBO Holidays air fares (TBO hotels are under Stays).
Seeru, Kayak, Pkfare and Travelpayouts.
Common setup for every flight supplier
Log in to
yourdomain.com/adminand open Settings > Modules.Select the supplier in the flights list.
On General, enable it, keep Dev mode on development and set the currency and PNR type your workflow needs.
On Credentials, paste the supplier's values and click Test if shown.
On Markup, set B2C and B2B margins.
Search a busy route on your website, make a test booking and check the supplier reference on the booking in the admin.
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.
Last updated
Was this helpful?

