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

Compensation Record Schema

Schema-ID
compensation_record
Collection
compensation_records
Permissions
  • Lezencompensation_record_view
  • Aanmakencompensation_record_create
  • Wijzigencompensation_record_edit
  • Verwijderencompensation_record_delete

Velden

Compensation Record Schema

compensation_records4 permissions

Outside-of-contract compensation events (ADR 0114): spot bonuses, commissions, off-cycle adjustments. ZK fields stored in encryptedFields.

employeeProfileIduuidvereist

FK to employee_profiles.

contractIduuidoptioneel

Optional FK to the employment_contract version that was active when this record was created. Used by reporting to attribute the payout.

nullable
kindstringvereist

Payout category. CUSTOM requires a non-empty note via encryptedFields.

SPOT_BONUSSIGN_ON_BONUSRETENTION_BONUSKPI_BONUSCOMMISSION_PAYOUTOFF_CYCLE_ADJUSTMENTOVERTIME_PAYOUTONE_TIMESEVERANCESETTLEMENTCUSTOM
encryptedFieldsobjectoptioneel

ZK envelope keyed by field name. Allowed keys: `amount` (JSON: { amount, currency }), `note`. Server validates against COMPENSATION_RECORD_ZK_FIELDS allowlist.

nullable
payoutDatedateoptioneel

Actual or scheduled payout date (ISO 8601).

nullable
periodStartdateoptioneel

For COMMISSION_PAYOUT / OVERTIME_PAYOUT: start of the accounting period.

nullable
periodEnddateoptioneel

For COMMISSION_PAYOUT / OVERTIME_PAYOUT: end of the accounting period.

nullable
payrollMonthstringoptioneel

YYYY-MM marker for the payroll run that should pick up this record. Decouples payoutDate (when the employee gets paid) from payrollMonth (which Lohnabrechnung carries the entry).

Patternnullable
statusstringvereist

Workflow status. State machine enforced server-side.

DRAFTPENDING_APPROVALAPPROVEDPAIDVOIDED
Default: "DRAFT"read-only
approvalRequestIduuidoptioneel

FK to approval_requests when an approval workflow is active.

read-onlynullable
approverUserIduuidoptioneel

User who approved (last in chain). Set together with approvedAt.

read-onlynullable
approvedAtdatetimeoptioneel
read-onlynullable
paidAtdatetimeoptioneel

When the payout was confirmed in payroll. Plain — not sensitive on its own.

read-onlynullable
templateIduuidoptioneel

Optional FK to compensation_component_template (appliesTo: RECORD).

nullable
referenceNumberstringoptioneel

Optional external reference (commission run id, settlement case number, etc.) — searchable in the records list.

max. 80 tekensnullable

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

Zoeken