improved

Absence API: absence type configuration

In Personio, absence types are very customizable. For example, for a given absence type you can specify whether Half days, Substitutes, Absence certificates or similar options are required or possible. (Find more info here)

The defined configuration for each absence type has now been added to the response of the /company/time-off-types endpoint.

Find more information here

{
  "success": true,
  "data": [
    {
      "type": "TimeOffType",
      "attributes": {
        "id": 1234,
        "name": "Paid vacation",
        "category": null,
        "unit": "day",
        "half_day_requests_enabled": true,
        "certification_required": false,
        "substitute_option": "disabled",
        "approval_required": true
      }
    },
    {
      "type": "TimeOffType",
      "attributes": {
        "id": 1235,
        "name": "Home office",
        "category": "offsite_work",
        "unit": "hour",
        "half_day_requests_enabled": true,
        "certification_required": true,
        "certification_submission_timeframe": 2,
        "substitute_option": "optional",
        "approval_required": true
      }
    }
  ]
}