Path parameters
-
The unique identifier for the business location.
Query parameters
-
page integer
Starting page of results, when paginating.
Default value is
0
. -
size integer
Number of results to return, when paginating.
Default value is
1000
. -
sort array[string]
Sort by field and direction.
Default value is
["date,desc"]
. -
startTime string(date-time)
Show results after this start time. The format should be
yyyy-MM-dd'T'HH:mm:ss
(ISO 8601 format). -
endTime string(date-time)
Show results before this end time. The format should be
yyyy-MM-dd'T'HH:mm:ss
(ISO 8601 format). -
staffId integer(int64)
Filter on the unique identifier for the user.
GET /staff/v1/businessLocations/{businessLocationId}/shift
curl \
-X GET https://api.trial.lsk.lightspeed.app/staff/v1/businessLocations/{businessLocationId}/shift \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"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"
},
"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
}
}