curl --location --request GET 'https://api.personio.de/v1/company/time-offs'
{
"data": [
{
"attributes": {
"certificate": {
"status": "not-required"
},
"created_at": "2017-01-17T10:32:18+0100",
"days_count": 3,
"employee": {
"attributes": {
"email": {
"label": "Email",
"value": "michael.miller@demo.com"
},
"first_name": {
"label": "First name",
"value": "Michael"
},
"id": {
"label": "id",
"value": 4567
},
"last_name": {
"label": "Last name",
"value": "Miller"
}
},
"type": "Employee"
},
"end_date": "2017-12-29T00:00:00+0100",
"half_day_end": 0,
"half_day_start": 0,
"id": 12345,
"start_date": "2017-12-27T00:00:00+0100",
"status": "approved",
"time_off_type": {
"attributes": {
"id": 54321,
"name": "Vacation"
},
"type": "TimeOffType"
}
},
"type": "TimeOffPeriod"
}
],
"success": true
}