API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · benefit_bookings

Benefit Booking Schema

ID du schéma
benefit_booking
Collection
benefit_bookings
Autorisations
  • Lirebenefit_booking_view
  • Créerbenefit_booking_create
  • Modifierbenefit_booking_edit
  • Supprimerbenefit_booking_delete

Champs

Benefit Booking Schema

benefit_bookings4 autorisations

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

benefitIduuidobligatoire

UUID of the benefit catalog entry

employeeIduuidobligatoire

UUID of the employee (user) who requested the benefit

statusstringobligatoire

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

REQUESTEDAPPROVEDREJECTEDACTIVECANCELLED
Par défaut : "REQUESTED"
requestedAtdatetimefacultatif

Timestamp when the employee submitted the request

lecture seule
decidedAtdatetimefacultatif

Timestamp when HR approved or rejected the request

nullable
decidedByIduuidfacultatif

UUID of the HR user who approved or rejected the request

nullable
employeeNotestringfacultatif

Optional note from the employee accompanying the request

max. 2000 caractèresnullable
hrNotestringfacultatif

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

max. 2000 caractèresnullable
validFromdatefacultatif

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

nullable
validUntildatefacultatif

Optional end date of the benefit

nullable

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/benefit_bookings — Liste, paginée et filtrable
  • GET /api/v1/benefit_bookings/<id> — Une entité
  • POST /api/v1/benefit_bookings — Créer
  • PATCH /api/v1/benefit_bookings/<id> — Mise à jour partielle
  • DELETE /api/v1/benefit_bookings/<id> — Suppression logique
  • GET /api/v1/benefit_bookings/<id>/timeline — Audit et activités

Recherche