POST/v1/flights/loyalty-programmes

Treueprogramme suchen

Searches airline loyalty programmes by name for incremental search and passenger form autocomplete.

Searches airline loyalty programmes by name for incremental search and passenger form autocomplete.

Endpoint

MethodPathAuth
POST/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.

Request Body Schema

PropertyTypeDetailsRequiredNotes
namestringYes-

Success Response

Returns matching loyalty programmes.

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

The search term can match a loyalty programme name or airline name when provider metadata can resolve it.

Example

bash
bash
curl -X POST 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" \
  -H "Content-Type: application/json" \
  -d '{"name":"British"}'

Request Body - Example Value

json
json
{
  "name": "British"
}