API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · payroll_recovery_configs

Payroll Recovery Config Schema

ID del esquema
payroll_recovery_config
Colección
payroll_recovery_configs
Permisos
  • Leerpayroll_view
  • Crearpayroll_recovery
  • Modificarpayroll_recovery
  • Eliminarpayroll_recovery

Campos

Payroll Recovery Config Schema

payroll_recovery_configs4 permisos

Tenant-level payroll module configuration and recovery metadata.

activatedbooleanobligatorio

Whether the payroll module has been activated for this tenant

Valor por defecto: false
activatedAtdatetimeopcional

When the activation wizard was completed

solo lecturaadmite null
activatedByuuidopcional

User UUID of the GF/Owner who activated the module

solo lecturaadmite null
currentKeyIdstringobligatorio

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

máx. 64 caracteressolo lectura
keyRotatedAtdatetimeopcional

When the group key was last rotated

admite null
checksumPepperstringopcional

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).

máx. 64 caracteresadmite null
hrMembersobject[]opcional

HR team members with access to payroll data

Valor por defecto: []
userIduuidobligatorio
wrappedGroupKeystringobligatorio

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.

máx. 128 caracteres
ephemeralPublicKeystringopcional

Sender ephemeral ECDH public key used during ECDH-ES wrap

máx. 256 caracteres
keyIdstringopcional

Group key version this wrapped key corresponds to

máx. 64 caracteres
addedAtdatetimeobligatorio
addedByuuidopcional
admite null
removedAtdatetimeopcional

When this member was removed (kept for audit)

admite null
shamirConfigobjectopcional
admite null
nintegerobligatorio

Total number of shares generated

2 – 7
thresholdintegerobligatorio

Minimum number of shares required for reconstruction

2 – 7
sharesobject[]obligatorio

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

shareIdstringobligatorio

Share identifier (also printed on the token sheet)

máx. 64 caracteres
indexintegeropcional

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
recipientLabelstringobligatorio

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

máx. 200 caracteres
recipientUserIduuidopcional

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

admite null
checksumstringopcional

Short checksum for share validation during recovery

máx. 32 caracteres
generatedAtdatetimeobligatorio
acknowledgedAtdatetimeopcional

When the GF confirmed the token was printed and handed over

admite null
invalidatedAtdatetimeopcional

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

admite null
steuerberaterobjectopcional
admite null
firmNamestringopcional
máx. 200 caracteres
contactNamestringopcional
máx. 200 caracteres
emailemailopcional
máx. 200 caracteres
phonestringopcional
máx. 50 caracteresadmite null
datevAdvisorNumberstringopcional

DATEV-Berater-Nummer

máx. 20 caracteresadmite null
datevClientNumberstringopcional

DATEV-Mandanten-Nummer

máx. 20 caracteresadmite null
recoveryHistoryobject[]opcional

Audit trail of recovery events (cleartext, no secrets)

máx. 50 elementosValor por defecto: []solo lectura
recoveredAtdatetimeobligatorio
recoveredByuuidobligatorio
shareIdsUsedstring[]opcional

Share IDs of the tokens used for reconstruction

newKeyIdstringopcional
máx. 64 caracteres
reasonstringopcional
máx. 500 caracteresadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/payroll_recovery_configs — Lista, paginada y filtrable
  • GET /api/v1/payroll_recovery_configs/<id> — Una entidad
  • POST /api/v1/payroll_recovery_configs — Crear
  • PATCH /api/v1/payroll_recovery_configs/<id> — Actualización parcial
  • DELETE /api/v1/payroll_recovery_configs/<id> — Eliminación lógica
  • GET /api/v1/payroll_recovery_configs/<id>/timeline — Auditoría y actividades

Búsqueda