Discussions

Ask a Question
Back to All

Get actual days of an absence via api

When querying for absences, the api returns this information relevant to absence days:

  • from date
  • to date
  • days_count (an actual day count, taking absence validity settings into account, like excluding weekends and public holidays)

Now, there is currently no way to retrieve the actual absence days from the api, only their count, because:

  • the /company/time-offs api returns only the three mentioned properties
  • /company/time-off-types endpoint returns no information on the validity settings of the absence
  • plus, Personio doesn't provide any api endpoint for getting all of the country public holidays, even if time-off-types provided information on the validity

Therefore it is now impossible to find out a person's absence days via api