List an employee’s travel data
Returns the travel data entries of the employee, oldest valid_from first. Requires the Inovex module.
Availability: Full version only — a Clock instance answers 404 for this endpoint.
Request
GET /api/v1/employees/{username}/travel-data
curl --request GET \
--url 'https://www.zep-online.de/zepinstanz/next/api/v1/employees/{username}/travel-data' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'Path parameters
- Name
username- Type
- string
- Description
The employee username
Query parameters
- Name
limit- Type
- integer, nullable
- Description
The number of records per page, 1 to 200. Defaults to 15.
- Name
page- Type
- integer, nullable
- Description
The page of results to return, counting from 1.
Response
{
"data": [
{
"id": 1,
"username": "max.mustermann",
"valid_from": "2026-01-01",
"distance": 1.5,
"travel_time": 1.5
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"path": "string",
"per_page": 1,
"to": 1,
"total": 1
}
}Response fields
- Name
id- Type
- integer
- Description
Unique identifier of the travel data entry.
- Name
username- Type
- string
- Description
Username of the employee the entry belongs to.
- Name
valid_from- Type
- string (date)
- Description
First calendar day the distance and travel time apply, as
Y-m-d.
- Name
distance- Type
- number
- Description
Distance to the workplace in kilometres.
- Name
travel_time- Type
- number
- Description
Travel time to the workplace in hours.