Get a list of all absences accessible to user.

Access rights:

  • Regular users can see only their own absences.
  • User's absences can also be seen by their approvers.
  • Accountants and managers can see all absences in the company.

Params

Param name Description
page
optional

Page number.

Validations:

  • Must be a Integer

per_page
optional

Number of records per page. Default: 50.

Validations:

  • Must be a Integer

date_range
optional

Get all absences within the specified date range. Date range format: "DD/MM/YYYY - DD/MM/YYYY" (e.g. 15/02/2025 - 28/02/2025).

Validations:

  • Must be a String

date_range_start
optional

Get all absences within a date range with the specified start date.

Validations:

  • Must be a String

date_range_end
optional

Get all absences within a date range with the specified end date.

Validations:

  • Must be a String

updated_after
optional

Get all absences updated after the specifiex Unix timestamp.

Validations:

  • Must be a Integer

user_id
optional

Get all absences for the specified user.

Validations:

  • Must be a Integer

state
optional

Filter absences by state.

Validations:

  • Must be one of: pending, approved, unapproved.

absence_type_name
optional

Filter absences by absence type name. Must be one of the following: Vacation, SickLeave, one of company’s long absence types’ names.

Validations:

  • Must be a String

sort_by
optional

Sort by field. Default: start_date.

Validations:

  • Must be a String

order
optional

Sorting order (descending or ascending). Default: asc.

Validations:

  • Must be one of: desc, asc.