GET/v1/flights/loyalty-programmes

Listar programas de fidelidad

Lista programas de fidelidad de aerolíneas que pueden asociarse a pasajeros durante la reserva de vuelo.

Lista programas de fidelidad de aerolíneas que pueden asociarse a pasajeros durante la reserva de vuelo.

Endpoint

MétodoRutaAuth
GET/v1/flights/loyalty-programmesAPI 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.

Respuesta exitosa

Devuelve programme names, airline association and identifiers.

Esquema del cuerpo de la respuesta

PropiedadTipoDetallesRequeridoNotas
array-
loyaltyobject-
loyaltyid
string-
loyaltyname
stringNo-
loyaltyowner_airline_id
stringNulable-
airlinearray-
airline[]id
string-
airline[]name
string-
airline[]iata_code
stringNulable-
airline[]logo_symbol_url
stringNulable-
airline[]logo_lockup_url
stringNulable-
airline[]conditions_of_carriage_url
stringNulable-

Notas operativas

Use these programmes with passengers[].loyaltyProgrammeAccounts[] when the selected offer lists the airline in supportedLoyaltyPrograms.

Ejemplo

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