API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · payroll_recovery_configs

Payroll Recovery Config Schema

ID du schéma
payroll_recovery_config
Collection
payroll_recovery_configs
Autorisations
  • Lirepayroll_view
  • Créerpayroll_recovery
  • Modifierpayroll_recovery
  • Supprimerpayroll_recovery

Champs

Payroll Recovery Config Schema

payroll_recovery_configs4 autorisations

Tenant-level payroll module configuration and recovery metadata.

activatedbooleanobligatoire

Whether the payroll module has been activated for this tenant

Par défaut : false
activatedAtdatetimefacultatif

When the activation wizard was completed

lecture seulenullable
activatedByuuidfacultatif

User UUID of the GF/Owner who activated the module

lecture seulenullable
currentKeyIdstringobligatoire

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

max. 64 caractèreslecture seule
keyRotatedAtdatetimefacultatif

When the group key was last rotated

nullable
checksumPepperstringfacultatif

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 caractèresnullable
hrMembersobject[]facultatif

HR team members with access to payroll data

Par défaut : []
userIduuidobligatoire
wrappedGroupKeystringobligatoire

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 caractères
ephemeralPublicKeystringfacultatif

Sender ephemeral ECDH public key used during ECDH-ES wrap

max. 256 caractères
keyIdstringfacultatif

Group key version this wrapped key corresponds to

max. 64 caractères
addedAtdatetimeobligatoire
addedByuuidfacultatif
nullable
removedAtdatetimefacultatif

When this member was removed (kept for audit)

nullable
shamirConfigobjectfacultatif
nullable
nintegerobligatoire

Total number of shares generated

2 – 7
thresholdintegerobligatoire

Minimum number of shares required for reconstruction

2 – 7
sharesobject[]obligatoire

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

shareIdstringobligatoire

Share identifier (also printed on the token sheet)

max. 64 caractères
indexintegerfacultatif

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
recipientLabelstringobligatoire

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

max. 200 caractères
recipientUserIduuidfacultatif

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

nullable
checksumstringfacultatif

Short checksum for share validation during recovery

max. 32 caractères
generatedAtdatetimeobligatoire
acknowledgedAtdatetimefacultatif

When the GF confirmed the token was printed and handed over

nullable
invalidatedAtdatetimefacultatif

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

nullable
steuerberaterobjectfacultatif
nullable
firmNamestringfacultatif
max. 200 caractères
contactNamestringfacultatif
max. 200 caractères
emailemailfacultatif
max. 200 caractères
phonestringfacultatif
max. 50 caractèresnullable
datevAdvisorNumberstringfacultatif

DATEV-Berater-Nummer

max. 20 caractèresnullable
datevClientNumberstringfacultatif

DATEV-Mandanten-Nummer

max. 20 caractèresnullable
recoveryHistoryobject[]facultatif

Audit trail of recovery events (cleartext, no secrets)

max. 50 élémentsPar défaut : []lecture seule
recoveredAtdatetimeobligatoire
recoveredByuuidobligatoire
shareIdsUsedstring[]facultatif

Share IDs of the tokens used for reconstruction

newKeyIdstringfacultatif
max. 64 caractères
reasonstringfacultatif
max. 500 caractèresnullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/payroll_recovery_configs — Liste, paginée et filtrable
  • GET /api/v1/payroll_recovery_configs/<id> — Une entité
  • POST /api/v1/payroll_recovery_configs — Créer
  • PATCH /api/v1/payroll_recovery_configs/<id> — Mise à jour partielle
  • DELETE /api/v1/payroll_recovery_configs/<id> — Suppression logique
  • GET /api/v1/payroll_recovery_configs/<id>/timeline — Audit et activités

Recherche