API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · benefits

Benefit Schema

Schema-ID
benefit
Collection
benefits
Permissions
  • Lezenbenefit_view
  • Aanmakenbenefit_create
  • Wijzigenbenefit_edit
  • Verwijderenbenefit_delete

Velden

Benefit Schema

benefits4 permissions

Schema for validating benefit catalog entries (Mitarbeiterbenefits, von HR gepflegt)

namestringvereist

Display name of the benefit (e.g. "JobRad", "Urban Sports Club")

1–200 tekens
descriptionstringoptioneel

Short description shown on the benefit card

max. 5000 tekensnullable
longDescriptionstringoptioneel

Full description shown in the detail dialog (Markdown allowed)

max. 20000 tekensnullable
categorystringvereist

High-level category, drives icon/color in catalog view

MOBILITYHEALTHFOODFINANCEEDUCATIONEQUIPMENTFAMILYOTHER
iconKeystringoptioneel

Optional icon name from the shared Icons component (e.g. "Bike", "Heart", "GraduationCap")

max. 64 tekensnullable
coverImageUrlstringoptioneel

Optional URL to a cover image displayed on the benefit card

max. 2000 tekensnullable
bookingModestringvereist

INTERNAL = booked via app with HR approval; EXTERNAL_LINK = redirect to provider page only; HYBRID = both options available

INTERNALEXTERNAL_LINKHYBRID
externalUrlstringoptioneel

Landing page of the benefit provider (used for EXTERNAL_LINK and HYBRID modes)

max. 2000 tekensnullable
internalInstructionsstringoptioneel

Instructions shown to employees when booking via INTERNAL/HYBRID mode

max. 10000 tekensnullable
monthlyValuenumberoptioneel

Optional monetary value per month in EUR (for display purposes only)

≥ 0nullable
eligibilitystringoptioneel

Free-form eligibility criteria (e.g. "ab 6 Monaten Betriebszugehörigkeit") for display only

max. 1000 tekensnullable
availableSlotsnumberoptioneel

Optional cap on the number of active bookings; null means unlimited

≥ 0nullable
isActivebooleanoptioneel

Whether the benefit is visible to employees in the catalog

Default: true
sortOrdernumberoptioneel

Optional manual sort order for the catalog view (lower comes first)

nullable
tagsstring[]optioneel

Free-form tags for filtering

max. 20 itemsnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/benefits — Lijst, gepagineerd + filterbaar
  • GET /api/v1/benefits/<id> — Enkele entity
  • POST /api/v1/benefits — Aanmaken
  • PATCH /api/v1/benefits/<id> — Gedeeltelijke update
  • DELETE /api/v1/benefits/<id> — Soft-delete
  • GET /api/v1/benefits/<id>/timeline — Audit + activiteiten

Zoeken