# Amadeus Entreprise

This guide explains how to sign up for Amadeus, access your API keys, and connect them with your PHPTRAVELS system for flight booking functionality. This integration is available **only with the Enterprise license**.

***

### Step 1: Create an Amadeus Developer Account

1. Visit <https://developers.amadeus.com/register>.
2. Fill in your **name**, **email**, **company info**, and other details.
3. Choose **“Enterprise”** or “Travel Agency” as your business type.
4. After registration, verify your email to activate your account.

***

### Step 2: Get Test (Sandbox) API Keys

1. Once logged in, go to the **My Apps** section:\
   <https://developers.amadeus.com/my-apps>
2. Click **"Create New App"**.
3. Name your app (e.g., `PHPTRAVELS Flight Integration`) and select required APIs:
   * Flight Offers Search
   * Flight Create Orders (if booking support is needed)
4. Submit the form to generate **Client ID** and **Client Secret** (sandbox).

✅ Use these for **testing purposes only**.

***

### Step 3: Apply for Production Access

1. Go to the **Production Credentials** page from your account.
2. You’ll be asked to:
   * Describe your use case
   * Provide your company registration
   * Share your website URL (your PHPTRAVELS-based site)
   * Accept commercial terms
3. Once approved, Amadeus will issue **Production API keys**.

***

### Step 4: Configure Amadeus in PHPTRAVELS Admin Panel

> Available in **Enterprise plan** only

1. Login to your admin panel: `/admin`
2. Go to **Modules → Amadeus Entreprise**
3. Locate the **Credentials** Inputs and
4. Input the following:

   | PHPTRAVELS Field | Amadeus Parameter | Description                                                                       |
   | ---------------- | ----------------- | --------------------------------------------------------------------------------- |
   | `c1`             | `grant_type`      | This is usually set to `client_credentials` (required for OAuth2 authentication). |
   | `c2`             | `client_id`       | Your unique Amadeus App ID – used to authenticate API requests.                   |
   | `c3`             | `client_secret`   | The secret key paired with your client ID – keep this confidential.               |
   | `Dev Mode`       |                   | Select Development if your API is on testing else select production.              |

Click Submit to **Save Changes**

***

### Step 5: Test the Integration

1. From your frontend, search flights to ensure results appear via Amadeus.
2. You can also check below the book now button there is amadeus logo to make sure result is coming from amadeus.
3. Once confident, switch environment from `sandbox` to `production` in settings.

***

### Troubleshooting & Notes

* Ensure your Amadeus account is approved for production access before using real bookings.
* API errors usually stem from:
  * Wrong credentials
  * Environment mismatch
  * Inactive API services in Amadeus dashboard
* PHPTRAVELS supports **Flight Search + Booking** depending on enabled APIs.
* For booking support, **Flight Create Orders** must be enabled in your Amadeus app.

\
The amadeus entreprise API we have connected it's based on&#x20;

```php
https://travel.api.amadeus.com/v2/
```

For some regions amadues entreprise have different endpoint / params \
Make sure before implementing the credentials you are using the same endpoint for your account as only above mentioned endpoint is supported with this integration. \
\
For more support or guide you may contact us or submit support ticket at **app.phptravels.com**
