Get absence stats: vacation balance (number of vacation days left) this vacation year plus compensation days per absence type with separate saldo.

Imported vacation balances will also be taken into account when calculating.

Permissions. User's vacation balance can be accessed by:

  • user themselves
  • user's approvers
  • company's managers and accountants
  • company users configured to approve vacations

If long absences with separate saldo exist and user has compensation time set in settings

then compensation days saldo is returned.

Examples

{
  "vacation_days": 10,
  "start_date": "2025-04-01",
  "end_date": "2026-03-31",
  "comp_time": [
    {
      "absence_type": "Compensation time",
      "days": 10.5,
    }
  ]
}

Params

Param name Description
user_id
optional

User ID. Default: current user ID.

Validations:

  • Must be a Integer