Open one flight trip
Changed onReturns 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.
Request
- Base URLhttps://api.wego.com
- Auth
- OAuth 2Authorization codehttps://auth.wego.com/user-auth/v2/users/oauth/authorizeToken URLhttps://auth.wego.com/user-auth/v2/users/oauth/token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
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
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.
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.
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.
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.
Changes
- warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status - warning
added the new
rates_require_hotel_searchenum value to theresponse property for the response status
- warning
- info
added
subschema #1subschema #2to the response bodyanyOflist for the response status - info
removed
subschema #1subschema #2from the response bodyanyOflist for the response status
- info