Benefit Booking Schema
Campos
Benefit Booking Schema
Schema for validating benefit booking requests submitted by employees and tracked by HR
benefitId
UUID of the benefit catalog entry
employeeId
UUID of the employee (user) who requested the benefit
status
Lifecycle status: REQUESTED (initial), APPROVED, REJECTED, ACTIVE (currently in use), CANCELLED
REQUESTEDAPPROVEDREJECTEDACTIVECANCELLEDrequestedAt
Timestamp when the employee submitted the request
decidedAt
Timestamp when HR approved or rejected the request
decidedById
UUID of the HR user who approved or rejected the request
employeeNote
Optional note from the employee accompanying the request
hrNote
Internal HR note (e.g. processing status, external reference, rejection reason)
validFrom
Optional start date of the benefit (set by HR on approval)
validUntil
Optional end date of the benefit
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/benefit_bookings— Lista, paginada y filtrableGET /api/v1/benefit_bookings/<id>— Una entidadPOST /api/v1/benefit_bookings— CrearPATCH /api/v1/benefit_bookings/<id>— Actualización parcialDELETE /api/v1/benefit_bookings/<id>— Eliminación lógicaGET /api/v1/benefit_bookings/<id>/timeline— Auditoría y actividades