New API version v6.13.17 has been released! 🎉
REST Documentation
GET Absences

Get Absences

You can use this endpoint to call up an employee's absences.

Request

GET /api/v1/employees/:username/absences
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/employees/alexandrea.stroman/absences' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {token}'

Response

{
	"data": [
		{
			"id": 1,
			"employee_id": "alexandrea.stroman",
			"type": "2",
			"start_date": "2023-12-29",
			"end_date": "2024-01-03",
			"hours": "6.0000000000",
			"from": "13:04:34",
			"to": "18:04:34",
			"note": "Sit eaque consequatur delectus est vero voluptas accusamus placeat. Quo rem officia quas asperiores. Alias voluptatibus eius ducimus qui. Ut dolor quis quaerat aut.",
			"approved": true,
			"timezone": "Asia\/Oral",
			"created": null,
			"modified": null
		}
	]
}