Shifts of one business location with their clock-in and clock-out events.
startTime and endTime filter on dateInUTC, the time of the shift's latest clock-in or clock-out.
Without them the window is the last 30 days.
Results are sorted by dateInUTC, newest first. Follow links.next or raise page until
page.page equals page.totalPages.
Query parameters
-
The page number, when paginating. Pages start at 1.
Minimum value is
1. Default value is1. -
Number of results to return per page, when paginating. Values above 200 are capped at 200.
Minimum value is
1. Default value is10. -
Sort by field and direction. The default
date,descsorts ondateInUTC, newest first.Default value is
["date,desc"]. -
Return shifts whose
dateInUTC(time of the latest clock-in or clock-out) is at or after this time. ISO 8601 date-time with an offset, for example2026-11-10T04:30:00Z. A value without an offset fails with 400. URL-encode a+offset as%2B. Defaults to 30 days ago. -
Return shifts whose
dateInUTC(time of the latest clock-in or clock-out) is at or before this time. A shift clocked out after this time is not returned. ISO 8601 date-time with an offset, for example2026-11-10T23:59:59Z. A value without an offset fails with 400. URL-encode a+offset as%2B. Defaults to now. -
Filter on the unique identifier for the user.
curl \
--request GET 'https://api.lsk.lightspeed.app/staff/v1/businessLocations/{businessLocationId}/shift' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"data": {
"shifts": [
{
"uuid": "REcdfpCwQJKUR53gdzIk5Q==",
"businessId": 12345,
"businessLocationId": 1234567890,
"deviceId": 54321,
"staffId": 1234,
"declaredCashTips": "10.00",
"dateInUTC": "2020-01-01T00:00:00Z",
"events": [
{
"uuid": "REcdfpCwQJKUR53gdzIk5Q==",
"timestamp": "2020-01-01T00:00:00Z",
"createdOn": "2020-01-01T00:00:00Z",
"eventType": "CLOCK_IN"
}
]
}
]
},
"links": {
"first": {
"href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=1&size=1&sort=userId,desc"
},
"prev": {
"href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=1&size=1&sort=userId,desc"
},
"self": {
"href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=1&size=1&sort=userId,desc"
},
"next": {
"href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=2&size=1&sort=userId,desc"
},
"last": {
"href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=5&size=1&sort=userId,desc"
}
},
"page": {
"page": 1,
"size": 10,
"totalElements": 100,
"totalPages": 10
}
}