API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · compensation_component_templates

Compensation Component Template Schema

ID du schéma
compensation_component_template
Collection
compensation_component_templates
Autorisations
  • Lirecompensation_component_template_view
  • Créercompensation_component_template_create
  • Modifiercompensation_component_template_edit
  • Supprimercompensation_component_template_delete

Champs

Compensation Component Template Schema

compensation_component_templates4 autorisations

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

appliesTostringobligatoire

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

CONTRACTUALRECORD
kindstringobligatoire

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

max. 60 caractères
defaultLabelstringobligatoire

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

max. 200 caractères
descriptionstringfacultatif

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

max. 1000 caractèresnullable
defaultValuesobjectfacultatif

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).

isActivebooleanfacultatif

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

Par défaut : true
sortOrderintegerfacultatif

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

0 – 9999nullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/compensation_component_templates — Liste, paginée et filtrable
  • GET /api/v1/compensation_component_templates/<id> — Une entité
  • POST /api/v1/compensation_component_templates — Créer
  • PATCH /api/v1/compensation_component_templates/<id> — Mise à jour partielle
  • DELETE /api/v1/compensation_component_templates/<id> — Suppression logique
  • GET /api/v1/compensation_component_templates/<id>/timeline — Audit et activités

Recherche