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

Get Absence Details

You can use this endpoint to call up a single absence.

Request

GET /api/v1/absences/:id
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/absences/1' \
     --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,
		"absenceReason": null,
		"leaveApprovalApplication": {
			"id": 1,
			"employee_id": "nola.flatley",
			"requested_at": "2023-12-29 13:04:34",
			"number_of_days": "9.0000000000",
			"start_date": "2023-12-29",
			"end_date": "2024-01-07",
			"note": "Sint saepe quia reiciendis perferendis. Debitis nulla consectetur totam. Consequatur magnam reiciendis dolorum minima est velit.",
			"status": {
				"id": 2,
				"name": "Rejected"
			},
			"recipient": "henriette65@gmail.com",
			"recipient_cc": "wilburn.frami@nienow.com",
			"recipient_bcc": "leanne.grant@gmail.com",
			"status_edited_since": "2023-12-29 13:04:34",
			"status_edited_by": "vida.towne",
			"status_note": "Ea vero quo numquam ullam nam. Ducimus consequatur eaque ad saepe sapiente eligendi aut reprehenderit. Incidunt alias expedita expedita sunt qui iusto. Doloribus aut ipsa aliquam est.",
			"absence_text": "Modi eligendi qui minus omnis. Molestiae voluptatibus quam minus vel dolorum eligendi. Impedit deleniti velit est eveniet cupiditate. Distinctio molestias et rerum eum debitis aut quidem non."
		}
	}
}