GET/v1/flights/loyalty-programmes
Lister les programmes de fidélité
Lists available airline loyalty programmes that can be attached to passengers during flight booking.
Lists available airline loyalty programmes that can be attached to passengers during flight booking.
Endpoint
| Method | Path | Auth |
|---|---|---|
GET | /v1/flights/loyalty-programmes | Required API key |
| Header | Description |
|---|---|
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. |
Success Response
Returns programme names, airline association and identifiers.
Response Body Schema
| Property | Type | Details | Required | Notes |
|---|---|---|---|---|
array | Yes | - | ||
loyalty | object | Yes | - | |
loyaltyid | string | Yes | - | |
loyaltyname | string | No | - | |
loyaltyowner_airline_id | string | Nullable | - | |
airline | array | Yes | - | |
airline[]id | string | Yes | - | |
airline[]name | string | Yes | - | |
airline[]iata_code | string | Nullable | - | |
airline[]logo_symbol_url | string | Nullable | - | |
airline[]logo_lockup_url | string | Nullable | - | |
airline[]conditions_of_carriage_url | string | Nullable | - | |
Operational Notes
Use these programmes with passengers[].loyaltyProgrammeAccounts[] when the selected offer lists the airline in supportedLoyaltyPrograms.
Example
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"