New API version v6.12.5 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-02-25T00:00:00.000000Z",
			"from": "10:32:00",
			"to": "17:57:00",
			"employee_id": "alaina.d'amore",
			"department_id": 4,
			"duration": "7.4167000000",
			"billable": {
				"id": 2,
				"name": "Billable"
			},
			"work_location": null,
			"note": null,
			"activity_id": "Nobis esse.",
			"start": null,
			"destination": null,
			"vehicle": null,
			"private": null,
			"passengers": null,
			"km": null,
			"direction_of_travel": null,
			"created": "2024-03-25T11:10:46.000000Z",
			"modified": "2024-03-25T11:10:46.000000Z",
			"project_id": 43,
			"project_task_id": 0,
			"invoice_item_id": null,
			"ticket_id": null,
			"subtask_id": null,
			"work_location_is_project_relevant": 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