GET/v1/flights/loyalty-programmes

List loyalty programmes

Lists available airline loyalty programmes that can be attached to passengers during flight booking.

Share
GET/v1/flights/loyalty-programmes

API console

Try it

Send a real request to the sandbox API and inspect the response.

Credentials

Log in to pick from your saved API keys instead of pasting them.

cURL request

cURL
bash
curl -X GET 'https://api.sandbox.travelandz.com/v1/flights/loyalty-programmes' \
  -H 'Authorization: Bearer YOUR_SECRET_KEY' \
  -H 'X-Travelandz-Id: YOUR_PUBLIC_KEY:YOUR_PROFILE_CODE'

Add your credentials to send a request.

Response

Click "Try it!" to send a request and see the response here.

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.

Request Parameters

No path or query params are required.

Request Body

No request body is required.

Success Response

Returns programme names, airline association and identifiers.

Response Body Schema

loyaltyProgrammes
arrayYes
loyaltyProgrammes[]loyalty
objectYes
loyaltyProgrammes[]loyaltyid
stringYes
loyaltyProgrammes[]loyaltyname
stringNo
loyaltyProgrammes[]loyaltyowner_airline_id
stringNullable
loyaltyProgrammes[]loyaltyalliance
stringNullable
loyaltyProgrammes[]loyaltylogo_url
stringNullable
loyaltyProgrammes[]airline
objectYes
loyaltyProgrammes[]airlineid
stringYes
loyaltyProgrammes[]airlinename
stringYes
loyaltyProgrammes[]airlineiata_code
stringNullable
loyaltyProgrammes[]airlinelogo_symbol_url
stringNullable
loyaltyProgrammes[]airlinelogo_lockup_url
stringNullable
loyaltyProgrammes[]airlineconditions_of_carriage_url
stringNullable
liveMode
booleanYes
True when the request is served by the live Travelandz environment. This value comes from Travelandz, not the provider payload.

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"

Responses

CodeDescription
200Loyalty programmes retrieved successfully.
400Bad request – invalid payload.
401Unauthorized – invalid or missing credentials.
403Forbidden – invalid credentials.
500Internal server error

200 Response Body

Media type: application/json

json
json
{
  "loyaltyProgrammes": [
    {
      "loyalty": {
        "owner_airline_id": "arl_0000Adtsa6QkLRuGEnKV3Q",
        "alliance": null,
        "logo_url": null,
        "name": "A+",
        "id": "loy_0000AdwMH7AIm6BBxIQ4Nl"
      },
      "airline": {
        "logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/A4.svg",
        "logo_lockup_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-lockup/A4.svg",
        "conditions_of_carriage_url": null,
        "iata_code": "A4",
        "name": "Azimuth",
        "id": "arl_0000Adtsa6QkLRuGEnKV3Q"
      }
    },
    {
      "loyalty": {
        "owner_airline_id": "arl_00009VME7DAGiJjwomhv32",
        "alliance": "oneworld",
        "logo_url": "https://assets.duffel.com/img/loyalty-programmes/full-color-logo/AA-AAdvantage.svg",
        "name": "AAdvantage",
        "id": "loy_0000AdwMH7AIm6BBxIQ4Nm"
      },
      "airline": {
        "logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/AA.svg",
        "logo_lockup_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-lockup/AA.svg",
        "conditions_of_carriage_url": "https://www.aa.com/i18n/customer-service/support/conditions-of-carriage.jsp",
        "iata_code": "AA",
        "name": "American Airlines",
        "id": "arl_00009VME7DAGiJjwomhv32"
      }
    }
  ],
  "liveMode": false
}