Skip to main content
GET
/
loyalty-programs
Get loyalty programs
curl --request GET \
  --url https://spaportal.cz/api/v1/loyalty-programs \
  --header 'Authorization: Bearer <token>'
[
  {
    "_id": "66f16191f739705faa020007",
    "id": 1,
    "name": {
      "cs_CZ": "VIP Club Gold",
      "de": "VIP Club Gold",
      "en": "VIP Club Gold"
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept-Language
string

Comma-separated list of languages to include.

Example:

"cs_CZ,de"

Query Parameters

max
integer
default:10

Number of records to return.

Required range: 1 <= x <= 100
offset
integer
default:0

Number of records to skip.

Required range: x >= 0

Response

Loyalty programs available to the API key.

_id
string

Object id (24-character hex string) for the same entity.

Pattern: ^[0-9a-fA-F]{24}$
Example:

"66f16191f739705faa020001"

id
name
object
Example:
{
"cs_CZ": "Frantiskovy Lazne",
"de": "Franzensbad"
}