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

Get All Absences

You can use this endpoint to call up a paginated list of all absences.

Request

GET /api/v1/absences
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/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
		},
		{
			"id": 2
			// ...
		}
	]
}

Optional Parameters

  • Name
    start_date
    Type
    date | Y-m-d
    Description

    First day of the period to be queried. It is inclusive, so the day specified as start_date will also be considered on the results

  • Name
    end_date
    Type
    date | Y-m-d
    Description

    Last day of the period to be queried. It is inclusive, so the day specified as end_date will also be considered on the results.

  • Name
    employee_id
    Type
    string
    Description

    The username of the employee whose absences are to be queried.

  • Name
    limit
    Type
    integer
    Description

    Attribute for limiting the number of entries per page