API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · compensation_component_templates

Compensation Component Template Schema

ID del esquema
compensation_component_template
Colección
compensation_component_templates
Permisos
  • Leercompensation_component_template_view
  • Crearcompensation_component_template_create
  • Modificarcompensation_component_template_edit
  • Eliminarcompensation_component_template_delete

Campos

Compensation Component Template Schema

compensation_component_templates4 permisos

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

appliesTostringobligatorio

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

CONTRACTUALRECORD
kindstringobligatorio

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

máx. 60 caracteres
defaultLabelstringobligatorio

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

máx. 200 caracteres
descriptionstringopcional

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

máx. 1000 caracteresadmite null
defaultValuesobjectopcional

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

isActivebooleanopcional

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

Valor por defecto: true
sortOrderintegeropcional

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

0 – 9999admite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/compensation_component_templates — Lista, paginada y filtrable
  • GET /api/v1/compensation_component_templates/<id> — Una entidad
  • POST /api/v1/compensation_component_templates — Crear
  • PATCH /api/v1/compensation_component_templates/<id> — Actualización parcial
  • DELETE /api/v1/compensation_component_templates/<id> — Eliminación lógica
  • GET /api/v1/compensation_component_templates/<id>/timeline — Auditoría y actividades

Búsqueda