Payroll Audit Event Schema
Campos
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)
Ningún campo coincide con el filtro.
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_audit_events— Lista, paginada y filtrableGET /api/v1/payroll_audit_events/<id>— Una entidadPOST /api/v1/payroll_audit_events— CrearPATCH /api/v1/payroll_audit_events/<id>— Actualización parcialDELETE /api/v1/payroll_audit_events/<id>— Eliminación lógicaGET /api/v1/payroll_audit_events/<id>/timeline— Auditoría y actividades