BeMyPlan API
Airlines

Get one airline by id (includes inactive)

GET
/data/v1/airlines/{airlineId}
AuthorizationBearer <token>

A BeMyPlan API key: Authorization: Bearer bmp_live_… in production, bmp_test_… in sandbox.

In: header

Path Parameters

airlineId*string

The id from a list response. Lower case only; ids are not normalised.

Match^arl_[a-z2-7]{16}$

Header Parameters

If-None-Match?string

A previously returned ETag. When it still matches, the answer is 304 with no body (and no charge for a free call).

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/data/v1/airlines/string"
{  "data": {    "id": "arl_rkqzjrn7vptgasb4",    "iataCode": "KL",    "icaoCode": "KLM",    "name": "KLM Royal Dutch Airlines",    "iataCountryCode": "NL",    "conditionsOfCarriageUrl": null,    "logoSymbolUrl": null,    "logoLockupUrl": null,    "alternateIataCodes": [],    "alternateIcaoCodes": [],    "historicalIataCodes": [],    "historicalIcaoCodes": [],    "codeAliases": [],    "active": true  },  "meta": {    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11"  }}