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

Payroll Recovery Config Schema

Schema-ID
payroll_recovery_config
Collection
payroll_recovery_configs
Permissions
  • Lezenpayroll_view
  • Aanmakenpayroll_recovery
  • Wijzigenpayroll_recovery
  • Verwijderenpayroll_recovery

Velden

Payroll Recovery Config Schema

payroll_recovery_configs4 permissions

Tenant-level payroll module configuration and recovery metadata.

activatedbooleanvereist

Whether the payroll module has been activated for this tenant

Default: false
activatedAtdatetimeoptioneel

When the activation wizard was completed

read-onlynullable
activatedByuuidoptioneel

User UUID of the GF/Owner who activated the module

read-onlynullable
currentKeyIdstringvereist

Current group key version identifier (e.g. UUID v7)

max. 64 tekensread-only
keyRotatedAtdatetimeoptioneel

When the group key was last rotated

nullable
checksumPepperstringoptioneel

Tenant-specific HMAC pepper (32 random bytes, base64url) for shareChecksum. Generated at activation; absent for tenants activated before the pepper rollout (legacy SHA-256 path).

max. 64 tekensnullable
hrMembersobject[]optioneel

HR team members with access to payroll data

Default: []
userIduuidvereist
wrappedGroupKeystringvereist

Base64url-encoded payroll group key wrapped with this user ECDH public key. AES-KW of a 32-byte key produces 40 bytes → ~54 base64url chars; 128 leaves headroom but blocks DoS payloads.

max. 128 tekens
ephemeralPublicKeystringoptioneel

Sender ephemeral ECDH public key used during ECDH-ES wrap

max. 256 tekens
keyIdstringoptioneel

Group key version this wrapped key corresponds to

max. 64 tekens
addedAtdatetimevereist
addedByuuidoptioneel
nullable
removedAtdatetimeoptioneel

When this member was removed (kept for audit)

nullable
shamirConfigobjectoptioneel
nullable
nintegervereist

Total number of shares generated

2 – 7
thresholdintegervereist

Minimum number of shares required for reconstruction

2 – 7
sharesobject[]vereist

Per-share metadata. The actual share values are NEVER stored — only this metadata.

shareIdstringvereist

Share identifier (also printed on the token sheet)

max. 64 tekens
indexintegeroptioneel

First byte of the raw 33-byte Shamir share, printed on the token sheet as "Index". Required to reconstruct the share during recovery — the BIP-39 mnemonic only encodes the remaining 32 bytes. NOT the GF(256) x-coordinate: shamir-secret-sharing writes that into the LAST byte, so it rides inside the mnemonic. Hence minimum 0 and not 1 — an arbitrary data byte may be 0x00 (measured: 0,35 % of shares), the x-coordinate may not.

0 – 255
recipientLabelstringvereist

Free-text label of the share recipient (e.g. "Maximilian M.")

max. 200 tekens
recipientUserIduuidoptioneel

Optional link to a user (if recipient is a Codemeta user)

nullable
checksumstringoptioneel

Short checksum for share validation during recovery

max. 32 tekens
generatedAtdatetimevereist
acknowledgedAtdatetimeoptioneel

When the GF confirmed the token was printed and handed over

nullable
invalidatedAtdatetimeoptioneel

When this share was invalidated (e.g. token rotation, member change, recovery completed)

nullable
steuerberaterobjectoptioneel
nullable
firmNamestringoptioneel
max. 200 tekens
contactNamestringoptioneel
max. 200 tekens
emailemailoptioneel
max. 200 tekens
phonestringoptioneel
max. 50 tekensnullable
datevAdvisorNumberstringoptioneel

DATEV-Berater-Nummer

max. 20 tekensnullable
datevClientNumberstringoptioneel

DATEV-Mandanten-Nummer

max. 20 tekensnullable
recoveryHistoryobject[]optioneel

Audit trail of recovery events (cleartext, no secrets)

max. 50 itemsDefault: []read-only
recoveredAtdatetimevereist
recoveredByuuidvereist
shareIdsUsedstring[]optioneel

Share IDs of the tokens used for reconstruction

newKeyIdstringoptioneel
max. 64 tekens
reasonstringoptioneel
max. 500 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/payroll_recovery_configs — Lijst, gepagineerd + filterbaar
  • GET /api/v1/payroll_recovery_configs/<id> — Enkele entity
  • POST /api/v1/payroll_recovery_configs — Aanmaken
  • PATCH /api/v1/payroll_recovery_configs/<id> — Gedeeltelijke update
  • DELETE /api/v1/payroll_recovery_configs/<id> — Soft-delete
  • GET /api/v1/payroll_recovery_configs/<id>/timeline — Audit + activiteiten

Zoeken