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étodo | Ruta | Auth |
|---|---|---|
GET | /v1/flights/loyalty-programmes | API key requerida |
| Header | Descripción |
|---|---|
Authorization | Bearer <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-Type | Use application/json for requests with a body. |
Respuesta exitosa
Devuelve programme names, airline association and identifiers.
Esquema del cuerpo de la respuesta
| Propiedad | Tipo | Detalles | Requerido | Notas |
|---|---|---|---|---|
array | Sí | - | ||
loyalty | object | Sí | - | |
loyaltyid | string | Sí | - | |
loyaltyname | string | No | - | |
loyaltyowner_airline_id | string | Nulable | - | |
airline | array | Sí | - | |
airline[]id | string | Sí | - | |
airline[]name | string | Sí | - | |
airline[]iata_code | string | Nulable | - | |
airline[]logo_symbol_url | string | Nulable | - | |
airline[]logo_lockup_url | string | Nulable | - | |
airline[]conditions_of_carriage_url | string | Nulable | - | |
Notas operativas
Use these programmes with passengers[].loyaltyProgrammeAccounts[] when the selected offer lists the airline in supportedLoyaltyPrograms.
Ejemplo
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"