API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · payroll_periods

Payroll Period Schema

Schema ID
payroll_period
Collection
payroll_periods
Permissions
  • Readpayroll_view
  • Createpayroll_edit
  • Editpayroll_edit
  • Deletepayroll_edit

Fields

Payroll Period Schema

payroll_periods4 permissions

Per-employee, per-month encrypted variable payroll data. Tier 1 zero-knowledge.

employeeProfileIduuidrequired

UUID of the linked employee_profile

periodstringrequired

Payroll period in YYYY-MM format (e.g. "2026-04")

Pattern
statusstringrequired

DRAFT: in preparation. READY: HR marked it complete. EXPORTED: at least one DATEV export ran. LOCKED: no further edits without correction workflow.

DRAFTREADYEXPORTEDLOCKED
Default: "DRAFT"
lockedAtdatetimeoptional

When this period was locked

read-onlynullable
lockedByuuidoptional

User UUID of the HR member who locked the period

read-onlynullable
ciphertextstringrequired

Base64-encoded AES-256-GCM ciphertext of the payload JSON

max 65536 characters
ivstringrequired

Base64-encoded 12-byte random IV

max 32 characters
algstringrequired

Symmetric encryption algorithm identifier

AES-256-GCM
keyIdstringrequired

Identifier of the group key version used for encryption

max 64 charactersread-only
timeTrackingSyncedAtdatetimeoptional

When this period last imported hours from the time-tracking module. Used to detect stale data.

nullable
lastEditedByuuidoptional
nullable
lastEditedAtdatetimeoptional
nullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/payroll_periods — List, paginated + filterable
  • GET /api/v1/payroll_periods/<id> — Single entity
  • POST /api/v1/payroll_periods — Create
  • PATCH /api/v1/payroll_periods/<id> — Partial update
  • DELETE /api/v1/payroll_periods/<id> — Soft delete
  • GET /api/v1/payroll_periods/<id>/timeline — Audit + activities

Search