Skip to content

Get redemption type by ID

Request

Get one redemption type. Requires valid project API key.

Security
projectKey
Path
idnumberrequired
Query
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/{id}?include=string' \
  -H 'x-locale: de-AT' \
  -H 'x-project-key: YOUR_API_KEY_HERE'

Responses

Redemption type retrieved

Bodyapplication/json
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": { "type": "active", "eligibleBusinessIds": [ … ], "eligibleBusinessTypeIds": [ … ] }, "translations": { "de": { … }, "fr": null }, "id": 0, "localizedFields": [ "string" ], "availableLocales": [ "string" ] }