Introduction
The Tripgic API lets you search, book and ticket every travel product through one JSON API over HTTPS. It covers 13 services and 134 endpoints — flights, hotels, eSIM, transfers, activities, airport services, trains, visas, tour packages, car rental and travel insurance — and every service follows the same pattern, so you integrate it once and reuse it everywhere.
Base URL
YOUR_BASE_URL
Issued together with your API credentials during onboarding. It is not published here.
Format
JSON over HTTPS
Envelope
status + data
Coverage
13 services · 134 endpoints
Your first booking in three steps
- 1Get your credentials. Your account manager issues them during onboarding. Keep them on your server — never in a browser or mobile app.
- 2Send a request. Call a search endpoint, for example
/flight/search— see the example below. - 3Create a booking. Follow the service’s flow: search, validate, add travellers, then book — each flow is listed in the endpoint reference.
Authentication
Every request is authenticated over HTTPS. The authentication method and your credentials are issued to you during onboarding and are not published on this page. Access can also be restricted to your IP addresses, and credentials can be rotated — see Security.
Request & response model
- Most endpoints are
POSTwith a JSON body (Content-Type: application/json) — including searches. A few reference lookups (regions, countries, categories, document types) useGET. - Paths are unversioned and their naming varies by service (for example
/flight/search,/tour-activity/search,/service-tour/search). Copy each path exactly as listed rather than inferring it. - Every response is JSON with a
statusofsuccessorfailed. The result is indata(a few endpoints use their own key, such astransfer_data); a readable message is inreason(flight search usesmessage). - A search returns a
tracking_id. Send it back on the validate, pricing and booking calls that follow from that search. - Searches query several suppliers and can take longer than other calls — set a generous client timeout. Send a unique
short_refwith a search to follow it in the search logs. - Application outcomes, failures included, return HTTP 200 — check
statusin the body. An unknown path returns HTTP 404 with an HTML page, not JSON.
Booking lifecycle
Across services the flow is consistent: search for inventory, open one result, validate the selection, attach traveller details, create the booking, then issue it and (where supported) cancel.
- Flights add branded fares, fare rules and ancillaries (baggage, seats, meals) before booking, a
/flight/re-pricecheck before ticketing, and a cancellation-eligibility check before cancelling. - Flight after-sales cover refund quotes, void and refund requests, re-issues, splitting passengers into a new booking, passport updates and GDS PNR import.
- eSIM adds top-ups, usage, installation instructions and webhook registration; Visa adds applicant updates and document upload after the order.
Services
13 services, 134 endpoints. Pick a service to jump to its flow and endpoints.
Flight API
Air search, branded fares, pricing, ancillaries, booking, ticketing and after-sales across GDS, NDC and LCC content.
40 endpoints · 16 flow steps
Hotel API
Location suggestions, hotel search, room availability, rates, policies, booking and vouchers.
12 endpoints · 9 flow steps
eSIM API
Regional and country data plans, orders, top-ups, usage and webhooks.
13 endpoints · 5 flow steps
Transfer API
Airport and city transfers at fixed prices.
6 endpoints · 6 flow steps
Activity API
Tours, attractions and experiences.
6 endpoints · 6 flow steps
Business Lounge API
Airport lounge access and passes.
5 endpoints · 5 flow steps
Fast Track API
Priority security and immigration.
5 endpoints · 5 flow steps
Meet & Greet API
Airport arrival and departure assistance.
5 endpoints · 5 flow steps
Train API
Rail search, seats and ticketing.
9 endpoints · 7 flow steps
Visa API
Visa requirements, applications, documents and tracking.
11 endpoints · 5 flow steps
Tour Package API
Packaged holidays and itineraries.
11 endpoints · 7 flow steps
Car Rental API
Self-drive car rental search and bookings.
6 endpoints · 6 flow steps
Travel Insurance API
Travel insurance quotes and policies.
5 endpoints · 4 flow steps
Endpoint reference
All 134 endpoints, grouped by service. Each path is appended to your base URL — for example https://YOUR_BASE_URL/flight/search. The booking flow is numbered in call order; “More endpoints” are lookups, after-sales and extras outside the main flow.
Flight API
40 endpoints · 16 flow stepsAir search, branded fares, pricing, ancillaries, booking, ticketing and after-sales across GDS, NDC and LCC content.
Booking flow — call in this order
| 1 | POST | /flight/search | Search flights |
| 2 | POST | /flight/branded-fare | Get branded fare options |
| 3 | POST | /flight/validate | Validate the selected itinerary and price |
| 4 | POST | /flight/fare-rules | Get fare rules |
| 5 | POST | /flight/update-travellers | Update passenger details |
| 6 | POST | /flight/get-baggage-option | Get baggage options |
| 7 | POST | /flight/update-baggage | Add or update baggage selection |
| 8 | POST | /flight/get-seat-option | Get seat map and options |
| 9 | POST | /flight/update-seat | Update seat selection |
| 10 | POST | /flight/get-meal-option | Get meal options |
| 11 | POST | /flight/update-meals | Update meal selection |
| 12 | POST | /flight/create-booking | Create a flight booking |
| 13 | POST | /flight/re-price | Re-price before ticket issuance |
| 14 | POST | /flight/issue-ticket | Issue tickets |
| 15 | POST | /flight/cancel-get-eligibility | Check cancellation eligibility |
| 16 | POST | /flight/cancel-booking | Cancel a flight booking |
More endpoints
| POST | /flight/search-calender | Search the fare (price) calendar | |
| POST | /flight/search-group | Search group fares | |
| POST | /flight/search-group-return-segment | Get return segments for a group fare | |
| POST | /flight/searchNextLegs | Load the next legs of a search result | |
| POST | /flight/calendar-routes | List fare-calendar routes | |
| POST | /flight/calendar-cache | Get the cached fare calendar | |
| POST | /flight/get-package-rate | Get the package rate for group-fare legs | |
| POST | /flight/baggage-protection-list | List baggage protection options | |
| POST | /flight/baggage-protection-booking-initialize | Add baggage protection to a booking | |
| POST | /flight/refund-quote | Request a refund quote | |
| POST | /flight/voidRefundList | List void and refund requests | |
| POST | /flight/voidRefundDetails | Get void or refund request details | |
| POST | /flight/voidRefundStatusUpdate | Update void or refund request status | |
| POST | /flight/split-order | Split passengers into a new booking | |
| POST | /flight/update-booking-info | Update booking info or ticket numbers | |
| POST | /flight/update-pax-passport | Update passenger passport or contact details | |
| POST | /flight/re-issue-search | Search flights for a re-issue | |
| POST | /flight/re-issue-ticket-summery | Get the re-issue summary | |
| POST | /flight/re-issue-ticket-validation | Validate a re-issue for passengers | |
| POST | /flight/re-issue-ticket | Re-issue a ticket | |
| POST | /flight/re-issueList | List re-issue requests | |
| POST | /flight/re-issueDetails | Get re-issue request details | |
| POST | /flight/gds-options | List GDS import options | |
| POST | /flight/gds-import-pnr | Preview or import a GDS PNR |
Hotel API
12 endpoints · 9 flow stepsLocation suggestions, hotel search, room availability, rates, policies, booking and vouchers.
Booking flow — call in this order
| 1 | POST | /hotel/auto-suggetion | Get hotel location suggestions |
| 2 | POST | /hotel/search | Search hotels by location and occupancy |
| 3 | POST | /hotel/rooms | Get room availability for a hotel |
| 4 | POST | /hotel/get-hotel-details | Get hotel content details |
| 5 | POST | /hotel/validation-price-get-detail | Validate room price and policy |
| 6 | POST | /hotel/update-travellers | Update guest details |
| 7 | POST | /hotel/create-booking | Create a hotel booking |
| 8 | POST | /hotel/issue-voucher | Issue the hotel voucher |
| 9 | POST | /hotel/cancel-booking | Cancel a hotel booking |
More endpoints
| POST | /hotel/validation-get-detail | Get validated room details | |
| POST | /hotel/cancellation-policy | Get the room cancellation policy | |
| POST | /hotel/rooms-price-comparison | Compare room prices against a public OTA rate |
eSIM API
13 endpoints · 5 flow stepsRegional and country data plans, orders, top-ups, usage and webhooks.
Booking flow — call in this order
| 1 | POST | /esim/search | Search eSIM plans |
| 2 | POST | /esim/single-esim-package | Get a single eSIM package |
| 3 | POST | /esim/validation-get-status | Get checkout validation status |
| 4 | POST | /esim/update-customer | Update customer information |
| 5 | POST | /esim/create-booking | Create an eSIM booking |
More endpoints
| GET | /esim/region | List region options | |
| POST | /esim/installation-instructions | Get installation instructions | |
| POST | /esim/data-usage | Get data usage | |
| POST | /esim/compatible-devices | List compatible devices | |
| POST | /esim/topup-packages | Get top-up packages | |
| POST | /esim/topup-booking | Create a top-up booking | |
| POST | /esim/topup-history | Get top-up history | |
| POST | /esim/register-webhook | Register a webhook |
Transfer API
6 endpoints · 6 flow stepsAirport and city transfers at fixed prices.
Booking flow — call in this order
| 1 | POST | /transfer/search | Search transfers |
| 2 | POST | /transfer/single-transfer | Get a single transfer |
| 3 | POST | /transfer/validation-get-status | Get checkout validation status |
| 4 | POST | /transfer/update-travellers | Update transfer travellers |
| 5 | POST | /transfer/create-booking | Create a transfer booking |
| 6 | POST | /transfer/cancel-booking | Cancel a transfer booking |
Activity API
6 endpoints · 6 flow stepsTours, attractions and experiences.
Booking flow — call in this order
| 1 | POST | /tour-activity/search | Search sightseeing and activities |
| 2 | POST | /tour-activity/single-activity | Get one activity’s details |
| 3 | POST | /tour-activity/validation-get-detail | Get validated activity details |
| 4 | POST | /tour-activity/update-travellers | Update traveller details |
| 5 | POST | /tour-activity/create-booking | Create an activity booking |
| 6 | POST | /tour-activity/cancel-booking | Cancel an activity booking |
Business Lounge API
5 endpoints · 5 flow stepsAirport lounge access and passes.
Booking flow — call in this order
| 1 | POST | /businesslounge/search | Search business lounge services |
| 2 | POST | /businesslounge/single-search | Get one lounge service |
| 3 | POST | /businesslounge/validation-get-status | Get checkout validation status |
| 4 | POST | /businesslounge/update-traveller | Update traveller details |
| 5 | POST | /businesslounge/create-booking | Create a lounge booking |
Fast Track API
5 endpoints · 5 flow stepsPriority security and immigration.
Booking flow — call in this order
| 1 | POST | /fast-track/search | Search Fast Track services |
| 2 | POST | /fast-track/single-search | Get Fast Track service details |
| 3 | POST | /fast-track/validation-get-status | Get checkout validation status |
| 4 | POST | /fast-track/update-traveller | Update traveller details |
| 5 | POST | /fast-track/create-booking | Create a Fast Track booking |
Meet & Greet API
5 endpoints · 5 flow stepsAirport arrival and departure assistance.
Booking flow — call in this order
| 1 | POST | /meet-and-greet/search | Search Meet & Greet services |
| 2 | POST | /meet-and-greet/single-search | Get service details |
| 3 | POST | /meet-and-greet/validation-get-status | Get checkout validation status |
| 4 | POST | /meet-and-greet/update-traveller | Update traveller details |
| 5 | POST | /meet-and-greet/create-booking | Create a Meet & Greet booking |
Train API
9 endpoints · 7 flow stepsRail search, seats and ticketing.
Booking flow — call in this order
| 1 | POST | /train/search | Search train journeys |
| 2 | POST | /train/single-train | Get train details |
| 3 | POST | /train/validation | Validate the train and fare |
| 4 | POST | /train/validation-details | Get validation details |
| 5 | POST | /train/update-travellers | Update traveller details |
| 6 | POST | /train/booking | Create a train booking |
| 7 | POST | /train/cancel-booking | Cancel a train booking |
More endpoints
| POST | /train/station-list | List train stations | |
| POST | /train/ticket-download | Get ticket download links |
Visa API
11 endpoints · 5 flow stepsVisa requirements, applications, documents and tracking.
Booking flow — call in this order
| 1 | POST | /service-visa/search | Search visa packages |
| 2 | POST | /service-visa/details | Get visa details by SEO code |
| 3 | POST | /service-visa/validation | Validate the visa selection |
| 4 | POST | /service-visa/validation-details | Get validated details by tracking ID |
| 5 | POST | /service-visa/order | Create a visa application order |
More endpoints
| GET | /service-visa/doc-type-suggestion | List visa document types | |
| GET | /service-visa/country-suggetion | List visa countries | |
| GET | /service-visa/category-suggetion | List visa categories | |
| POST | /service-visa/order-info-update | Update applicant details | |
| POST | /service-visa/order-document-update | Upload an applicant document | |
| POST | /service-visa/order-cancel | Cancel visa applicants |
Tour Package API
11 endpoints · 7 flow stepsPackaged holidays and itineraries.
Booking flow — call in this order
| 1 | POST | /service-tour/search | Search tours |
| 2 | POST | /service-tour/details | Get tour details |
| 3 | POST | /service-tour/validate | Validate the tour selection |
| 4 | POST | /service-tour/validation-details | Get validation details |
| 5 | POST | /service-tour/update-traveller | Update tour travellers |
| 6 | POST | /service-tour/order | Create a tour order |
| 7 | POST | /service-tour/issue-order | Issue the tour order |
More endpoints
| GET | /service-tour/country-suggetion | List tour countries | |
| GET | /service-tour/category-suggetion | List tour categories | |
| POST | /service-tour/city-suggetion | List tour cities by country | |
| POST | /service-tour/order-details | Get tour order details |
Car Rental API
6 endpoints · 6 flow stepsSelf-drive car rental search and bookings.
Booking flow — call in this order
| 1 | POST | /car/search | Search available rental cars |
| 2 | POST | /car/single-car | Get one car’s details |
| 3 | POST | /car/validation-get-status | Get checkout validation status |
| 4 | POST | /car/update-travellers | Update traveller details |
| 5 | POST | /car/create-booking | Create a car booking |
| 6 | POST | /car/cancel-booking | Cancel a car booking |
Travel Insurance API
5 endpoints · 4 flow stepsTravel insurance quotes and policies.
Booking flow — call in this order
| 1 | POST | /travel-insurance/search | Search insurance plans |
| 2 | POST | /travel-insurance/validation | Validate the selected plan |
| 3 | POST | /travel-insurance/update-travellers | Save traveller details |
| 4 | POST | /travel-insurance/create-order | Create an insurance order |
More endpoints
| POST | /travel-insurance/location | List destination countries and groups |
Example: flight search
A real request and an abbreviated response from the Flight API.
Request — POST https://YOUR_BASE_URL/flight/search
Response (abbreviated)
Prices returned on the validation and booking endpoints are final: each fare is the supplier net fare plus Tripgic's fixed per-transaction markup — a flat amount between USD 2 and USD 10 by product and plan tier — so the returned amount can be shown to your customers as-is. See the markup policy →
The same request in PHP, Node.js and Python
Each sample sends the search above, stops on a failed response and prints the tracking_id you pass to /flight/validate. Add the base URL and the authentication details issued to you.
PHP (cURL)
Node.js 18+
Python (requests)
Status & errors
A call can return HTTP 200 and still have failed. Check the status field on every response. success means the call worked: read data and message. failed means it did not: the response carries a reason instead.
Branch on status, not on the wording of reason: the text is written for people and can be shown or logged as it is. Standard HTTP status codes apply at the transport layer (e.g. 401 for missing or invalid credentials). No stable list of error codes is published yet, so failures are identified by their reason; some responses also carry a code or echo your request. When contacting support, include the relevant tracking_id.
| Situation | Example reason | What to do |
| Invalid credentials | Invalid access key (code 401) | Do not retry. Check the credentials issued to you, then call again. |
| Not authorised | You do not have authorization to book through. Please reach out to the Support team for assistance. | The product or action is not enabled on your account. Contact support. |
| Missing parameter | Missing Required Parameters · Missing supplier_uid | A required field is absent from the request body. Compare it with the endpoint reference. |
| Date in the past | You need to provide future or current departure_date | Send today or a later date. |
| Traveller count mismatch | The passenger quantity provided is not valid. | Traveller details must match the passenger count you searched and validated. |
| Supplier failure | Train search could not be completed. | Retry the search once. If it fails again, contact support with the search reference. |
| No results | There are currently no flights available. | Not a fault. Show an empty state or widen the search. |
| Validation expired | The validation session has expired. | Validate again and use the new tracking_id. Do not reuse an old one. |
| Price or rate changed | The selected rate is no longer available. Please search again. | Search again and re-validate before booking. |
| Insufficient balance | Insufficient balance in your account to complete this booking. | Top up the account, then retry the booking or issuance. |
| Booking not found | No active booking found for the provided tracking ID! | Check the tracking_id belongs to this account and environment. |
| Not cancellable | This activity is non-refundable and cannot be cancelled. | Surface the fare or rate rule to the traveller; the booking stands. |
| Ancillary unavailable | There is currently no option for baggage. | Hide that add-on for this itinerary. Seats and meals behave the same way. |
Before you go live
Retry searches, not bookings
Retry a failed search once. Never retry a booking, issue or cancel call without first checking the booking’s status — a blind retry can create a duplicate booking.
Keep credentials server-side
Call the API only from your backend. Never ship credentials in a browser, mobile app or public repository.
Branch on status
Treat every response as success or failure from its body, not its HTTP code, and show the reason to your operators — it is written to be read.
Log every search
Store the tracking_id and your short_ref for each search and booking so support can trace any call quickly.
Environments, logs and integration support are set up with you during onboarding — email support@tripgic.com.
Rate limits
Throughput is provisioned to your expected volume and the look-to-book (L2B) ratio set out in your agreement. If you need higher limits, raise it with your integration contact.
Support
Email support@tripgic.com for technical questions — include your account name and any tracking_id for a faster response. New to the terminology? The glossary defines the travel-API terms used here.