latestOpenAPI 3.1.02026-08-21211181.8 KB

e5d7af502419

Flights

Open one flight trip

Returns one trip's full itinerary and every fare on it (each kind-tagged), for the given tripId within its searchId. searchId is required – it comes from the search/results snapshot the tripId was read from.

get/v1/flights/trips/{tripId}

Path parameters

tripIdstring required

The trip id from a search-results snapshot, shaped {searchId}:{tripCode}. It resolves only together with the searchId it came from, and both expire with the search.

Query parameters

searchIdstring required

Required search context: the searchId the tripId was read from (it is the tripId's first :-segment). A trip id resolves only with its own search, and both expire together.

currencystring
Example:AED

Pricing currency as a 3-letter ISO 4217 code (e.g. AED). Optional; defaults to USD server-side. Not inherited from the search: a search created in one currency reads back in USD unless you pass currency on every read, so re-send the search's currency to keep prices in it.

localestring
Example:en

Response language tag (e.g. en, ar). Optional; defaults to en server-side. Not inherited from the search – pass it on each read to keep results in that language.

view'default' | 'detail'

Response projection. default (agent shape): the full itinerary with every fare and per-flight segments. detail: the richer UI view-model (per-segment amenities, seat metadata, provider brand). Defaults to default.

Response

The full itinerary + all fares for the trip (agent default) or, with ?view=detail, the per-segment detail projection.

OR