Skip to main content

Introduction

Lucca Absences provides two endpoints for managing leave entitlements via file import:
Choosing the right endpoint is critical: they have very different consequences on employee leave balances.

Key differences

With Import entitlements, accidentally re-importing a file will double-credit the accounts. Always call with ?simulate=true query parameter first to preview the result.

File format (both endpoints)

Accepted formats:
  • CSV — UTF-8 encoding, semicolon (;) separator
  • XLSX
Required columns: Example CSV:
A template file can be downloaded from the Lucca Absences UI: Credit / Debit > Imports.

Query parameters (both endpoints)

Response format (both endpoints)

Always run with simulate=true first to validate your file. All imports are recorded in the history and can be reviewed in the Lucca Absences UI.

Import entitlements

Each call adds the file values to the current balance. A file value of 2.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 computes file_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.

Form-data fields

Example request