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

Benefit Booking Schema

ID del esquema
benefit_booking
Colección
benefit_bookings
Permisos
  • Leerbenefit_booking_view
  • Crearbenefit_booking_create
  • Modificarbenefit_booking_edit
  • Eliminarbenefit_booking_delete

Campos

Benefit Booking Schema

benefit_bookings4 permisos

Schema for validating benefit booking requests submitted by employees and tracked by HR

benefitIduuidobligatorio

UUID of the benefit catalog entry

employeeIduuidobligatorio

UUID of the employee (user) who requested the benefit

statusstringobligatorio

Lifecycle status: REQUESTED (initial), APPROVED, REJECTED, ACTIVE (currently in use), CANCELLED

REQUESTEDAPPROVEDREJECTEDACTIVECANCELLED
Valor por defecto: "REQUESTED"
requestedAtdatetimeopcional

Timestamp when the employee submitted the request

solo lectura
decidedAtdatetimeopcional

Timestamp when HR approved or rejected the request

admite null
decidedByIduuidopcional

UUID of the HR user who approved or rejected the request

admite null
employeeNotestringopcional

Optional note from the employee accompanying the request

máx. 2000 caracteresadmite null
hrNotestringopcional

Internal HR note (e.g. processing status, external reference, rejection reason)

máx. 2000 caracteresadmite null
validFromdateopcional

Optional start date of the benefit (set by HR on approval)

admite null
validUntildateopcional

Optional end date of the benefit

admite 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/benefit_bookings — Lista, paginada y filtrable
  • GET /api/v1/benefit_bookings/<id> — Una entidad
  • POST /api/v1/benefit_bookings — Crear
  • PATCH /api/v1/benefit_bookings/<id> — Actualización parcial
  • DELETE /api/v1/benefit_bookings/<id> — Eliminación lógica
  • GET /api/v1/benefit_bookings/<id>/timeline — Auditoría y actividades

Búsqueda