New API version v7.4.2 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-07-20T00:00:00.000000Z",
            "from": "11:30:00",
            "to": "12:30:00",
            "employee_id": "john.doe",
            "duration": 1,
            "note": "Setup meeting with client",
            "billable": true,
            "work_location_id": null,
            "activity_id": "im",
            "start": null,
            "destination": null,
            "vehicle_id": null,
            "private": null,
            "passengers": null,
            "km": null,
            "direction_of_travel": {
                "id": 1,
                "name": "continue"
            },
            "project_id": 16,
            "project_task_id": 7,
            "invoice_item_id": null,
            "ticket_id": null,
            "subtask_id": null,
            "work_location_is_project_relevant": true,
            "department_id": 1,
            "project_release": null,
            "project_released_at": null,
            "project_released_by": null,
            "created": "2024-07-20T11:30:00.000000Z",
            "modified": "2024-07-20T12:30:00.000000Z"
        },
        {
            "id": 2,
            "date": "2024-06-01T00:00:00.000000Z",
            "from": "00:00:00",
            "to": "00:00:00",
            "employee_id": "jane.smith",
            "duration": 4,
            "note": "Implementation",
            "billable": true,
            "work_location_id": null,
            "activity_id": "000",
            "start": null,
            "destination": null,
            "vehicle_id": null,
            "private": null,
            "passengers": null,
            "km": null,
            "direction_of_travel": {
                "id": 1,
                "name": "continue"
            },
            "project_id": 10,
            "project_task_id": 1,
            "invoice_item_id": null,
            "ticket_id": null,
            "subtask_id": null,
            "work_location_is_project_relevant": true,
            "department_id": 1,
            "project_release": {
                "id": 1,
                "name": "released"
            },
            "project_released_at": "2024-06-24 17:46:25",
            "project_released_by": "john.doe",
            "created": "2024-06-01T08:00:00.000000Z",
            "modified": "2024-06-01T16:00:00.000000Z"
        }
	]
}

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 attendances are to be queried.

  • Name
    project_id
    Type
    integer
    Description

    The ID of the project whose attendances are to be queried.

  • Name
    ticket_id
    Type
    integer
    Description

    The ID of the ticket whose attendances are to be queried.

  • Name
    limit
    Type
    integer
    Description

    Attribute for limiting the number of entries per page