Introduction
Lucca Absences provides two endpoints for managing leave entitlements via file import:Key differences
File format (both endpoints)
Accepted formats:- CSV — UTF-8 encoding, semicolon (
;) separator - XLSX
Example CSV:
Query parameters (both endpoints)
Response format (both endpoints)
Import entitlements
Each call adds the file values to the current balance. A file value of2.08 increases the balance by 2.08 days — regardless of the current total.
Form-data fields
Example request
Replace entitlements
Each call sets the entitlement total to the file value. The system computesfile_value − current_entitlement_total and creates an adjustment entry for the difference (positive or negative).
The “current entitlement total” is computed only from the entry types specified by the EntryTypes parameter. By default: AutoAccruals, ManualAccruals, Regularizations.
Supported entry types
To consider all entry types when computing the current total, pass all values explicitly. The default only covers the three most common accrual types.