Discussions

Ask a Question
Back to all

Absence Periods Endpoint V2 Problem

Hi, I am updating our API Project to the V2 version. Now I figured out that there might be a Problem. This is an example output of a requested period:

{
"id": "252627ab...ce-46cc7",
"person": {
"id": "328...42"
},
"starts_from": {
"date_time": "2026-12-31T00:00:00",
"type": "FIRST_HALF"
},
"ends_at": {
"date_time": "2027-01-01T00:00:00",
"type": "SECOND_HALF"
},
"timezone_id": "Europe/Berlin",
"comment": null,
"absence_type": {
"id": "d2967a.-4a...0dad882f5964"
},
"approval": {
"status": "APPROVED"
},
"created_at": "2025-12-19T13:15:02.136714Z",
"updated_at": "2026-01-06T12:40:15.270574Z"
}

Itentionally you would think, that this time off period is two days long. But listening to the API Reference Documentation this is a one day absence period. (https://developer.personio.de/reference/absence-periods)

But neither one nor two days are correct. The correct answer is a half day absence on 2026-12-31 as you can see in the absence breackdown endpoint:

"_data": [
{
"date": "2026-12-31",
"effective_duration": {
"unit": "DAY",
"value": 0.5
}
}
]

Is it just me with this issue or is that a known problem? Thank you for helping me!