Retrieve a specific shift
GET
/api/timesheets/{id}
shifts
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/timesheets/'
Response Response Example
200 - Success
{
"id": "shift_001",
"employeeId": "emp_001",
"locationId": "loc_001",
"roleId": "role_001",
"startTime": "2023-10-27T09:00:00Z",
"endTime": "2023-10-27T17:00:00Z",
"breaks": [
{
"startTime": "2023-10-27T12:00:00Z",
"endTime": "2023-10-27T12:30:00Z",
"typeId": "break_type_001",
"paid": false,
"name": "Lunch",
"mandatory": true,
"frequencyMinutes": 120,
"durationInSettingsMinutes": 30
}
],
"hourlyWage": 20,
"totalPaidBreaks": 0,
"totalUnpaidBreaks": 30,
"duration": 480,
"payableDuration": 450,
"utcOffset": -240,
"utcStartTime": "2023-10-27T13:00:00Z",
"utcEndTime": "2023-10-27T21:00:00Z",
"locked": false,
"active": true,
"createdAt": "2023-10-27T09:00:00Z",
"updatedAt": "2023-10-27T09:00:00Z",
"deletedAt": null
}
Request
Path Params
id
string
required
Example:
shift_001