Skip to main content
Developer Documentation

Tripgic API Documentation

Sell every trip from one API — flights, hotels, eSIM, transfers, activities, airport services, trains, visas, tour packages, car rental and travel insurance. 13 services and 134 endpoints, all returning the same JSON envelope.

Last updated

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

  1. 1Get your credentials. Your account manager issues them during onboarding. Keep them on your server — never in a browser or mobile app.
  2. 2Send a request. Call a search endpoint, for example /flight/search — see the example below.
  3. 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.

Credentials issued at onboarding IP whitelisting HTTPS only

Request & response model

  • Most endpoints are POST with a JSON body (Content-Type: application/json) — including searches. A few reference lookups (regions, countries, categories, document types) use GET.
  • 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 status of success or failed. The result is in data (a few endpoints use their own key, such as transfer_data); a readable message is in reason (flight search uses message).
  • 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_ref with a search to follow it in the search logs.
  • Application outcomes, failures included, return HTTP 200 — check status in 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.

Search Details Validate Update travellers Create booking / order Issue ticket / voucher / order Cancel
  • Flights add branded fares, fare rules and ancillaries (baggage, seats, meals) before booking, a /flight/re-price check 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.

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 steps

Air search, branded fares, pricing, ancillaries, booking, ticketing and after-sales across GDS, NDC and LCC content.

Booking flow — call in this order

1POST/flight/searchSearch flights
2POST/flight/branded-fareGet branded fare options
3POST/flight/validateValidate the selected itinerary and price
4POST/flight/fare-rulesGet fare rules
5POST/flight/update-travellersUpdate passenger details
6POST/flight/get-baggage-optionGet baggage options
7POST/flight/update-baggageAdd or update baggage selection
8POST/flight/get-seat-optionGet seat map and options
9POST/flight/update-seatUpdate seat selection
10POST/flight/get-meal-optionGet meal options
11POST/flight/update-mealsUpdate meal selection
12POST/flight/create-bookingCreate a flight booking
13POST/flight/re-priceRe-price before ticket issuance
14POST/flight/issue-ticketIssue tickets
15POST/flight/cancel-get-eligibilityCheck cancellation eligibility
16POST/flight/cancel-bookingCancel a flight booking

More endpoints

POST/flight/search-calenderSearch the fare (price) calendar
POST/flight/search-groupSearch group fares
POST/flight/search-group-return-segmentGet return segments for a group fare
POST/flight/searchNextLegsLoad the next legs of a search result
POST/flight/calendar-routesList fare-calendar routes
POST/flight/calendar-cacheGet the cached fare calendar
POST/flight/get-package-rateGet the package rate for group-fare legs
POST/flight/baggage-protection-listList baggage protection options
POST/flight/baggage-protection-booking-initializeAdd baggage protection to a booking
POST/flight/refund-quoteRequest a refund quote
POST/flight/voidRefundListList void and refund requests
POST/flight/voidRefundDetailsGet void or refund request details
POST/flight/voidRefundStatusUpdateUpdate void or refund request status
POST/flight/split-orderSplit passengers into a new booking
POST/flight/update-booking-infoUpdate booking info or ticket numbers
POST/flight/update-pax-passportUpdate passenger passport or contact details
POST/flight/re-issue-searchSearch flights for a re-issue
POST/flight/re-issue-ticket-summeryGet the re-issue summary
POST/flight/re-issue-ticket-validationValidate a re-issue for passengers
POST/flight/re-issue-ticketRe-issue a ticket
POST/flight/re-issueListList re-issue requests
POST/flight/re-issueDetailsGet re-issue request details
POST/flight/gds-optionsList GDS import options
POST/flight/gds-import-pnrPreview or import a GDS PNR

Product overview

Hotel API

12 endpoints · 9 flow steps

Location suggestions, hotel search, room availability, rates, policies, booking and vouchers.

Booking flow — call in this order

1POST/hotel/auto-suggetionGet hotel location suggestions
2POST/hotel/searchSearch hotels by location and occupancy
3POST/hotel/roomsGet room availability for a hotel
4POST/hotel/get-hotel-detailsGet hotel content details
5POST/hotel/validation-price-get-detailValidate room price and policy
6POST/hotel/update-travellersUpdate guest details
7POST/hotel/create-bookingCreate a hotel booking
8POST/hotel/issue-voucherIssue the hotel voucher
9POST/hotel/cancel-bookingCancel a hotel booking

More endpoints

POST/hotel/validation-get-detailGet validated room details
POST/hotel/cancellation-policyGet the room cancellation policy
POST/hotel/rooms-price-comparisonCompare room prices against a public OTA rate

Product overview

eSIM API

13 endpoints · 5 flow steps

Regional and country data plans, orders, top-ups, usage and webhooks.

Booking flow — call in this order

1POST/esim/searchSearch eSIM plans
2POST/esim/single-esim-packageGet a single eSIM package
3POST/esim/validation-get-statusGet checkout validation status
4POST/esim/update-customerUpdate customer information
5POST/esim/create-bookingCreate an eSIM booking

More endpoints

GET/esim/regionList region options
POST/esim/installation-instructionsGet installation instructions
POST/esim/data-usageGet data usage
POST/esim/compatible-devicesList compatible devices
POST/esim/topup-packagesGet top-up packages
POST/esim/topup-bookingCreate a top-up booking
POST/esim/topup-historyGet top-up history
POST/esim/register-webhookRegister a webhook

Product overview

Transfer API

6 endpoints · 6 flow steps

Airport and city transfers at fixed prices.

Booking flow — call in this order

1POST/transfer/searchSearch transfers
2POST/transfer/single-transferGet a single transfer
3POST/transfer/validation-get-statusGet checkout validation status
4POST/transfer/update-travellersUpdate transfer travellers
5POST/transfer/create-bookingCreate a transfer booking
6POST/transfer/cancel-bookingCancel a transfer booking

Product overview

Activity API

6 endpoints · 6 flow steps

Tours, attractions and experiences.

Booking flow — call in this order

1POST/tour-activity/searchSearch sightseeing and activities
2POST/tour-activity/single-activityGet one activity’s details
3POST/tour-activity/validation-get-detailGet validated activity details
4POST/tour-activity/update-travellersUpdate traveller details
5POST/tour-activity/create-bookingCreate an activity booking
6POST/tour-activity/cancel-bookingCancel an activity booking

Product overview

Business Lounge API

5 endpoints · 5 flow steps

Airport lounge access and passes.

Booking flow — call in this order

1POST/businesslounge/searchSearch business lounge services
2POST/businesslounge/single-searchGet one lounge service
3POST/businesslounge/validation-get-statusGet checkout validation status
4POST/businesslounge/update-travellerUpdate traveller details
5POST/businesslounge/create-bookingCreate a lounge booking

Product overview

Fast Track API

5 endpoints · 5 flow steps

Priority security and immigration.

Booking flow — call in this order

1POST/fast-track/searchSearch Fast Track services
2POST/fast-track/single-searchGet Fast Track service details
3POST/fast-track/validation-get-statusGet checkout validation status
4POST/fast-track/update-travellerUpdate traveller details
5POST/fast-track/create-bookingCreate a Fast Track booking

Product overview

Meet & Greet API

5 endpoints · 5 flow steps

Airport arrival and departure assistance.

Booking flow — call in this order

1POST/meet-and-greet/searchSearch Meet & Greet services
2POST/meet-and-greet/single-searchGet service details
3POST/meet-and-greet/validation-get-statusGet checkout validation status
4POST/meet-and-greet/update-travellerUpdate traveller details
5POST/meet-and-greet/create-bookingCreate a Meet & Greet booking

Product overview

Train API

9 endpoints · 7 flow steps

Rail search, seats and ticketing.

Booking flow — call in this order

1POST/train/searchSearch train journeys
2POST/train/single-trainGet train details
3POST/train/validationValidate the train and fare
4POST/train/validation-detailsGet validation details
5POST/train/update-travellersUpdate traveller details
6POST/train/bookingCreate a train booking
7POST/train/cancel-bookingCancel a train booking

More endpoints

POST/train/station-listList train stations
POST/train/ticket-downloadGet ticket download links

Product overview

Visa API

11 endpoints · 5 flow steps

Visa requirements, applications, documents and tracking.

Booking flow — call in this order

1POST/service-visa/searchSearch visa packages
2POST/service-visa/detailsGet visa details by SEO code
3POST/service-visa/validationValidate the visa selection
4POST/service-visa/validation-detailsGet validated details by tracking ID
5POST/service-visa/orderCreate a visa application order

More endpoints

GET/service-visa/doc-type-suggestionList visa document types
GET/service-visa/country-suggetionList visa countries
GET/service-visa/category-suggetionList visa categories
POST/service-visa/order-info-updateUpdate applicant details
POST/service-visa/order-document-updateUpload an applicant document
POST/service-visa/order-cancelCancel visa applicants

Product overview

Tour Package API

11 endpoints · 7 flow steps

Packaged holidays and itineraries.

Booking flow — call in this order

1POST/service-tour/searchSearch tours
2POST/service-tour/detailsGet tour details
3POST/service-tour/validateValidate the tour selection
4POST/service-tour/validation-detailsGet validation details
5POST/service-tour/update-travellerUpdate tour travellers
6POST/service-tour/orderCreate a tour order
7POST/service-tour/issue-orderIssue the tour order

More endpoints

GET/service-tour/country-suggetionList tour countries
GET/service-tour/category-suggetionList tour categories
POST/service-tour/city-suggetionList tour cities by country
POST/service-tour/order-detailsGet tour order details

Product overview

Car Rental API

6 endpoints · 6 flow steps

Self-drive car rental search and bookings.

Booking flow — call in this order

1POST/car/searchSearch available rental cars
2POST/car/single-carGet one car’s details
3POST/car/validation-get-statusGet checkout validation status
4POST/car/update-travellersUpdate traveller details
5POST/car/create-bookingCreate a car booking
6POST/car/cancel-bookingCancel a car booking

Product overview

Travel Insurance API

5 endpoints · 4 flow steps

Travel insurance quotes and policies.

Booking flow — call in this order

1POST/travel-insurance/searchSearch insurance plans
2POST/travel-insurance/validationValidate the selected plan
3POST/travel-insurance/update-travellersSave traveller details
4POST/travel-insurance/create-orderCreate an insurance order

More endpoints

POST/travel-insurance/locationList 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

{ "journey_type": "OneWay", "segment": [ { "departure_airport_type": "AIRPORT", "departure_airport": "DAC", "arrival_airport_type": "AIRPORT", "arrival_airport": "DXB", "departure_date": "2026-03-30" } ], "travelers_adult": 1, "travelers_child": 0, "travelers_infants": 0, "preferred_carrier": [ "" ], "non_stop_flight": "any", "baggage_option": "any", "booking_class": "Economy", "supplier_uid": "all", "partner_id": "1", "language": "en" }

Response (abbreviated)

{ "status": "success", "data": { "tracking_id": "1117415826952619349CQJ", "flights": null }, "message": "Flights found successfully.", "value": { "status": "success", "timestamp": "1771393615", "search_complete": "2026-02-18 11:46:55", "tracking_id": "11177139351426194ETLIZ", "ftm_partner_id": "1", "partner_id": "1", "partner_name": "Demo Solution" } }

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)
<?php $payload = [ 'journey_type' => 'OneWay', 'segment' => [[ 'departure_airport_type' => 'AIRPORT', 'departure_airport' => 'DAC', 'arrival_airport_type' => 'AIRPORT', 'arrival_airport' => 'DXB', 'departure_date' => '2026-03-30', ]], 'travelers_adult' => 1, 'travelers_child' => 0, 'travelers_infants' => 0, 'non_stop_flight' => 'any', 'baggage_option' => 'any', 'booking_class' => 'Economy', 'partner_id' => '1', 'language' => 'en', ]; $ch = curl_init('https://YOUR_BASE_URL/flight/search'); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 120, CURLOPT_HTTPHEADER => [ 'Content-Type: application/json', // plus the authentication headers issued with your credentials ], CURLOPT_POSTFIELDS => json_encode($payload), ]); $body = curl_exec($ch); if ($body === false) { throw new RuntimeException('Transport error: ' . curl_error($ch)); } curl_close($ch); $res = json_decode($body, true); if (($res['status'] ?? '') !== 'success') { // Business failures arrive as HTTP 200 with status "failed" and a reason. throw new RuntimeException('Search failed: ' . ($res['reason'] ?? 'unknown')); } echo $res['data']['tracking_id'], PHP_EOL; // pass this to /flight/validate
Node.js 18+
// Node.js 18+ (built-in fetch) const payload = { journey_type: 'OneWay', segment: [{ departure_airport_type: 'AIRPORT', departure_airport: 'DAC', arrival_airport_type: 'AIRPORT', arrival_airport: 'DXB', departure_date: '2026-03-30', }], travelers_adult: 1, travelers_child: 0, travelers_infants: 0, non_stop_flight: 'any', baggage_option: 'any', booking_class: 'Economy', partner_id: '1', language: 'en', }; const response = await fetch('https://YOUR_BASE_URL/flight/search', { method: 'POST', headers: { 'Content-Type': 'application/json', // plus the authentication headers issued with your credentials }, body: JSON.stringify(payload), }); const res = await response.json(); if (res.status !== 'success') { // Business failures arrive as HTTP 200 with status "failed" and a reason. throw new Error(`Search failed: ${res.reason ?? 'unknown'}`); } console.log(res.data.tracking_id); // pass this to /flight/validate
Python (requests)
import requests payload = { "journey_type": "OneWay", "segment": [{ "departure_airport_type": "AIRPORT", "departure_airport": "DAC", "arrival_airport_type": "AIRPORT", "arrival_airport": "DXB", "departure_date": "2026-03-30", }], "travelers_adult": 1, "travelers_child": 0, "travelers_infants": 0, "non_stop_flight": "any", "baggage_option": "any", "booking_class": "Economy", "partner_id": "1", "language": "en", } response = requests.post( "https://YOUR_BASE_URL/flight/search", headers={}, # the authentication headers issued with your credentials json=payload, timeout=120, ) res = response.json() if res.get("status") != "success": # Business failures arrive as HTTP 200 with status "failed" and a reason. raise RuntimeError(f"Search failed: {res.get('reason', 'unknown')}") print(res["data"]["tracking_id"]) # pass this to /flight/validate

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.

{ "status": "failed", "reason": "You need to provide future or current departure_date" }

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.

Common failure reasons identified by their reason text
SituationExample reasonWhat to do
Invalid credentialsInvalid access key (code 401)Do not retry. Check the credentials issued to you, then call again.
Not authorisedYou 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 parameterMissing Required Parameters · Missing supplier_uidA required field is absent from the request body. Compare it with the endpoint reference.
Date in the pastYou need to provide future or current departure_dateSend today or a later date.
Traveller count mismatchThe passenger quantity provided is not valid.Traveller details must match the passenger count you searched and validated.
Supplier failureTrain search could not be completed.Retry the search once. If it fails again, contact support with the search reference.
No resultsThere are currently no flights available.Not a fault. Show an empty state or widen the search.
Validation expiredThe validation session has expired.Validate again and use the new tracking_id. Do not reuse an old one.
Price or rate changedThe selected rate is no longer available. Please search again.Search again and re-validate before booking.
Insufficient balanceInsufficient balance in your account to complete this booking.Top up the account, then retry the booking or issuance.
Booking not foundNo active booking found for the provided tracking ID!Check the tracking_id belongs to this account and environment.
Not cancellableThis activity is non-refundable and cannot be cancelled.Surface the fare or rate rule to the traveller; the booking stands.
Ancillary unavailableThere 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.

Ready to integrate?

Book a kick-off call to get your API credentials and start building against live inventory.