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

Payroll Recovery Config Schema

Schema ID
payroll_recovery_config
Collection
payroll_recovery_configs
Permissions
  • Readpayroll_view
  • Createpayroll_recovery
  • Editpayroll_recovery
  • Deletepayroll_recovery

Fields

Payroll Recovery Config Schema

payroll_recovery_configs4 permissions

Tenant-level payroll module configuration and recovery metadata.

activatedbooleanrequired

Whether the payroll module has been activated for this tenant

Default: false
activatedAtdatetimeoptional

When the activation wizard was completed

read-onlynullable
activatedByuuidoptional

User UUID of the GF/Owner who activated the module

read-onlynullable
currentKeyIdstringrequired

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

max 64 charactersread-only
keyRotatedAtdatetimeoptional

When the group key was last rotated

nullable
checksumPepperstringoptional

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 charactersnullable
hrMembersobject[]optional

HR team members with access to payroll data

Default: []
userIduuidrequired
wrappedGroupKeystringrequired

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 characters
ephemeralPublicKeystringoptional

Sender ephemeral ECDH public key used during ECDH-ES wrap

max 256 characters
keyIdstringoptional

Group key version this wrapped key corresponds to

max 64 characters
addedAtdatetimerequired
addedByuuidoptional
nullable
removedAtdatetimeoptional

When this member was removed (kept for audit)

nullable
shamirConfigobjectoptional
nullable
nintegerrequired

Total number of shares generated

2 – 7
thresholdintegerrequired

Minimum number of shares required for reconstruction

2 – 7
sharesobject[]required

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

shareIdstringrequired

Share identifier (also printed on the token sheet)

max 64 characters
indexintegeroptional

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
recipientLabelstringrequired

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

max 200 characters
recipientUserIduuidoptional

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

nullable
checksumstringoptional

Short checksum for share validation during recovery

max 32 characters
generatedAtdatetimerequired
acknowledgedAtdatetimeoptional

When the GF confirmed the token was printed and handed over

nullable
invalidatedAtdatetimeoptional

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

nullable
steuerberaterobjectoptional
nullable
firmNamestringoptional
max 200 characters
contactNamestringoptional
max 200 characters
emailemailoptional
max 200 characters
phonestringoptional
max 50 charactersnullable
datevAdvisorNumberstringoptional

DATEV-Berater-Nummer

max 20 charactersnullable
datevClientNumberstringoptional

DATEV-Mandanten-Nummer

max 20 charactersnullable
recoveryHistoryobject[]optional

Audit trail of recovery events (cleartext, no secrets)

max 50 itemsDefault: []read-only
recoveredAtdatetimerequired
recoveredByuuidrequired
shareIdsUsedstring[]optional

Share IDs of the tokens used for reconstruction

newKeyIdstringoptional
max 64 characters
reasonstringoptional
max 500 charactersnullable

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_recovery_configs — List, paginated + filterable
  • GET /api/v1/payroll_recovery_configs/<id> — Single entity
  • POST /api/v1/payroll_recovery_configs — Create
  • PATCH /api/v1/payroll_recovery_configs/<id> — Partial update
  • DELETE /api/v1/payroll_recovery_configs/<id> — Soft delete
  • GET /api/v1/payroll_recovery_configs/<id>/timeline — Audit + activities

Search