GET/v1/flights/loyalty-programmes

Treueprogramme auflisten

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

MethodPathAuth
GET/v1/flights/loyalty-programmesRequired API key
Required headers:
HeaderDescription
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.

Success Response

Returns programme names, airline association and identifiers.

Response Body Schema

PropertyTypeDetailsRequiredNotes
arrayYes-
loyaltyobjectYes-
loyaltyid
stringYes-
loyaltyname
stringNo-
loyaltyowner_airline_id
stringNullable-
airlinearrayYes-
airline[]id
stringYes-
airline[]name
stringYes-
airline[]iata_code
stringNullable-
airline[]logo_symbol_url
stringNullable-
airline[]logo_lockup_url
stringNullable-
airline[]conditions_of_carriage_url
stringNullable-

Operational Notes

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

Example

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"