Skip to content

Get redemption types

Request

Get all available redemption types for client reference. Requires valid project API key. Use pagination parameters (page & limit) for optimal performance. Legacy support: returns array without params (deprecated - will be removed in future).

Security
projectKey
Query
pagestring

Page number for pagination (1-based)

limitstring

Number of items per page

includestring

Pass translations to include the raw per-locale translations map (admin editing).

Headers
x-localestring, <= 35 characters

Optional BCP 47 locale (e.g. de, de-AT). Translatable fields are returned in this locale, falling back per field to the base text; the fields that came from a translation are listed in localizedFields. Absent or invalid values are ignored. Accept-Language is deliberately not used (browsers send it on every request, and localization must stay opt-in so editing flows keep reading base text) and no Content-Language is sent (a response can mix localized and base text).

Example:de-AT
curl -i -X GET \
  'https://docs.pers.ninja/_mock/swagger/redemptions/types?page=string&limit=string&include=string' \
  -H 'x-locale: de-AT' \
  -H 'x-project-key: YOUR_API_KEY_HERE'

Responses

Redemption types retrieved

Bodyapplication/json
Array [
namestringrequired

Redemption type name

descriptionstring

Redemption type description

imageUrlstring

Redemption type image url

baseRequiredUserFieldsArray of strings

Base required user fields for all redemptions of this type. Can include built-in field keys (email, firstName) or custom field definition UUIDs.

Default:[]
bookingRequirementobject or null(BookingRequirementConfigDTO)

Default booking requirement config for all redemptions of this type. Individual redemptions can override.

translationsobject

Per-locale translations of the translatable fields, keyed by locale. Only returned with include=translations.

Example:
{ "de": { "name": "..." }, "fr": null }
idnumberrequired

Redemption type id

localizedFieldsArray of strings

Fields whose value comes from a stored translation for the request locale (x-locale); absent when none do

availableLocalesArray of strings

Locales this entity has stored translations for, independent of the request locale; absent when none

]
Response
[ { "name": "string", "description": "string", "imageUrl": "string", "baseRequiredUserFields": [], "bookingRequirement": { … }, "translations": { … }, "id": 0, "localizedFields": [ … ], "availableLocales": [ … ] } ]