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

Compensation Component Template Schema

Schema-ID
compensation_component_template
Collection
compensation_component_templates
Permissions
  • Lezencompensation_component_template_view
  • Aanmakencompensation_component_template_create
  • Wijzigencompensation_component_template_edit
  • Verwijderencompensation_component_template_delete

Velden

Compensation Component Template Schema

compensation_component_templates4 permissions

Reusable defaults for contractual compensation components or recurring payout records (ADR 0114).

appliesTostringvereist

CONTRACTUAL = template is offered in the employment-contract drawer. RECORD = template is offered when creating a compensation_record.

CONTRACTUALRECORD
kindstringvereist

Either a ContractualComponentKind (when appliesTo=CONTRACTUAL) or a CompensationRecordKind (when appliesTo=RECORD). Validated server-side against the matching enum based on appliesTo.

max. 60 tekens
defaultLabelstringvereist

Display label shown in the picker, e.g. „Urlaubsgeld 50% / Mai" or „Quartalsbonus Sales Q4".

max. 200 tekens
descriptionstringoptioneel

Optional admin-facing notes explaining when to use this template.

max. 1000 tekensnullable
defaultValuesobjectoptioneel

Default values that the consumer copies into the new component/record. Shape depends on `appliesTo`: contractual templates carry calculation/recurrence/percentage/payoutMonth/taxable; record templates carry kind-specific hints (e.g. periodMonths for recurring commissions).

isActivebooleanoptioneel

Soft-disable without deletion — inactive templates stay searchable for history.

Default: true
sortOrderintegeroptioneel

Optional manual ordering inside the picker. Lower = higher in the list.

0 – 9999nullable

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

Zoeken