GET /v1/flights/trips/{tripId}
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.
Operation ID: getFlightTrip
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tripId |
path | string | yes | |
searchId |
query | string | yes | |
currency |
query | string | no | |
locale |
query | string | no | |
view |
query | default | detail |
no |
Responses
| Status | Description |
|---|---|
200 |
The full itinerary + all fares for the trip. |
400 |
Invalid request body/query/path parameters. |
401 |
Missing or invalid bearer token. |
404 |
Unknown trip. |
429 |
Rate limit exceeded; retry after the Retry-After seconds. |
502 |
The upstream flights service returned an invalid response. |
503 |
The flights service is temporarily unavailable; retry after the Retry-After seconds. |
Example
curl -s -H "Authorization: Bearer $TOKEN" \
"https://api.wego.com/v1/flights/trips/$TRIP_ID?searchId=VALUE"