
On this page
- One flight API for the whole booking lifecycle
- Your first flight booking in three calls
- Pricing you can explain to a traveler
- Built for developers
- What is next
- Frequently asked questions
- Do I need approval to get an FX-Port API key?
- Is there a free sandbox?
- Which flight sources does the API search?
- Can I hold a booking and pay later?
- Will an API update break my integration?
- Start building
FX-Port's API is officially open for integration. If you are a travel agency, an OTA or a developer building on top of travel inventory, you can plug directly into FX-Port and start selling flights through your own product: no sales calls, no signed agreements, no deposit.
The full API documentation, code samples and a self-serve dashboard are live now.
One flight API for the whole booking lifecycle#
FX-Port gives you a single, unified API for the entire flight booking lifecycle, not just search:
- Search for flights and get the best available fares
- Flexible date search to compare prices across a date range
- Price an offer to confirm the current fare before booking
- Book instantly, or hold a reservation and pay later when the supplier supports holds (how the booking flows work)
- Cancel a held reservation to release it cleanly
- Retrieve bookings and download ticket PDFs
One API surface, one authentication model, one response format, regardless of where a fare is sourced from behind the scenes. You do not manage several integrations or reconcile different data formats: you make one call and get back the best price available.
And it keeps getting better without any work on your side. FX-Port continuously expands its supplier network and adds coverage, and your integration benefits automatically. We are also committed to never breaking an existing integration: any major change ships under a new API version, so what you build today keeps working.
Your first flight booking in three calls#
A search is one request. This one looks for an economy seat from Algiers to Paris:
curl --request POST \
--url https://api.fx-port.com/api/v1/get_flights \
--header 'Authorization: Bearer fxp_test_YOUR_KEY' \
--header 'Content-Type: application/json' \
--data '{
"origin": "ALG",
"destination": "CDG",
"departure_date": "2026-12-15",
"cabin_class": "economy",
"passengers": { "adults": 1 }
}'That is the search. Price the offer to confirm the fare, then book it: tickets are issued immediately. Three calls, and you are selling flights. The quickstart walks through all three with a complete program you can run.
Sign up, grab a free sandbox key from your dashboard and start building today. When you are ready to issue real tickets, switch to a live key against a funded balance. It is the same base URL, so there is no separate environment to configure.
Pricing you can explain to a traveler#
Every offer comes back with a clean breakdown, and the formula never changes:
| Field | What it is |
|---|---|
basePrice | The airline's base fare, before taxes |
taxesAndFees | Taxes and fees (your commission is never included here) |
agencyCommission | Your own commission on the sale |
finalPrice | What the traveler pays: base fare + taxes and fees + your commission |
b2bPrice | What is debited from your agency balance: the final price minus your commission |
You always know exactly what leaves your balance and exactly what you are marking up: no guesswork, no hidden math. The details are in the flight pricing guide.
Built for developers#
- No approval queue. Create an account, generate a key, and your first call works immediately.
- A free sandbox to build and test before you go live. Sandbox bookings run on the suppliers' test systems, so nothing is debited from a balance (how the sandbox works).
- Machine-readable docs (
/llms.txtand/llms-full.txt) so AI coding assistants can integrate with accurate, up-to-date context.
What is next#
Flights are live and fully documented today. Hotels and eSIMs are live on the API too, and both now have their own reference: see the hotels guide and the eSIM guide, and read the story behind the second one in the eSIM API launch post. More products and more coverage are on the way, and every addition lands in your integration automatically.
Frequently asked questions#
Do I need approval to get an FX-Port API key?#
No. Create an account, generate a key in your dashboard and your first call works immediately. There is no approval queue, no agreement to sign and no deposit.
Is there a free sandbox?#
Yes. A sandbox key (it starts with fxp_test_) connects to the suppliers' test systems, so you can build the whole flow (search, price, book, read the booking back) without funding a balance. Going live is only a change of key.
Which flight sources does the API search?#
FX-Port searches across GDS, NDC, low-cost carrier and direct airline sources in one call. The suppliers your key can reach are listed in the suppliers guide.
Can I hold a booking and pay later?#
On suppliers that support it, yes: book with "booking_type": "hold", then pay with pay_order. Whether an offer can be held is stated on the priced offer (supportHold), so check it before you rely on it. See the booking flows.
Will an API update break my integration?#
A change that could break a request ships under a new API version (the /api/v1 prefix) and is announced in the changelog first. Additive changes, such as a new field, do not change the version.
Start building#
- API documentation: guides, reference and runnable samples
- API keys: generate a sandbox key from your dashboard
- Quickstart: search, price and book in about ten minutes


