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
| Method | Path | Auth |
|---|---|---|
POST | /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. |
Request Body Schema
| Property | Type | Details | Required | Notes |
|---|---|---|---|---|
name | string | Yes | - |
Success Response
Returns matching loyalty programmes.
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
The search term can match a loyalty programme name or airline name when provider metadata can resolve it.
Example
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
{
"name": "British"
}