Compensation Component Template Schema
Felder
Compensation Component Template Schema
Reusable defaults for contractual compensation components or recurring payout records (ADR 0114).
appliesTo
CONTRACTUAL = template is offered in the employment-contract drawer. RECORD = template is offered when creating a compensation_record.
CONTRACTUALRECORDkind
Either a ContractualComponentKind (when appliesTo=CONTRACTUAL) or a CompensationRecordKind (when appliesTo=RECORD). Validated server-side against the matching enum based on appliesTo.
defaultLabel
Display label shown in the picker, e.g. „Urlaubsgeld 50% / Mai" or „Quartalsbonus Sales Q4".
description
Optional admin-facing notes explaining when to use this template.
defaultValues
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).
isActive
Soft-disable without deletion — inactive templates stay searchable for history.
sortOrder
Optional manual ordering inside the picker. Lower = higher in the list.
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/compensation_component_templates— Liste, paginiert + filterbarGET /api/v1/compensation_component_templates/<id>— Einzelne EntityPOST /api/v1/compensation_component_templates— AnlegenPATCH /api/v1/compensation_component_templates/<id>— Teil-UpdateDELETE /api/v1/compensation_component_templates/<id>— Soft-DeleteGET /api/v1/compensation_component_templates/<id>/timeline— Audit + Aktivitäten