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.
Default value is
["name,asc"]. -
Filter on group name.
-
Filter on group roles.
GET
/staff/v1/businessLocations/{businessLocationId}/groups
curl \
--request GET 'https://api.lsk.lightspeed.app/staff/v1/businessLocations/{businessLocationId}/groups' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"staffGroupList": [
{
"id": 1234,
"name": "Bar Staff",
"posAccessForbidden": false,
"roles": [
{
"id": 1234,
"name": "ROLE_CAN_LOGIN"
}
],
"reportAccess": "STAFF_REPORT_OWN_ACCESS"
}
]
},
"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
}
}