Flights
Instant confirmationOne-way and return flights across many airlines, with baggage, fare rules and e-tickets.
- Documents
- E-ticket and booking reference
- Cancellation
- Cancellation cost shown first, then the refund to your wallet
The LioTrip API puts flights, hotels, transfers, car rental, tours, packages and visas in your website or app with one key. You set your margin, every booking is paid from your prepaid wallet, and every change reaches you the moment it happens through signed webhooks.
Every service follows nearly the same path: search, then a quote that holds the price until it expires, then a booking paid from your wallet, then documents delivered through the API and webhooks.
One-way and return flights across many airlines, with baggage, fare rules and e-tickets.
Prepaid hotel rates with rooms, meal plans and clear cancellation policies.
Airport and intercity transfers by vehicle class, passengers and luggage.
Car rental by class, with fuel and insurance terms and pick-up and drop-off points.
Tours and day trips with available times and languages, booked for a set date.
Your customer sends the request, our team reviews it, and the decision reaches you through booking.on_request_decided or visa.status_changed. Nothing is debited before confirmation.
Complete holiday programmes with set departures, confirmed by our team, with the decision sent by webhook.
Visa requirements by nationality and destination, application, document upload and status tracking.
The same key, the same authentication, the same error format and the same wallet. Add a new service to your site by changing the path: /v1/hotels/search.
/v1/flights/v1/hotels/v1/transfers/v1/cars/v1/tours/v1/packages/v1/visasPick a service and step through search, details, quote and book. Every request is the documented one, every response has exactly the shape the API returns, and the id one step returns feeds the next.
POST /v1/flights/searchReturns the available offers, each with an offer_id, a net price and a public price.
curl -X POST https://api.liotrip.com/v1/flights/search \ -H "Authorization: Bearer $LONALIZA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"slices":[{"origin":"IST","destination":"DXB","departure_date":"2026-12-31"},{"origin":"DXB","destination":"IST","departure_date":"2027-01-07"}],"passengers":{"adults":1},"cabin":"economy","max_stops":1}'
There is no public key, so this explorer never calls the API. Requests, fields and limits come from the real code; values inside the responses are examples. The real thing starts with an lnz_test_ key from your account.
Your app talks to the API, the API works with your wallet, and every change reaches you by webhook. This is what really happens on every booking, in the same order and with the same ledger names your statement shows.
POST /v1/account/topupstopupTop up the wallet. Bank transfer or card. In the sandbox the credit lands at once.
Every offer comes with two prices: the net price you pay us and the public price any traveller pays. The space between them is yours.
price and retail_price.Start with a site hosted on LioTrip today and move to your own site tomorrow, with no new key and no new wallet.
| — | A site hosted on LioTrip | Your own website or app |
|---|---|---|
| Setup | Paste the key in “Providers” → “LioTrip” | Call /v1 from your server or through MCP |
| Design and booking pages | Ready on your hosted site | You build them your way |
| Margin | Set it in your site panel | Compute it in your code on the net price |
| Paying for bookings | The same wallet | The same wallet |
| Technical skills needed | Almost none | A developer who knows REST |
| Best for | An agency that wants a site fast | A platform, an existing app or a custom experience |
REST straight from your server in five languages, or MCP for AI coding agents, and Luna answers your team's questions from the docs themselves.
# Search flights in the sandbox curl https://api.liotrip.com/v1/flights/search \ -H "Authorization: Bearer lnz_test_k7Q…" \ -H "Content-Type: application/json" \ -d '{ "slices": [{ "origin": "IST", "destination": "DXB", "departure_date": "2026-12-10" }], "passengers": { "adults": 1 }, "cabin": "economy" }' # 200 OK { "search_id": "srch_5Vt2…", "complete": true, "offers": [{ "offer_id": "off_9Qm1…", "price": { "amount_cents": 41200, "currency": "USD" }, "retail_price": { "amount_cents": 48900, "currency": "USD" } }] }
Ask in Arabic or English about any operation, event or error, and she answers straight from the docs and the spec.
An OpenAPI 3.1 spec for every operation: generate a client in your language or import it into Postman.
Connect Claude Code, Codex, Cursor, Antigravity or VS Code to our MCP server with your key. Every API operation shows up as a tool, and the ones that move money require an explicit confirmation.
docs_searchSearches the guides and every operation's reference and returns the best pages.docs_readReads one guide or operation reference in full, with fields and examples.explain_errorExplains an error code: what it means, its status, whether to retry and the fix.sandbox_statusYour account at a glance: environment, services, limits, balance and trial days left.plan_integrationThe full call sequence for one service, from search to cancellation.plus 36 API operations as direct tools
claude mcp add --transport http lonaliza https://api.liotrip.com/mcp \
--header "Authorization: Bearer $LONALIZA_API_KEY"Subscribe each webhook URL to the events you need. Every message is signed with HMAC-SHA256 in the X-Lonaliza-Signature header, and any message older than 5 minutes is rejected.
| Event | When it arrives |
|---|---|
booking.confirmed | The booking is confirmed and the net price was debited from the wallet. |
booking.pending | The booking is being processed by the supplier. |
booking.failed | The booking failed and nothing was debited. |
booking.ticketed | The ticket or voucher was issued and the documents are ready. |
booking.changed | The supplier changed something in the booking (time, flight number…). |
booking.cancellation_requested | We received the cancellation request. |
booking.cancelled | The booking was cancelled. |
booking.on_request_decided | Our team decided an on-request booking (package or visa). |
cancel.quoted | The cancellation cost is ready before you accept it. |
refund.credited | The refund was credited to your wallet. |
visa.status_changed | The visa application status changed. |
wallet.low_balance | The wallet balance is close to the threshold you set. |
wallet.topup_credited | A top-up was credited to your wallet. |
key.rotated | A key was rotated; the old one works until its grace period ends. |
key.revoked | A key was revoked and no longer works. |
key.expiring | A key is close to its expiry. |
service.suspended | A service was suspended for your account, with the reason. |
account.warning | A warning about your account's usage, before any action. |
account.suspended | Your account was suspended, with the reason. |
account.reinstated | Your account was reinstated. |
Each delivery carries a signature header with a timestamp and an HMAC-SHA256 of the raw body. Verify it in two lines with the code shown.
booking.confirmedThe booking is confirmed and the net price was debited from the wallet.X-Lonaliza-Signature: t=1790000000,v1=91dd72e303bdbe1a2e6513166611…booking.ticketedThe ticket or voucher was issued and the documents are ready.X-Lonaliza-Signature: t=1790000007,v1=999dfc2cdc49eec462143706c12f…cancel.quotedThe cancellation cost is ready before you accept it.X-Lonaliza-Signature: t=1790000014,v1=226aa6ed02653b18652359238551…refund.creditedThe refund was credited to your wallet.X-Lonaliza-Signature: t=1790000021,v1=9711ce238bc558ea3c4ff1dce7cb…wallet.low_balanceThe wallet balance is close to the threshold you set.X-Lonaliza-Signature: t=1790000028,v1=bf7563ad75c1679bec332561b2f3…import { createHmac, timingSafeEqual } from "node:crypto"; export function lonalizaVerify(header, rawBody, secret) { const parts = header.split(",").map((p) => p.trim().split("=")); const t = Number(parts.find(([k]) => k === "t")?.[1]); if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false; const want = Buffer.from(createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex")); return parts.filter(([k]) => k === "v1").some(([, v]) => v.length === want.length && timingSafeEqual(Buffer.from(v), want)); }
Send a test event to any URL from the partner panel, review each URL's delivery log with the response code, and rotate the signing secret whenever you want.
Limits are per minute and per key, and come back in RateLimit headers on every response. Each booking is paid at its net price from your prepaid wallet.
| Sandbox | Standard | Pro | Enterprise | |
|---|---|---|---|---|
| Searchrequests per minute | 30 | 120 | 600 | 1,200 |
| Quoterequests per minute | 20 | 60 | 300 | 600 |
| Bookrequests per minute | 10 | 30 | 120 | 240 |
| Accountrequests per minute | 60 | 120 | 300 | 600 |
| Concurrent searches | 3 | 10 | 40 | 80 |
| Searches per day | 2,000 | 20,000 | 150,000 | 500,000 |
The numbers in this section are read from the gateway's own settings, so they change here when they change there.
The API moves money from your wallet, so every layer is protected: the key, the address, the message and the booking itself.
We keep only a fingerprint of the key. It is shown in full once, when created, and nobody can retrieve it afterwards.
Live keys work only from the IP addresses you declare, so a leaked key is worthless elsewhere.
When you rotate a key, the old one keeps working for 24 hours while you update your servers.
An HMAC signature with a timestamp prevents forgery and replays.
An Idempotency key on booking operations makes retries safe after a network drop.
Request limits follow your tier, with a Retry-After header when you reach them.
It watches for abnormal usage such as scraping, shared keys and attempts to reach internal paths. Its actions are graduated and reversible, and a partner who books regularly is never suspended for search volume alone.
Examples of what can be built with the same API.
Sells the seven services on a hosted site at its own margin, without writing code.
HostedAdds missing services (visas, transfers, tours) without a new supplier for each.
RESTIts server calls the API and shows the offers in the app with its own design.
RESTAn assistant that searches, quotes and books for your customers through MCP.
MCPThe reference for every operation, the spec, code samples and the playground with your sandbox key: all inside your account. Here is how to get there in minutes:
If your question is not here, ask Luna from the help button or contact the partner team.
No. The same key works two ways: paste it into a site hosted on LioTrip under “Providers” → “LioTrip”, or call the API from your own website or app.
Every offer carries the net price (price) and the public price (retail_price). You add your margin to the net price before showing it, and use the public price to show “you save”.
From a prepaid wallet in USD. The net price is debited when the booking is confirmed, refunds return to it automatically, and every movement is in the wallet statement.
Everything: search, quote, book, cancel and webhooks, with an lnz_test_ key and test offers, without any real money.
When your integration works in the sandbox: send the production request from the partner panel (services, server addresses, technical contact). After approval and the minimum wallet deposit, you create an lnz_live_ key.
We store only a fingerprint, never the key itself, and it is shown in full once when created. Live keys are limited to your server addresses, and rotation keeps the old key working for 24 hours.
The docs are for registered partners: register as a B2B partner, then open “API integration” in the partner panel and click “Open the developer docs”.
Register as a partner, enable “API integration” and book your first test flight in minutes, without real money.