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

Get Attendances

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

Request

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

Response

{
	"data": [
        {
            "id": 1,
            "date": "2024-08-17T00:00:00.000000Z",
            "from": "09:45:00",
            "to": "14:30:00",
            "employee_id": "john.doe",
            "department_id": 1,
            "duration": 4.75,
            "billable": true,
            "work_location_id": "Czech Republic",
            "note": "Gryphon. Alice did not look at them--'I wish they'd get the trial one way up as the Dormouse go on.",
            "activity_id": "re",
            "start": null,
            "destination": null,
            "vehicle_id": null,
            "private": null,
            "passengers": null,
            "km": null,
            "direction_of_travel": {
                "id": 1,
                "name": "continue"
            },
            "created": "2024-09-17T10:15:47.000000Z",
            "modified": "2024-09-17T10:15:47.000000Z",
            "project_id": 9,
            "project_task_id": 41,
            "invoice_item_id": 1,
            "ticket_id": null,
            "subtask_id": null,
            "work_location_is_project_relevant": false
        },
		{
			"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