GET/v1/flights/offers/:gdsprovider/:offerId

Obtener detalle de oferta de vuelo

Recupera el detalle actualizado de una oferta de vuelo antes de reservar, incluyendo precio, condiciones, segmentos y requisitos de pasajeros cuando estén disponibles.

Recupera el detalle actualizado de una oferta de vuelo antes de reservar, incluyendo precio, condiciones, segmentos y requisitos de pasajeros cuando estén disponibles.

Endpoint

MétodoRutaAuth
GET/v1/flights/offers/:gdsprovider/:offerIdAPI key requerida
Headers obligatorios:
HeaderDescripción
AuthorizationBearer <secret_key>. The secret is shown only once when the credential is created.
X-Travelandz-Id<public_key>:<profile_code>. The profile_code is the dp_-prefixed Developer Profile code shown in your dashboard. This binds the request to a profile and credential.
Content-TypeUse application/json for requests with a body.

Esquema de parámetros de la petición

PropiedadTipoDetallesRequeridoNotas
gdsprovidernumber-
offerIdstring-

Respuesta exitosa

Devuelve offerData with the selected offer, passenger ids, document requirements, hold options and flight segments when supported.

Esquema del cuerpo de la respuesta

PropiedadTipoDetallesRequeridoNotas
offerDataobject-
offerDataofferId
string-
offerDataofferLink
stringNulable-
offerDatagdsprovider
number-
offerDataexpiresAt
string
Format: ISO 8601
-
offerDatatotalAmount
number-
offerDataoriginalTotalAmount
number-
offerDataholdOptions
object-
offerDataholdOptionsavailable
boolean-
offerDataholdOptionspaymentRequiredBy
string
Format: ISO 8601
Nulable-
offerDataholdOptionspriceGuarantedUntil
string
Format: ISO 8601
Nulable-
offerDatasupportedPassengerIdDocuments
array-
offerDatasupportedPassengerIdDocuments[]
enum[]-
offerDatapassengerIdentityDocumentsRequired
boolean-
offerDatasupportedLoyaltyPrograms
array-
offerDatasupportedLoyaltyPrograms[]
string[]-
offerDataairline
object-
offerDataairlinename
string-
offerDataairlineiataCode
string-
offerDataairlinelogoURL
stringNulable-
offerDataairlineconditionsOfCarriage
stringNo-
offerDatapassengers
array-
offerDatapassengers[]id
string-
offerDatapassengers[]type
enum
adultchildinfant_without_seat
-
offerDataconditions
object-
offerDataconditionsrefundBeforeDeparture
object-
offerDataconditionsrefundBeforeDeparturecurrency
string-
offerDataconditionsrefundBeforeDeparturepenaltyAmount
string-
offerDataconditionsrefundBeforeDepartureallowed
boolean-
offerDataconditionschangeBeforeDeparture
object-
offerDataconditionschangeBeforeDeparturecurrency
string-
offerDataconditionschangeBeforeDeparturepenaltyAmount
string-
offerDataconditionschangeBeforeDepartureallowed
boolean-
offerDataslices
array-
offerDataslices[]fareName
string-
offerDataslices[]departure
object-
offerDataslices[]departureiataCode
string-
offerDataslices[]departurecityName
string-
offerDataslices[]departureairportName
stringNo-
offerDataslices[]departuredepartingAt
string
Format: ISO 8601
-
offerDataslices[]departuretimeZone
stringNo-
offerDataslices[]arrival
object-
offerDataslices[]arrivaliataCode
string-
offerDataslices[]arrivalcityName
string-
offerDataslices[]arrivalairportName
stringNo-
offerDataslices[]arrivalarrivingAt
string
Format: ISO 8601
-
offerDataslices[]arrivaltimeZone
stringNo-
offerDataslices[]durationMinutes
number-
offerDataslices[]conditions
object-
offerDataslices[]conditionspriorityCheckIn
boolean-
offerDataslices[]conditionspriorityBoarding
boolean-
offerDataslices[]conditionsadvanceSeatSelection
boolean-
offerDataslices[]segments
array-
offerDataslices[]segments[]fareName
string-
offerDataslices[]segments[]departure
object-
offerDataslices[]segments[]departureiataCode
string-
offerDataslices[]segments[]departurecityName
string-
offerDataslices[]segments[]departureairportName
stringNo-
offerDataslices[]segments[]departuredepartingAt
string
Format: ISO 8601
-
offerDataslices[]segments[]departuretimeZone
stringNo-
offerDataslices[]segments[]departureterminal
stringNo-
offerDataslices[]segments[]arrival
object-
offerDataslices[]segments[]arrivaliataCode
string-
offerDataslices[]segments[]arrivalcityName
string-
offerDataslices[]segments[]arrivalairportName
stringNo-
offerDataslices[]segments[]arrivalarrivingAt
string
Format: ISO 8601
-
offerDataslices[]segments[]arrivaltimeZone
stringNo-
offerDataslices[]segments[]arrivalterminal
stringNo-
offerDataslices[]segments[]airline
object-
offerDataslices[]segments[]airlineoperatingCarrier
object-
offerDataslices[]segments[]airlineoperatingCarriername
string-
offerDataslices[]segments[]airlineoperatingCarrieriataCode
string-
offerDataslices[]segments[]airlineoperatingCarrierlogoURL
stringNulable-
offerDataslices[]segments[]airlineoperatingCarrierconditionsOfCarriage
stringNo-
offerDataslices[]segments[]airlinemarketingCarrier
object-
offerDataslices[]segments[]airlinemarketingCarriername
string-
offerDataslices[]segments[]airlinemarketingCarrieriataCode
string-
offerDataslices[]segments[]airlinemarketingCarrierlogoURL
stringNulable-
offerDataslices[]segments[]airlinemarketingCarrierconditionsOfCarriage
stringNo-
offerDataslices[]segments[]flightNumber
string-
offerDataslices[]segments[]durationMinutes
number-
offerDataslices[]segments[]passengers
array-
offerDataslices[]segments[]passengers[]amenities
object-
offerDataslices[]segments[]passengers[]amenitieswifi
object-
offerDataslices[]segments[]passengers[]amenitieswificost
enum
freefree or paidpaid
Nulable-
offerDataslices[]segments[]passengers[]amenitieswifiavailable
boolean-
offerDataslices[]segments[]passengers[]amenitiesseat
object-
offerDataslices[]segments[]passengers[]amenitiesseatpitch
enum
"number"n/a
-
offerDataslices[]segments[]passengers[]amenitiesseatlegroom
enum
lessmorestandardn/a
-
offerDataslices[]segments[]passengers[]amenitiesseattype
enum
standardskycouchreclinerangle_flatfull_flatfull_flat_podprivate_suite
Nulable-
offerDataslices[]segments[]passengers[]amenitiespower
boolean-
offerDataslices[]segments[]passengers[]baggages
array-
offerDataslices[]segments[]passengers[]baggages[]type
enum
checkedcarry_on
-
offerDataslices[]segments[]passengers[]baggages[]quantity
number-
offerDataslices[]segments[]passengers[]baggages[]maxKg
stringNo-
offerDataCO2EmissionsKg
numberNulable-
offerDataholdId
stringNulable-
offerDataoriginalCurrency
enum
EURUSDCNY
-
offerDatacurrency
enum
EURUSDCNY
-

Notas operativas

  • Fresh offer detail availability depends on the selected source.
  • If direct offer detail is unavailable, keep the offer returned by public search and complete booking before it expires.
  • Reuse offerData.passengers[].id when creating the order. Do not send internal user identifiers.

Ejemplo

bash
bash
curl https://api.sandbox.travelandz.com/v1/flights/offers/0/offer_123 \
  -H "Authorization: Bearer $TRAVELANDZ_SECRET_KEY" \
  -H "X-Travelandz-Id: $TRAVELANDZ_PUBLIC_KEY:$TRAVELANDZ_PROFILE_CODE"