Payroll Audit Event Schema
Champs
Payroll Audit Event Schema
Append-only audit log of payroll data access events.
action
Type of action performed
DECRYPT_RECORDDECRYPT_PERIODENCRYPT_RECORDENCRYPT_PERIODEXPORT_DATEVMEMBER_ADDEDMEMBER_REMOVEDKEY_ROTATEDRECOVERY_PERFORMEDPERIOD_LOCKEDUNLOCK_SESSIONactorUserId
User UUID of the HR member who performed the action
targetType
Kind of resource the action targeted
employee_profilepayroll_recordpayroll_periodpayroll_exporttenant_membertenant_confignulltargetId
UUID of the affected resource (record/period/user/export)
targetEmployeeProfileId
When the action concerns a specific employee, their profile UUID — supports per-employee audit queries (DSGVO-Auskunftsrecht).
period
YYYY-MM payroll period if the action is period-scoped
occurredAt
When the action happened (client clock — server stores its own createdAt)
sourceIp
Client IP captured by the server (filled by route handler, not client)
userAgent
User-Agent header captured by the server
notes
Free-text context (e.g. recovery reason, export filename hash, member-removal justification)
Aucun champ ne correspond au filtre.
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_audit_events— Liste, paginée et filtrableGET /api/v1/payroll_audit_events/<id>— Une entitéPOST /api/v1/payroll_audit_events— CréerPATCH /api/v1/payroll_audit_events/<id>— Mise à jour partielleDELETE /api/v1/payroll_audit_events/<id>— Suppression logiqueGET /api/v1/payroll_audit_events/<id>/timeline— Audit et activités