Integrations directory
Amadeus API integration: the flights connector, set up step by step
The Amadeus module connects your PHPTRAVELS flight search to Amadeus Enterprise. Register an app, paste three credentials into the admin, test in development mode and switch to production when Amadeus approves your account.
- Enterprise plan connector
- OAuth2 client credentials
- Development and production
- Published setup guide
Connector setup
From Amadeus app to live flight results in five steps
The connector is a ready-made module, so there is no code to write for a standard setup. You bring your own Amadeus account and commercial terms, and the module handles authentication, flight search and order creation inside the PHPTRAVELS flights module.
- Start on the Enterprise plan, which includes the Amadeus module
- Register at Amadeus for Developers and create an app with Flight Offers Search and Flight Create Orders
- Enter grant type, client ID and client secret under Modules in the admin, with Dev mode on
- Search flights on your site and look for the Amadeus logo under the Book now button
- Apply for production keys, replace the sandbox ones and switch Dev mode to production
- Dev mode
- Development
- Endpoint
- travel.api.amadeus.com/v2/
- c1 · grant_type
- client_credentials
- c2 · client_id
- ••••••••••7Kq2
- c3 · client_secret
- ••••••••••
What the connector does
Amadeus offers in your search, orders in your admin
Two Amadeus APIs power the module: one returns flight offers to your results page, the other creates the booking when a traveller pays.
- APILondon to New York · NonstopEconomy · 8h 05m · 1 checked bag–per adult
- v2London to New York · 1 stopEconomy · 11h 20m via Dublin · 1 checked bag–per adult
- London to New York · NonstopBusiness · 7h 55m · 2 checked bags–per adult
Flight Offers Search and Flight Create Orders
Offers Search fills your results; Create Orders turns the chosen offer into a booking. Enable both in your Amadeus app for search and booking.
OAuth2 authentication
The module requests access tokens with the client_credentials grant, using the client ID and secret you enter in the admin.
Development and production modes
One Dev mode setting decides whether requests use your sandbox keys or your approved production keys.
Enterprise endpoint
The module is built on travel.api.amadeus.com/v2/. Some regions use a different endpoint, so confirm yours before entering keys.
Source shown on every result
An Amadeus logo under the Book now button shows which fares come from Amadeus, so you can check the connection at a glance.
Known error causes
Most failures are wrong credentials, a mode that does not match the keys, or an API service left inactive in the Amadeus dashboard.
Request flow
What happens on each Amadeus search
The same sequence runs in development and production; only the keys and the Dev mode setting change.
Authenticate
Your client ID and secret are exchanged for an access token.
Search
Flight Offers Search returns fares for the route, dates and passengers.
Display
Offers appear with your markup, next to results from other connected suppliers.
Order
Flight Create Orders books the selected offer with the traveller details.
Record
The booking is stored in your admin and the confirmation is emailed.
Where Amadeus fits
Your Amadeus account, other flight APIs and custom work
The Amadeus module is one of several flight connectors, and each runs on its own credentials in the same search.
Your Amadeus Enterprise account
Amadeus issues production keys after reviewing your use case, company registration and website, and you accept its commercial terms.
Other flight connectors
Add Duffel, Kiwi or other flight suppliers from the integrations directory and compare their fares in one result list.
Other endpoints and APIs
A regional Amadeus endpoint or an API the module does not use yet can be added as custom development work.
Flight suppliers you can connect:
Seeru
Amadeus
Duffel
Google Flights
Kayak
Kiwi
Mystifly
PKfare
Sabre
TBO Holidays
Travelport
Back office
Run Amadeus bookings from the same admin
Once the keys are in, Amadeus fares follow the rules you already use for every other flight supplier.
Flight markups
Add fixed or percentage markups so Amadeus fares show your selling price.
Bookings list
Amadeus bookings sit with traveller details and status in the flights bookings screen.
B2B agents
Agents search and book Amadeus fares in the agent portal with their own rates.
Payments
Travellers pay through the gateways you have enabled, or agents from their wallet.
Keys on your server
Credentials are saved in your own self-hosted admin, not on a shared platform.
Support tickets
Open a ticket at app.phptravels.com if a connection or booking needs our help.
Compare
Coding against Amadeus yourself vs the PHPTRAVELS module
Both use the same Amadeus account. The difference is how much your team writes and maintains around it.
| Task | Direct API build | PHPTRAVELS |
|---|---|---|
| Authentication | Direct API buildToken requests and renewal written by your developers | PHPTRAVELSHandled by the module from three admin fields |
| Search results | Direct API buildOffer data mapped to your own results page | PHPTRAVELSOffers shown in the existing flights search |
| Booking | Direct API buildTraveller forms and order calls built from scratch | PHPTRAVELSCreate Orders wired to checkout and payment |
| Test and live | Direct API buildSeparate configuration for each environment | PHPTRAVELSOne Dev mode switch |
| Markups and bookings | Direct API buildA back office to design and build | PHPTRAVELSIncluded in the flights admin |
| Setup steps | Direct API buildWritten and kept current by your team | PHPTRAVELSPublished guide on docs.phptravels.com |
Use cases
Who switches on the Amadeus module
Online travel agencies
Public flight search on Amadeus content, with your markup and checkout.
B2B agent networks
Sub-agents book Amadeus fares through your portal under your rates.
Travel management companies
Corporate bookers search Amadeus fares on a platform you host and control.
Why PHPTRAVELS
A connector you can read, change and host
Source code included
Self-hosted under a commercial licence, so developers can extend the Amadeus module.
Documented setup
Every step, field and error cause is written up on docs.phptravels.com.
24 languages
Show Amadeus fares in your markets' languages, including right-to-left.
B2C and B2B
One installation for your public site and your agent portal.
It is a ready-made flights module. You create an app at Amadeus for Developers, enter its credentials in the admin, and Amadeus offers appear in your flight search with bookings created through Flight Create Orders.
The Amadeus module is available with the Enterprise plan, a one-time payment of listed on the pricing page. Your Amadeus account and its commercial terms are separate and agreed with Amadeus.
A grant type of client_credentials, a client ID and a client secret. Amadeus issues sandbox keys when you create an app and production keys after approving your production request.
The module uses travel.api.amadeus.com/v2/. Some regions have a different endpoint or parameters, so check your account first; other endpoints can be added as custom development work.
Both, depending on the APIs enabled in your Amadeus app. Flight Offers Search gives results, and Flight Create Orders must be enabled for bookings.
The documented connector is for flights. Amadeus is also listed as a stays supplier, but its setup guide is not published yet, so ask our team about hotel scope.
Keep exploring
