Team
TeamService runs the team: who works here, what their role lets them do, when they are scheduled, the time they clock, and what they sold.
Roles are named sets of permissions. Every business has Owner, Manager, Cashier and Staff and can add its own. A team member signs in to a register with a four-digit passcode, which registers check offline; one with an email can also be invited to the dashboard.
Reading the team takes team.manage, or shifts.manage for the schedule and timecards. Changing anyone's role takes team.manage and every permission the role gives: nobody hands out more than they have.
ListTeam#
ListTeam returns the team members, the roles and the permissions there are.
Request body
No fields: send {}.
Response
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListTeam \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"members": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"fullName": "Amina Mushi",
"email": "amina@example.co.tz",
"phone": "+255712345678",
"roleId": "",
"roleName": "Amina Mushi",
"permissions": [
""
],
"locationIds": [
""
],
"hourlyRate": "0",
"color": "",
"active": false,
"hasPasscode": false,
"hasLogin": false,
"invited": false,
"passcodeSalt": "",
"passcodeHash": "",
"owner": false,
"updatedAt": "2026-12-05",
"positionIds": [
""
],
"maxWeeklyMinutes": 0
}
],
"roles": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"systemKey": "",
"name": "Amina Mushi",
"description": "",
"permissions": [
""
],
"memberCount": 1
}
],
"permissionGroups": [
{
"title": ""
}
],
"positions": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"color": "",
"sort": 0,
"archived": false
}
]
}CreateTeamMember#
Request body
memberTeamMemberInputpasscodestringEmpty picks a random one.
invitebooleanEmail them a link to sign in to the dashboard; needs an email.
Response
memberTeamMemberpasscodestringThe passcode to tell them; it is not shown again.
inviteUrlstringinvite_urlWhen invited: the link that was emailed, to share another way if needed.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/CreateTeamMember \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"member": {
"fullName": "Amina Mushi",
"email": "amina@example.co.tz",
"phone": "+255712345678",
"locationIds": [
""
],
"positionIds": [
""
]
}
}'{
"member": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"fullName": "Amina Mushi",
"email": "amina@example.co.tz",
"phone": "+255712345678",
"roleId": "",
"roleName": "Amina Mushi",
"permissions": [
""
],
"locationIds": [
""
],
"hourlyRate": "0",
"color": "",
"active": false,
"hasPasscode": false,
"hasLogin": false,
"invited": false,
"passcodeSalt": "",
"passcodeHash": "",
"owner": false,
"updatedAt": "2026-12-05",
"positionIds": [
""
],
"maxWeeklyMinutes": 0
},
"passcode": "",
"inviteUrl": ""
}UpdateTeamMember#
Request body
idstringmemberTeamMemberInputResponse
memberTeamMembercurl https://api.buziin.tech/holygrail.team.v1.TeamService/UpdateTeamMember \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"member": {
"fullName": "Amina Mushi",
"email": "amina@example.co.tz",
"phone": "+255712345678",
"locationIds": [
""
],
"positionIds": [
""
]
}
}'{
"member": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"fullName": "Amina Mushi",
"email": "amina@example.co.tz",
"phone": "+255712345678",
"roleId": "",
"roleName": "Amina Mushi",
"permissions": [
""
],
"locationIds": [
""
],
"hourlyRate": "0",
"color": "",
"active": false,
"hasPasscode": false,
"hasLogin": false,
"invited": false,
"passcodeSalt": "",
"passcodeHash": "",
"owner": false,
"updatedAt": "2026-12-05",
"positionIds": [
""
],
"maxWeeklyMinutes": 0
}
}SetTeamMemberActive#
SetTeamMemberActive deactivates someone who left, or brings them back. A deactivated member cannot sign in anywhere; their history stays.
Request body
idstringactivebooleanResponse
memberTeamMembercurl https://api.buziin.tech/holygrail.team.v1.TeamService/SetTeamMemberActive \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"member": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"fullName": "Amina Mushi",
"email": "amina@example.co.tz",
"phone": "+255712345678",
"roleId": "",
"roleName": "Amina Mushi",
"permissions": [
""
],
"locationIds": [
""
],
"hourlyRate": "0",
"color": "",
"active": false,
"hasPasscode": false,
"hasLogin": false,
"invited": false,
"passcodeSalt": "",
"passcodeHash": "",
"owner": false,
"updatedAt": "2026-12-05",
"positionIds": [
""
],
"maxWeeklyMinutes": 0
}
}SetPasscode#
SetPasscode sets a member's register passcode, or picks a new random one when passcode is empty. Passcodes are unique in the business. Anyone may set their own.
Request body
teamMemberIdstringteam_member_idpasscodestringFour digits; empty for a random one.
Response
passcodestringcurl https://api.buziin.tech/holygrail.team.v1.TeamService/SetPasscode \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"passcode": ""
}InviteTeamMember#
InviteTeamMember emails a member a link to sign in to the dashboard.
Request body
teamMemberIdstringteam_member_idResponse
inviteUrlstringinvite_urlcurl https://api.buziin.tech/holygrail.team.v1.TeamService/InviteTeamMember \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"inviteUrl": ""
}CreateRole#
Request body
roleRoleInputResponse
roleTeamRolecurl https://api.buziin.tech/holygrail.team.v1.TeamService/CreateRole \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"role": {
"name": "Amina Mushi",
"permissions": [
""
]
}
}'{
"role": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"systemKey": "",
"name": "Amina Mushi",
"description": "",
"permissions": [
""
],
"memberCount": 1
}
}UpdateRole#
UpdateRole renames a role or changes its permissions. The Owner role's permissions cannot change. Members get the change when their session next refreshes, and registers on their next sync.
Request body
idstringroleRoleInputResponse
roleTeamRolecurl https://api.buziin.tech/holygrail.team.v1.TeamService/UpdateRole \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"role": {
"name": "Amina Mushi",
"permissions": [
""
]
}
}'{
"role": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"systemKey": "",
"name": "Amina Mushi",
"description": "",
"permissions": [
""
],
"memberCount": 1
}
}DeleteRole#
DeleteRole removes a custom role nobody has.
Request body
idstringResponse
No fields: send {}.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/DeleteRole \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{}ExportTeam#
ExportTeam is what a register needs to start: the team at its location with passcodes, who is clocked in there, and the published shifts from yesterday to a week ahead. Keep current from the change feed after cursor.
Request body
locationIdstringlocation_idResponse
membersTeamMember[]timecardsTimecard[]Open timecards at the location.
shiftsScheduledShift[]cursorint64 stringpositionsPosition[]announcementsAnnouncement[]Announcements still showing.
Time off that is pending or not over yet, for the location's team.
Shift changes still waiting at the location.
availabilityAvailability[]The location's named shifts, archived ones too.
Shift runs at the location still open, and those ended in the last day.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ExportTeam \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"members": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"fullName": "Amina Mushi",
"email": "amina@example.co.tz",
"phone": "+255712345678",
"roleId": "",
"roleName": "Amina Mushi",
"permissions": [
""
],
"locationIds": [
""
],
"hourlyRate": "0",
"color": "",
"active": false,
"hasPasscode": false,
"hasLogin": false,
"invited": false,
"passcodeSalt": "",
"passcodeHash": "",
"owner": false,
"updatedAt": "2026-12-05",
"positionIds": [
""
],
"maxWeeklyMinutes": 0
}
],
"timecards": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"deviceId": "",
"shiftId": "",
"clockInAt": "",
"clockOutAt": "",
"note": "",
"editedBy": "",
"editedAt": "",
"approvedBy": "",
"approvedAt": "",
"namedShiftId": "",
"shiftDate": "2026-12-05",
"shiftRunId": ""
}
],
"shifts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"startsAt": "",
"endsAt": "",
"breakMinutes": 0,
"note": "",
"published": false,
"removed": false,
"positionId": "",
"source": ""
}
],
"cursor": "0",
"positions": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"color": "",
"sort": 0,
"archived": false
}
],
"announcements": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"title": "",
"body": "",
"locationIds": [
""
],
"pinned": false,
"requireAck": false,
"publishedAt": "",
"expiresAt": "",
"authorName": "Amina Mushi",
"archived": false,
"acknowledgedMemberIds": [
""
],
"audience": 0
}
],
"timeOff": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"kind": "",
"startsAt": "",
"endsAt": "",
"allDay": false,
"note": "",
"status": "",
"minutes": "0",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": "",
"shortNotice": false
}
],
"shiftRequests": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "",
"shiftId": "",
"teamMemberId": "",
"targetMemberId": "",
"targetShiftId": "",
"note": "",
"status": "",
"peerStatus": "",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": ""
}
],
"availability": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"note": "",
"updatedAt": "2026-12-05"
}
],
"namedShifts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"code": "",
"color": "",
"startMinute": 0,
"endMinute": 0,
"days": [
0
],
"teamMemberIds": [
""
],
"earlyClockInMinutes": 0,
"lateGraceMinutes": 0,
"sort": 0,
"archived": false,
"updatedAt": "2026-12-05"
}
],
"shiftRuns": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"deviceId": "",
"namedShiftId": "",
"shiftDate": "2026-12-05",
"startedAt": "",
"endedAt": "",
"endedBy": "",
"fullName": "Amina Mushi"
}
]
}ListShifts#
Scheduling. Shifts are drafts until published; registers and the team see published ones.
Request body
locationIdstringlocation_idfromstringRFC 3339 instants: shifts that start in [from, to).
tostringResponse
shiftsScheduledShift[]curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListShifts \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"shifts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"startsAt": "",
"endsAt": "",
"breakMinutes": 0,
"note": "",
"published": false,
"removed": false,
"positionId": "",
"source": ""
}
]
}SaveShift#
Request body
shiftScheduledShiftEmpty id makes a new shift. Changing a published shift keeps it published.
Response
shiftScheduledShiftcurl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveShift \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"shift": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}
}'{
"shift": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"startsAt": "",
"endsAt": "",
"breakMinutes": 0,
"note": "",
"published": false,
"removed": false,
"positionId": "",
"source": ""
}
}DeleteShift#
Request body
idstringResponse
No fields: send {}.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/DeleteShift \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{}PublishShifts#
Request body
locationIdstringlocation_idfromstringtostringResponse
publishedintegercurl https://api.buziin.tech/holygrail.team.v1.TeamService/PublishShifts \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"published": 0
}CopyShifts#
CopyShifts copies a week's shifts to another week as drafts, skipping any that would overlap one already there.
Request body
locationIdstringlocation_idfromWeekstringfrom_weekRFC 3339: the start of the week to copy, and of the week to copy into.
toWeekstringto_weekResponse
copiedintegerskippedintegercurl https://api.buziin.tech/holygrail.team.v1.TeamService/CopyShifts \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"copied": 0,
"skipped": 0
}ListTimecards#
Timecards. Registers clock people in and out through sync; managers correct timecards here.
Request body
locationIdstringlocation_idfromstringRFC 3339: timecards clocked in during [from, to).
tostringteamMemberIdstringteam_member_idEmpty for everyone.
Response
timecardsTimecard[]curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListTimecards \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"timecards": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"deviceId": "",
"shiftId": "",
"clockInAt": "",
"clockOutAt": "",
"note": "",
"editedBy": "",
"editedAt": "",
"approvedBy": "",
"approvedAt": "",
"namedShiftId": "",
"shiftDate": "2026-12-05",
"shiftRunId": ""
}
]
}SaveTimecard#
Request body
timecardTimecardEmpty id adds a missed timecard.
Response
timecardTimecardcurl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveTimecard \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"timecard": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"shiftDate": "2026-12-05"
}
}'{
"timecard": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"deviceId": "",
"shiftId": "",
"clockInAt": "",
"clockOutAt": "",
"note": "",
"editedBy": "",
"editedAt": "",
"approvedBy": "",
"approvedAt": "",
"namedShiftId": "",
"shiftDate": "2026-12-05",
"shiftRunId": ""
}
}GetShiftReport#
GetShiftReport adds up hours, pay and sales per team member over local dates [from, to] at a location. Hours over 40 in a week (Monday to Sunday) are overtime.
Request body
locationIdstringlocation_idfromstringLocal dates, YYYY-MM-DD, inclusive.
tostringResponse
curl https://api.buziin.tech/holygrail.team.v1.TeamService/GetShiftReport \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"rows": [
{
"teamMemberId": "",
"fullName": "Amina Mushi",
"roleName": "Amina Mushi",
"shifts": 0,
"scheduledMinutes": "0",
"workedMinutes": "0",
"breakMinutes": "0",
"overtimeMinutes": "0",
"late": 0,
"laborCost": "150000",
"orders": 0,
"sales": "0",
"refunds": "0",
"tips": "0",
"timeOffMinutes": "0"
}
],
"timecards": [
{
"fullName": "Amina Mushi",
"workedMinutes": "0",
"breakMinutes": "0",
"scheduledStart": "",
"scheduledEnd": "",
"lateMinutes": 0,
"orders": 0,
"sales": "0",
"tips": "0"
}
],
"total": {
"teamMemberId": "",
"fullName": "Amina Mushi",
"roleName": "Amina Mushi",
"shifts": 0,
"scheduledMinutes": "0",
"workedMinutes": "0",
"breakMinutes": "0",
"overtimeMinutes": "0",
"late": 0,
"laborCost": "150000",
"orders": 0,
"sales": "0",
"refunds": "0",
"tips": "0",
"timeOffMinutes": "0"
},
"currencyCode": "TZS"
}GetSchedule#
GetSchedule is everything the schedule needs for a week or two at a location: shifts with their conflicts, time off, availability, pending shift changes, and each day's forecast sales against labor cost.
Request body
locationIdstringlocation_idfromstringRFC 3339 instants: shifts that start in [from, to).
tostringResponse
shiftsScheduledShift[]warningsShiftWarning[]Pending and approved time off overlapping the range.
availabilityAvailability[]requestsShiftRequest[]Shift changes waiting for a teammate or a manager.
daysScheduleDay[]settingsScheduleSettingscurrencyCodestringcurrency_codetimeZonestringtime_zonecurl https://api.buziin.tech/holygrail.team.v1.TeamService/GetSchedule \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"shifts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"startsAt": "",
"endsAt": "",
"breakMinutes": 0,
"note": "",
"published": false,
"removed": false,
"positionId": "",
"source": ""
}
],
"warnings": [
{
"shiftId": "",
"code": "",
"message": ""
}
],
"timeOff": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"kind": "",
"startsAt": "",
"endsAt": "",
"allDay": false,
"note": "",
"status": "",
"minutes": "0",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": "",
"shortNotice": false
}
],
"availability": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"note": "",
"updatedAt": "2026-12-05"
}
],
"requests": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "",
"shiftId": "",
"teamMemberId": "",
"targetMemberId": "",
"targetShiftId": "",
"note": "",
"status": "",
"peerStatus": "",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": ""
}
],
"days": [
{
"date": "2026-12-05",
"forecastSales": "0",
"scheduledMinutes": "0",
"laborCost": "150000",
"shifts": 0,
"openShifts": 0,
"forecastOrders": "0",
"forecastBasis": ""
}
],
"settings": {
"pickupsNeedApproval": false,
"swapsNeedApproval": false,
"minRestMinutes": 0,
"weeklyOvertimeMinutes": 0,
"timeOffNoticeDays": 0,
"lateGraceMinutes": 0,
"mobileClockIn": false,
"namedShiftsOverlap": false
},
"currencyCode": "TZS",
"timeZone": ""
}GetScheduleSettings#
Request body
No fields: send {}.
Response
settingsScheduleSettingscurl https://api.buziin.tech/holygrail.team.v1.TeamService/GetScheduleSettings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"settings": {
"pickupsNeedApproval": false,
"swapsNeedApproval": false,
"minRestMinutes": 0,
"weeklyOvertimeMinutes": 0,
"timeOffNoticeDays": 0,
"lateGraceMinutes": 0,
"mobileClockIn": false,
"namedShiftsOverlap": false
}
}SaveScheduleSettings#
SaveScheduleSettings takes shifts.manage.
Request body
settingsScheduleSettingsResponse
settingsScheduleSettingscurl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveScheduleSettings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"settings": {
"pickupsNeedApproval": false,
"swapsNeedApproval": false,
"minRestMinutes": 0,
"weeklyOvertimeMinutes": 0,
"timeOffNoticeDays": 0,
"lateGraceMinutes": 0,
"mobileClockIn": false,
"namedShiftsOverlap": false
}
}SavePosition#
Positions are the jobs people do on a shift: Barista, Server, Cook. ListTeam returns them. Saving and archiving takes shifts.manage.
Request body
positionPositionEmpty id adds one.
Response
positionPositioncurl https://api.buziin.tech/holygrail.team.v1.TeamService/SavePosition \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"position": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi"
}
}'{
"position": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"color": "",
"sort": 0,
"archived": false
}
}ArchivePosition#
Request body
idstringResponse
No fields: send {}.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ArchivePosition \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{}ListStaffingRules#
Staffing rules say how many people each position needs at a location, for drafting next week's shifts from the forecast (ADR 56). Listing suggests a rate from past shifts; saving replaces the location's rules and takes shifts.manage.
Request body
locationIdstringlocation_idResponse
rulesStaffingRule[]Every active position, with its rule or defaults (saved false).
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListStaffingRules \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"rules": [
{
"positionId": "",
"positionName": "Amina Mushi",
"minStaff": 0,
"ordersPerHour": 0,
"leadMinutes": 0,
"tailMinutes": 0,
"suggestedOrdersPerHour": 0,
"saved": false
}
]
}SaveStaffingRules#
Request body
locationIdstringlocation_idrulesStaffingRule[]The rules to keep; positions left out have none.
Response
rulesStaffingRule[]curl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveStaffingRules \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"rules": [
{
"positionName": "Amina Mushi"
}
]
}'{
"rules": [
{
"positionId": "",
"positionName": "Amina Mushi",
"minStaff": 0,
"ordersPerHour": 0,
"leadMinutes": 0,
"tailMinutes": 0,
"suggestedOrdersPerHour": 0,
"saved": false
}
]
}ListAvailability#
Availability is when someone can and cannot work, week by week. Anyone sets their own; shifts.manage sets anyone's.
Request body
No fields: send {}.
Response
availabilityAvailability[]curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListAvailability \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"availability": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"note": "",
"updatedAt": "2026-12-05"
}
]
}SaveAvailability#
Request body
availabilityAvailabilityteam_member_id empty for your own.
maxWeeklyMinutesintegermax_weekly_minutesWhen set, also changes the most they want to work in a week (minutes; -1 leaves it as it is).
Response
availabilityAvailabilitycurl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveAvailability \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"availability": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"updatedAt": "2026-12-05"
}
}'{
"availability": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"note": "",
"updatedAt": "2026-12-05"
}
}ListTimeOff#
Time off. Anyone on the team asks for their own; shifts.approve decides, and may add time off for someone else, approved at once.
Request body
locationIdstringlocation_idEmpty for all locations; else people who work there.
fromstringRFC 3339: requests overlapping [from, to). Empty for everything pending and from now on.
tostringstatusstringEmpty for any.
teamMemberIdstringteam_member_idResponse
requestsTimeOffRequest[]curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListTimeOff \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"requests": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"kind": "",
"startsAt": "",
"endsAt": "",
"allDay": false,
"note": "",
"status": "",
"minutes": "0",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": "",
"shortNotice": false
}
]
}RequestTimeOff#
Request body
requestTimeOffRequestteam_member_id empty for your own. Someone with shifts.approve may ask for someone else, and approve it at once.
approvebooleanResponse
requestTimeOffRequestcurl https://api.buziin.tech/holygrail.team.v1.TeamService/RequestTimeOff \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}
}'{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"kind": "",
"startsAt": "",
"endsAt": "",
"allDay": false,
"note": "",
"status": "",
"minutes": "0",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": "",
"shortNotice": false
}
}CancelTimeOff#
Request body
idstringResponse
requestTimeOffRequestcurl https://api.buziin.tech/holygrail.team.v1.TeamService/CancelTimeOff \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"kind": "",
"startsAt": "",
"endsAt": "",
"allDay": false,
"note": "",
"status": "",
"minutes": "0",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": "",
"shortNotice": false
}
}DecideTimeOff#
Request body
idstringapprovebooleannotestringResponse
requestTimeOffRequestcurl https://api.buziin.tech/holygrail.team.v1.TeamService/DecideTimeOff \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"kind": "",
"startsAt": "",
"endsAt": "",
"allDay": false,
"note": "",
"status": "",
"minutes": "0",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": "",
"shortNotice": false
}
}ListShiftRequests#
Shift changes: picking up an open shift, dropping one, giving one to a teammate or swapping with them. A teammate it involves accepts first; then a manager approves, unless the schedule settings say it needs none.
Request body
locationIdstringlocation_idEmpty for all locations.
statusstringEmpty for any.
Response
requestsShiftRequest[]curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListShiftRequests \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"requests": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "",
"shiftId": "",
"teamMemberId": "",
"targetMemberId": "",
"targetShiftId": "",
"note": "",
"status": "",
"peerStatus": "",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": ""
}
]
}RequestShiftChange#
Request body
requestShiftRequestteam_member_id empty for your own.
Response
requestShiftRequestcurl https://api.buziin.tech/holygrail.team.v1.TeamService/RequestShiftChange \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"shift": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
},
"targetShift": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}
}
}'{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "",
"shiftId": "",
"teamMemberId": "",
"targetMemberId": "",
"targetShiftId": "",
"note": "",
"status": "",
"peerStatus": "",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": ""
}
}RespondShiftChange#
Request body
idstringacceptbooleanResponse
requestShiftRequestcurl https://api.buziin.tech/holygrail.team.v1.TeamService/RespondShiftChange \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "",
"shiftId": "",
"teamMemberId": "",
"targetMemberId": "",
"targetShiftId": "",
"note": "",
"status": "",
"peerStatus": "",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": ""
}
}CancelShiftChange#
Request body
idstringResponse
requestShiftRequestcurl https://api.buziin.tech/holygrail.team.v1.TeamService/CancelShiftChange \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "",
"shiftId": "",
"teamMemberId": "",
"targetMemberId": "",
"targetShiftId": "",
"note": "",
"status": "",
"peerStatus": "",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": ""
}
}DecideShiftChange#
Request body
idstringapprovebooleannotestringResponse
requestShiftRequestcurl https://api.buziin.tech/holygrail.team.v1.TeamService/DecideShiftChange \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "",
"shiftId": "",
"teamMemberId": "",
"targetMemberId": "",
"targetShiftId": "",
"note": "",
"status": "",
"peerStatus": "",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": ""
}
}ListAnnouncements#
Announcements to the team, for some locations or all of them. Posting takes team.announce. Registers show them and record who read them.
Request body
includeArchivedbooleaninclude_archivedResponse
announcementsAnnouncement[]curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListAnnouncements \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"announcements": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"title": "",
"body": "",
"locationIds": [
""
],
"pinned": false,
"requireAck": false,
"publishedAt": "",
"expiresAt": "",
"authorName": "Amina Mushi",
"archived": false,
"acknowledgedMemberIds": [
""
],
"audience": 0
}
]
}SaveAnnouncement#
Request body
announcementAnnouncementEmpty id posts a new one.
Response
announcementAnnouncementcurl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveAnnouncement \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"announcement": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationIds": [
""
],
"authorName": "Amina Mushi",
"acknowledgedMemberIds": [
""
]
}
}'{
"announcement": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"title": "",
"body": "",
"locationIds": [
""
],
"pinned": false,
"requireAck": false,
"publishedAt": "",
"expiresAt": "",
"authorName": "Amina Mushi",
"archived": false,
"acknowledgedMemberIds": [
""
],
"audience": 0
}
}ArchiveAnnouncement#
Request body
idstringResponse
No fields: send {}.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ArchiveAnnouncement \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{}AcknowledgeAnnouncement#
Request body
idstringResponse
No fields: send {}.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/AcknowledgeAnnouncement \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{}ApproveTimecards#
ApproveTimecards approves closed timecards for payroll, or takes the approval back. Approved timecards cannot change. Takes shifts.approve.
Request body
idsstring[]approvebooleanFalse takes approval back.
Response
changedintegerskippedintegerTimecards still open are skipped.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ApproveTimecards \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
""
]
}'{
"changed": 0,
"skipped": 0
}GetMySchedule#
GetMySchedule is the signed-in person's own view: their shifts, open shifts they can pick up, their requests, time off, availability, timecards and announcements.
Request body
fromstringRFC 3339; empty for today to four weeks ahead.
tostringResponse
memberTeamMembershiftsScheduledShift[]Published open shifts at their locations they could take.
Shifts of teammates they could swap with or that a request is about.
requestsShiftRequest[]availabilityAvailabilityannouncementsAnnouncement[]timecardsMyTimecard[]positionsPosition[]memberNamesmap<string, string>member_namesNames of teammates and locations it mentions.
locationNamesmap<string, string>location_namessettingsScheduleSettingsNamed shifts they are assigned to, at their locations.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/GetMySchedule \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"member": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"fullName": "Amina Mushi",
"email": "amina@example.co.tz",
"phone": "+255712345678",
"roleId": "",
"roleName": "Amina Mushi",
"permissions": [
""
],
"locationIds": [
""
],
"hourlyRate": "0",
"color": "",
"active": false,
"hasPasscode": false,
"hasLogin": false,
"invited": false,
"passcodeSalt": "",
"passcodeHash": "",
"owner": false,
"updatedAt": "2026-12-05",
"positionIds": [
""
],
"maxWeeklyMinutes": 0
},
"shifts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"startsAt": "",
"endsAt": "",
"breakMinutes": 0,
"note": "",
"published": false,
"removed": false,
"positionId": "",
"source": ""
}
],
"openShifts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"startsAt": "",
"endsAt": "",
"breakMinutes": 0,
"note": "",
"published": false,
"removed": false,
"positionId": "",
"source": ""
}
],
"teamShifts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"startsAt": "",
"endsAt": "",
"breakMinutes": 0,
"note": "",
"published": false,
"removed": false,
"positionId": "",
"source": ""
}
],
"requests": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "",
"shiftId": "",
"teamMemberId": "",
"targetMemberId": "",
"targetShiftId": "",
"note": "",
"status": "",
"peerStatus": "",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": ""
}
],
"timeOff": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"kind": "",
"startsAt": "",
"endsAt": "",
"allDay": false,
"note": "",
"status": "",
"minutes": "0",
"decidedBy": "",
"decidedAt": "",
"decisionNote": "",
"createdAt": "",
"shortNotice": false
}
],
"availability": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"note": "",
"updatedAt": "2026-12-05"
},
"announcements": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"title": "",
"body": "",
"locationIds": [
""
],
"pinned": false,
"requireAck": false,
"publishedAt": "",
"expiresAt": "",
"authorName": "Amina Mushi",
"archived": false,
"acknowledgedMemberIds": [
""
],
"audience": 0
}
],
"timecards": [
{
"workedMinutes": "0"
}
],
"positions": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"color": "",
"sort": 0,
"archived": false
}
],
"memberNames": {
"key": ""
},
"locationNames": {
"key": ""
},
"settings": {
"pickupsNeedApproval": false,
"swapsNeedApproval": false,
"minRestMinutes": 0,
"weeklyOvertimeMinutes": 0,
"timeOffNoticeDays": 0,
"lateGraceMinutes": 0,
"mobileClockIn": false,
"namedShiftsOverlap": false
},
"namedShifts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"code": "",
"color": "",
"startMinute": 0,
"endMinute": 0,
"days": [
0
],
"teamMemberIds": [
""
],
"earlyClockInMinutes": 0,
"lateGraceMinutes": 0,
"sort": 0,
"archived": false,
"updatedAt": "2026-12-05"
}
]
}ClockSelf#
ClockSelf clocks the signed-in person in or out, or starts or ends a break, from the staff app. The business turns it on in its schedule settings (mobile_clock_in); it takes shifts.clock.
Request body
actionstring"in", "out", "break_start" or "break_end".
locationIdstringlocation_idWhere they clock in; empty for the location of their shift now, or their only location. Ignored for the other actions.
notestringnamedShiftIdstringnamed_shift_idThe named shift they clock in against; empty for the one running now (or about to start) at the location.
Response
timecardMyTimecardThe timecard as it is now; closed after "out".
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ClockSelf \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"timecard": {
"workedMinutes": "0"
}
}GetMyPerformance#
GetMyPerformance is the signed-in person's own figures over a period: what they sold, the hours they worked and how punctual they were, with the period before for comparison.
Request body
fromstringLocal dates, YYYY-MM-DD, both included; empty for the last 7 days.
tostringResponse
fromstringtostringcurrencystringtotalsPerformanceTotalspreviousPerformanceTotalsThe same length of time just before, for the arrows.
daysPerformanceDay[]rankintegerWhere their sales put them among teammates at their locations, 1 for the most; 0 when nobody sold.
teamSizeintegerteam_sizeteamAverageSaleint64 stringteam_average_saleThe team's average sale over the period, to compare with theirs.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/GetMyPerformance \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"from": "",
"to": "",
"currency": "TZS",
"totals": {
"salesCount": 1,
"sales": "0",
"averageSale": "0",
"itemsSold": "0",
"tips": "0",
"refundsCount": 1,
"refunds": "0",
"workedMinutes": "0",
"scheduledMinutes": "0",
"overtimeMinutes": "0",
"shiftsWorked": 0,
"lateCount": 1,
"onTimePercent": 0,
"salesPerHour": "0"
},
"previous": {
"salesCount": 1,
"sales": "0",
"averageSale": "0",
"itemsSold": "0",
"tips": "0",
"refundsCount": 1,
"refunds": "0",
"workedMinutes": "0",
"scheduledMinutes": "0",
"overtimeMinutes": "0",
"shiftsWorked": 0,
"lateCount": 1,
"onTimePercent": 0,
"salesPerHour": "0"
},
"days": [
{
"date": "2026-12-05",
"sales": "0",
"salesCount": 1,
"workedMinutes": "0"
}
],
"topItems": [
{
"name": "Amina Mushi",
"quantity": 1,
"sales": "0"
}
],
"rank": 0,
"teamSize": 0,
"teamAverageSale": "0"
}ListNamedShifts#
Named shifts (ADR 116): the parts of a location's trading day, such as "Morning" 06:00-14:00 or "Night" 22:00-06:00, each with its own team. Every sale belongs to one shift occurrence; the sales report adds them up by shift (OrdersService.GetSalesReport, filter.named_shift_ids). Listing takes shifts.manage or shifts.reports; saving and archiving take shifts.manage. Registers get them through the change feed.
Request body
locationIdstringlocation_idEmpty for every location the caller can see.
includeArchivedbooleaninclude_archivedResponse
shiftsNamedShift[]The shift running now at each location that has one, by location id, and the date its occurrence started.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListNamedShifts \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"shifts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"code": "",
"color": "",
"startMinute": 0,
"endMinute": 0,
"days": [
0
],
"teamMemberIds": [
""
],
"earlyClockInMinutes": 0,
"lateGraceMinutes": 0,
"sort": 0,
"archived": false,
"updatedAt": "2026-12-05"
}
],
"current": {
"key": {
"namedShiftId": "",
"shiftDate": "2026-12-05"
}
}
}SaveNamedShift#
SaveNamedShift creates or updates a shift. Shifts at a location may not overlap on any day unless the schedule settings allow it. A new shift also files the location's sales of the last 90 days that belong to no shift yet, so its reports start full.
Request body
shiftNamedShiftResponse
shiftNamedShiftsalesAttributedintegersales_attributedPast sales filed under it when it was created.
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveNamedShift \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"shift": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"days": [
0
],
"teamMemberIds": [
""
],
"updatedAt": "2026-12-05"
}
}'{
"shift": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"code": "",
"color": "",
"startMinute": 0,
"endMinute": 0,
"days": [
0
],
"teamMemberIds": [
""
],
"earlyClockInMinutes": 0,
"lateGraceMinutes": 0,
"sort": 0,
"archived": false,
"updatedAt": "2026-12-05"
},
"salesAttributed": 0
}ArchiveNamedShift#
ArchiveNamedShift stops a shift, or brings it back. Its sales keep it.
Request body
idstringarchivedbooleanFalse brings it back.
Response
shiftNamedShiftcurl https://api.buziin.tech/holygrail.team.v1.TeamService/ArchiveNamedShift \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"shift": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"code": "",
"color": "",
"startMinute": 0,
"endMinute": 0,
"days": [
0
],
"teamMemberIds": [
""
],
"earlyClockInMinutes": 0,
"lateGraceMinutes": 0,
"sort": 0,
"archived": false,
"updatedAt": "2026-12-05"
}
}GetShiftAttendance#
GetShiftAttendance is each occurrence of named shifts over local dates: who was assigned, who clocked in against it, when, and who was late, absent or worked it without being assigned.
Request body
locationIdstringlocation_idfromstringLocal dates the occurrences started, YYYY-MM-DD, both included.
tostringnamedShiftIdsstring[]named_shift_idsEmpty for every shift at the location.
Response
occurrencesShiftOccurrence[]currencyCodestringcurrency_codecurl https://api.buziin.tech/holygrail.team.v1.TeamService/GetShiftAttendance \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"namedShiftIds": [
""
]
}'{
"occurrences": [
{
"namedShiftId": "",
"name": "Amina Mushi",
"date": "2026-12-05",
"startsAt": "",
"endsAt": "",
"assigned": 0,
"present": 0,
"late": 0,
"absent": 0,
"workedMinutes": "0",
"laborCost": "150000",
"orders": 0,
"sales": "0"
}
],
"currencyCode": "TZS"
}ListShiftRuns#
Shift runs (ADR 117): a shift someone started on the register stays open across clock-ins and clock-outs until they end it. Registers start and end them through sync. ListShiftRuns takes shifts.manage or shifts.reports; EndShiftRun (for one left open) takes shifts.manage and clocks the person out too.
Request body
locationIdstringlocation_idfromstringShifts started in [from, to) (RFC 3339), plus every one still open.
tostringResponse
runsShiftRun[]curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListShiftRuns \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"runs": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"deviceId": "",
"namedShiftId": "",
"shiftDate": "2026-12-05",
"startedAt": "",
"endedAt": "",
"endedBy": "",
"fullName": "Amina Mushi"
}
]
}curl https://api.buziin.tech/holygrail.team.v1.TeamService/EndShiftRun \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"run": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"teamMemberId": "",
"deviceId": "",
"namedShiftId": "",
"shiftDate": "2026-12-05",
"startedAt": "",
"endedAt": "",
"endedBy": "",
"fullName": "Amina Mushi"
}
}Types
The messages and enums these methods use. Field names are lowerCamelCase in JSON; the snake_case names work too. Enum values are sent as their names.
ListTeamRequest
holygrail.team.v1.ListTeamRequest
No fields.
ListTeamResponse
holygrail.team.v1.ListTeamResponse
membersTeamMember[]rolesTeamRole[]positionsPosition[]Positions not archived.
CreateTeamMemberRequest
holygrail.team.v1.CreateTeamMemberRequest
memberTeamMemberInputpasscodestringEmpty picks a random one.
invitebooleanEmail them a link to sign in to the dashboard; needs an email.
CreateTeamMemberResponse
holygrail.team.v1.CreateTeamMemberResponse
memberTeamMemberpasscodestringThe passcode to tell them; it is not shown again.
inviteUrlstringinvite_urlWhen invited: the link that was emailed, to share another way if needed.
SetTeamMemberActiveRequest
holygrail.team.v1.SetTeamMemberActiveRequest
idstringactivebooleanSetPasscodeRequest
holygrail.team.v1.SetPasscodeRequest
teamMemberIdstringteam_member_idpasscodestringFour digits; empty for a random one.
SetPasscodeResponse
holygrail.team.v1.SetPasscodeResponse
passcodestringInviteTeamMemberRequest
holygrail.team.v1.InviteTeamMemberRequest
teamMemberIdstringteam_member_idInviteTeamMemberResponse
holygrail.team.v1.InviteTeamMemberResponse
inviteUrlstringinvite_urlDeleteRoleRequest
holygrail.team.v1.DeleteRoleRequest
idstringDeleteRoleResponse
holygrail.team.v1.DeleteRoleResponse
No fields.
ExportTeamRequest
holygrail.team.v1.ExportTeamRequest
locationIdstringlocation_idExportTeamResponse
holygrail.team.v1.ExportTeamResponse
membersTeamMember[]timecardsTimecard[]Open timecards at the location.
shiftsScheduledShift[]cursorint64 stringpositionsPosition[]announcementsAnnouncement[]Announcements still showing.
Time off that is pending or not over yet, for the location's team.
Shift changes still waiting at the location.
availabilityAvailability[]The location's named shifts, archived ones too.
Shift runs at the location still open, and those ended in the last day.
ListShiftsRequest
holygrail.team.v1.ListShiftsRequest
locationIdstringlocation_idfromstringRFC 3339 instants: shifts that start in [from, to).
tostringSaveShiftRequest
holygrail.team.v1.SaveShiftRequest
shiftScheduledShiftEmpty id makes a new shift. Changing a published shift keeps it published.
DeleteShiftRequest
holygrail.team.v1.DeleteShiftRequest
idstringDeleteShiftResponse
holygrail.team.v1.DeleteShiftResponse
No fields.
PublishShiftsRequest
holygrail.team.v1.PublishShiftsRequest
locationIdstringlocation_idfromstringtostringPublishShiftsResponse
holygrail.team.v1.PublishShiftsResponse
publishedintegerCopyShiftsRequest
holygrail.team.v1.CopyShiftsRequest
locationIdstringlocation_idfromWeekstringfrom_weekRFC 3339: the start of the week to copy, and of the week to copy into.
toWeekstringto_weekCopyShiftsResponse
holygrail.team.v1.CopyShiftsResponse
copiedintegerskippedintegerListTimecardsRequest
holygrail.team.v1.ListTimecardsRequest
locationIdstringlocation_idfromstringRFC 3339: timecards clocked in during [from, to).
tostringteamMemberIdstringteam_member_idEmpty for everyone.
SaveTimecardRequest
holygrail.team.v1.SaveTimecardRequest
timecardTimecardEmpty id adds a missed timecard.
GetShiftReportRequest
holygrail.team.v1.GetShiftReportRequest
locationIdstringlocation_idfromstringLocal dates, YYYY-MM-DD, inclusive.
tostringGetShiftReportResponse
holygrail.team.v1.GetShiftReportResponse
rowsShiftReportRow[]timecardsTimecardRow[]totalShiftReportRowcurrencyCodestringcurrency_codeGetScheduleRequest
holygrail.team.v1.GetScheduleRequest
locationIdstringlocation_idfromstringRFC 3339 instants: shifts that start in [from, to).
tostringGetScheduleResponse
holygrail.team.v1.GetScheduleResponse
shiftsScheduledShift[]warningsShiftWarning[]Pending and approved time off overlapping the range.
availabilityAvailability[]requestsShiftRequest[]Shift changes waiting for a teammate or a manager.
daysScheduleDay[]settingsScheduleSettingscurrencyCodestringcurrency_codetimeZonestringtime_zoneGetScheduleSettingsRequest
holygrail.team.v1.GetScheduleSettingsRequest
No fields.
ArchivePositionRequest
holygrail.team.v1.ArchivePositionRequest
idstringArchivePositionResponse
holygrail.team.v1.ArchivePositionResponse
No fields.
ListStaffingRulesRequest
holygrail.team.v1.ListStaffingRulesRequest
locationIdstringlocation_idListStaffingRulesResponse
holygrail.team.v1.ListStaffingRulesResponse
rulesStaffingRule[]Every active position, with its rule or defaults (saved false).
SaveStaffingRulesRequest
holygrail.team.v1.SaveStaffingRulesRequest
locationIdstringlocation_idrulesStaffingRule[]The rules to keep; positions left out have none.
ListAvailabilityRequest
holygrail.team.v1.ListAvailabilityRequest
No fields.
SaveAvailabilityRequest
holygrail.team.v1.SaveAvailabilityRequest
availabilityAvailabilityteam_member_id empty for your own.
maxWeeklyMinutesintegermax_weekly_minutesWhen set, also changes the most they want to work in a week (minutes; -1 leaves it as it is).
ListTimeOffRequest
holygrail.team.v1.ListTimeOffRequest
locationIdstringlocation_idEmpty for all locations; else people who work there.
fromstringRFC 3339: requests overlapping [from, to). Empty for everything pending and from now on.
tostringstatusstringEmpty for any.
teamMemberIdstringteam_member_idRequestTimeOffRequest
holygrail.team.v1.RequestTimeOffRequest
requestTimeOffRequestteam_member_id empty for your own. Someone with shifts.approve may ask for someone else, and approve it at once.
approvebooleanCancelTimeOffRequest
holygrail.team.v1.CancelTimeOffRequest
idstringDecideTimeOffRequest
holygrail.team.v1.DecideTimeOffRequest
idstringapprovebooleannotestringListShiftRequestsRequest
holygrail.team.v1.ListShiftRequestsRequest
locationIdstringlocation_idEmpty for all locations.
statusstringEmpty for any.
RequestShiftChangeRequest
holygrail.team.v1.RequestShiftChangeRequest
requestShiftRequestteam_member_id empty for your own.
RespondShiftChangeRequest
holygrail.team.v1.RespondShiftChangeRequest
idstringacceptbooleanCancelShiftChangeRequest
holygrail.team.v1.CancelShiftChangeRequest
idstringDecideShiftChangeRequest
holygrail.team.v1.DecideShiftChangeRequest
idstringapprovebooleannotestringListAnnouncementsRequest
holygrail.team.v1.ListAnnouncementsRequest
includeArchivedbooleaninclude_archivedSaveAnnouncementRequest
holygrail.team.v1.SaveAnnouncementRequest
announcementAnnouncementEmpty id posts a new one.
ArchiveAnnouncementRequest
holygrail.team.v1.ArchiveAnnouncementRequest
idstringArchiveAnnouncementResponse
holygrail.team.v1.ArchiveAnnouncementResponse
No fields.
AcknowledgeAnnouncementRequest
holygrail.team.v1.AcknowledgeAnnouncementRequest
idstringAcknowledgeAnnouncementResponse
holygrail.team.v1.AcknowledgeAnnouncementResponse
No fields.
ApproveTimecardsRequest
holygrail.team.v1.ApproveTimecardsRequest
idsstring[]approvebooleanFalse takes approval back.
ApproveTimecardsResponse
holygrail.team.v1.ApproveTimecardsResponse
changedintegerskippedintegerTimecards still open are skipped.
GetMyScheduleRequest
holygrail.team.v1.GetMyScheduleRequest
fromstringRFC 3339; empty for today to four weeks ahead.
tostringGetMyScheduleResponse
holygrail.team.v1.GetMyScheduleResponse
memberTeamMembershiftsScheduledShift[]Published open shifts at their locations they could take.
Shifts of teammates they could swap with or that a request is about.
requestsShiftRequest[]availabilityAvailabilityannouncementsAnnouncement[]timecardsMyTimecard[]positionsPosition[]memberNamesmap<string, string>member_namesNames of teammates and locations it mentions.
locationNamesmap<string, string>location_namessettingsScheduleSettingsNamed shifts they are assigned to, at their locations.
ClockSelfRequest
holygrail.team.v1.ClockSelfRequest
actionstring"in", "out", "break_start" or "break_end".
locationIdstringlocation_idWhere they clock in; empty for the location of their shift now, or their only location. Ignored for the other actions.
notestringnamedShiftIdstringnamed_shift_idThe named shift they clock in against; empty for the one running now (or about to start) at the location.
ClockSelfResponse
holygrail.team.v1.ClockSelfResponse
timecardMyTimecardThe timecard as it is now; closed after "out".
GetMyPerformanceRequest
holygrail.team.v1.GetMyPerformanceRequest
fromstringLocal dates, YYYY-MM-DD, both included; empty for the last 7 days.
tostringGetMyPerformanceResponse
holygrail.team.v1.GetMyPerformanceResponse
fromstringtostringcurrencystringtotalsPerformanceTotalspreviousPerformanceTotalsThe same length of time just before, for the arrows.
daysPerformanceDay[]rankintegerWhere their sales put them among teammates at their locations, 1 for the most; 0 when nobody sold.
teamSizeintegerteam_sizeteamAverageSaleint64 stringteam_average_saleThe team's average sale over the period, to compare with theirs.
ListNamedShiftsRequest
holygrail.team.v1.ListNamedShiftsRequest
locationIdstringlocation_idEmpty for every location the caller can see.
includeArchivedbooleaninclude_archivedListNamedShiftsResponse
holygrail.team.v1.ListNamedShiftsResponse
shiftsNamedShift[]The shift running now at each location that has one, by location id, and the date its occurrence started.
SaveNamedShiftResponse
holygrail.team.v1.SaveNamedShiftResponse
shiftNamedShiftsalesAttributedintegersales_attributedPast sales filed under it when it was created.
ArchiveNamedShiftRequest
holygrail.team.v1.ArchiveNamedShiftRequest
idstringarchivedbooleanFalse brings it back.
GetShiftAttendanceRequest
holygrail.team.v1.GetShiftAttendanceRequest
locationIdstringlocation_idfromstringLocal dates the occurrences started, YYYY-MM-DD, both included.
tostringnamedShiftIdsstring[]named_shift_idsEmpty for every shift at the location.
GetShiftAttendanceResponse
holygrail.team.v1.GetShiftAttendanceResponse
occurrencesShiftOccurrence[]currencyCodestringcurrency_codeListShiftRunsRequest
holygrail.team.v1.ListShiftRunsRequest
locationIdstringlocation_idfromstringShifts started in [from, to) (RFC 3339), plus every one still open.
tostringEndShiftRunRequest
holygrail.team.v1.EndShiftRunRequest
idstringTeamMember
holygrail.team.v1.TeamMember
TeamMember is someone who works at the business. Registers receive the team through the change feed, with the passcode check (salt and hash); the dashboard never sees those.
idstringfullNamestringfull_nameemailstringphonestringroleIdstringrole_idroleNamestringrole_nameThe role's name and permissions, so a register can check them offline.
permissionsstring[]locationIdsstring[]location_idsEmpty means every location.
hourlyRateint64 stringhourly_ratePay per hour in minor units.
colorstring"#rrggbb" for the schedule and the register.
activebooleanhasPasscodebooleanhas_passcodehasLoginbooleanhas_loginWhether they can sign in to the dashboard, and whether an invitation is waiting for them.
invitedbooleanpasscodeSaltstringpasscode_saltThe register checks a passcode p as hex(sha256(salt + ":" + p)) == hash. Set only in the change feed and ExportTeam.
passcodeHashstringpasscode_hashownerbooleanWhether this is an owner; owners can do everything.
updatedAtstringupdated_atpositionIdsstring[]position_idsThe positions they can work, for the schedule.
maxWeeklyMinutesintegermax_weekly_minutesThe most they want to work in a week, in minutes; 0 for no limit.
TeamRole
holygrail.team.v1.TeamRole
idstringsystemKeystringsystem_keyowner, manager, cashier or staff for the roles every business has; empty for the business's own.
namestringdescriptionstringpermissionsstring[]The Owner role lists every permission there is.
memberCountintegermember_countPosition
holygrail.team.v1.Position
idstringnamestringcolorstring"#rrggbb".
sortintegerarchivedbooleanTeamMemberInput
holygrail.team.v1.TeamMemberInput
fullNamestringfull_nameemailstringphonestringroleIdstringrole_idlocationIdsstring[]location_idsEmpty for every location.
hourlyRateint64 stringhourly_ratecolorstringpositionIdsstring[]position_idsmaxWeeklyMinutesintegermax_weekly_minutesRoleInput
holygrail.team.v1.RoleInput
namestringdescriptionstringpermissionsstring[]Timecard
holygrail.team.v1.Timecard
Timecard is time someone clocked at a location. A register pushes it when they clock in and again as it changes; it is the register's until a manager edits it on the dashboard.
idstringlocationIdstringlocation_idteamMemberIdstringteam_member_iddeviceIdstringdevice_idshiftIdstringshift_idThe scheduled shift it is for, if any.
clockInAtstringclock_in_atclockOutAtstringclock_out_atEmpty while clocked in.
breaksBreak[]notestringeditedBystringedited_bySet by the server: who last edited it on the dashboard, and when.
editedAtstringedited_atapprovedBystringapproved_byApproved for payroll, by whom and when; it no longer changes.
approvedAtstringapproved_atnamedShiftIdstringnamed_shift_idThe named shift they clocked in against (ADR 116); the server fills it from the clock when the register leaves it empty. Sales they ring up while clocked in belong to it.
shiftDatestringshift_dateSet by the server: the date the shift occurrence started, YYYY-MM-DD.
shiftRunIdstringshift_run_idThe shift run (ADR 117) it belongs to: the shift its owner started and has not ended yet. Its named shift and date come from the run.
ScheduledShift
holygrail.team.v1.ScheduledShift
Shift is a scheduled stretch of work at a location.
idstringlocationIdstringlocation_idteamMemberIdstringteam_member_idEmpty for an open shift anyone can pick up.
startsAtstringstarts_atRFC 3339.
endsAtstringends_atbreakMinutesintegerbreak_minutesUnpaid break time within the shift.
notestringpublishedbooleanremovedbooleanFeed only: the shift was deleted or unpublished.
positionIdstringposition_idThe position they work, if any.
sourcestringmanual, or forecast for an unpublished draft made from the demand forecast (ADR 56).
Announcement
holygrail.team.v1.Announcement
idstringtitlestringbodystringlocationIdsstring[]location_idsEmpty for every location.
pinnedbooleanrequireAckbooleanrequire_ackTeam members are asked to confirm they read it.
publishedAtstringpublished_atexpiresAtstringexpires_atEmpty for no end.
authorNamestringauthor_namearchivedbooleanacknowledgedMemberIdsstring[]acknowledged_member_idsWho confirmed they read it.
audienceintegerHow many people it is for (dashboard only).
TimeOffRequest
holygrail.team.v1.TimeOffRequest
idstringteamMemberIdstringteam_member_idkindstring"vacation", "sick", "personal", "unpaid" or "other".
startsAtstringstarts_atRFC 3339. A whole-day request runs from the first day's midnight to the midnight after its last day, local time.
endsAtstringends_atallDaybooleanall_daynotestringstatusstring"pending", "approved", "denied" or "cancelled".
minutesint64 stringPaid minutes it counts for: eight hours a whole day, else its length; 0 when unpaid.
decidedBystringdecided_bySet by the server.
decidedAtstringdecided_atdecisionNotestringdecision_notecreatedAtstringcreated_atshortNoticebooleanshort_noticeAsked for later than the schedule settings' notice.
ShiftRequest
holygrail.team.v1.ShiftRequest
idstringlocationIdstringlocation_idkindstring"pickup" an open shift, "drop" your own, "give" yours to target_member_id, or "swap" yours for target_shift_id.
shiftIdstringshift_idteamMemberIdstringteam_member_idWho asked.
targetMemberIdstringtarget_member_idtargetShiftIdstringtarget_shift_idnotestringstatusstring"pending" (with the teammate or a manager), "approved", "denied", "declined" (by the teammate) or "cancelled".
peerStatusstringpeer_statusFor give and swap: "waiting", "accepted" or "declined".
decidedBystringdecided_bydecidedAtstringdecided_atdecisionNotestringdecision_notecreatedAtstringcreated_atshiftScheduledShiftThe shifts as they were asked about, for showing.
Availability
holygrail.team.v1.Availability
Availability is one team member's week. Registers push it whole when someone changes their own.
idstringSame as team_member_id.
teamMemberIdstringteam_member_idwindowsAvailabilityWindow[]notestringupdatedAtstringupdated_atNamedShift
holygrail.team.v1.NamedShift
idstringlocationIdstringlocation_idnamestringcodestringShort label, at most 8 characters ("AM").
colorstring"#rrggbb".
startMinuteintegerstart_minuteMinutes after local midnight. An end at or before the start runs into the next day; equal start and end is a 24-hour shift.
endMinuteintegerend_minutedaysinteger[]Weekdays it starts on, 0 Sunday ... 6 Saturday; empty for every day.
teamMemberIdsstring[]team_member_idsThe team members assigned to it.
earlyClockInMinutesintegerearly_clock_in_minutesHow early someone may clock in against it, and after how many minutes past the start a clock-in is late.
lateGraceMinutesintegerlate_grace_minutessortintegerarchivedbooleanupdatedAtstringupdated_atShiftRun
holygrail.team.v1.ShiftRun
ShiftRun is a shift someone works: started on the register, open across clock-ins and clock-outs, and ended by them (or a manager).
idstringlocationIdstringlocation_idteamMemberIdstringteam_member_iddeviceIdstringdevice_idnamedShiftIdstringnamed_shift_idThe named shift it works, if any; the server fills it from the clock when the register leaves it empty.
shiftDatestringshift_dateSet by the server: the date the named shift occurrence started.
startedAtstringstarted_atendedAtstringended_atEmpty while the shift is open.
endedBystringended_bySet by the server when a manager ended it on the dashboard.
fullNamestringfull_nameSet by the server in lists: their name.
ShiftReportRow
holygrail.team.v1.ShiftReportRow
teamMemberIdstringteam_member_idfullNamestringfull_nameroleNamestringrole_nameshiftsintegerscheduledMinutesint64 stringscheduled_minutesworkedMinutesint64 stringworked_minutesbreakMinutesint64 stringbreak_minutesovertimeMinutesint64 stringovertime_minuteslateintegerClock-ins more than 5 minutes after their shift started.
laborCostint64 stringlabor_costPay: worked hours at the hourly rate, overtime at 1.5 times.
ordersintegerCompleted orders they rang up, and what they sold (totals, tax included).
salesint64 stringrefundsint64 stringtipsint64 stringtimeOffMinutesint64 stringtime_off_minutesApproved paid time off in the dates, paid at the hourly rate and counted in labor_cost.
TimecardRow
holygrail.team.v1.TimecardRow
TimecardRow is one timecard with what was sold during it.
timecardTimecardfullNamestringfull_nameworkedMinutesint64 stringworked_minutesbreakMinutesint64 stringbreak_minutesscheduledStartstringscheduled_startThe scheduled shift's times, if it had one.
scheduledEndstringscheduled_endlateMinutesintegerlate_minutesordersintegersalesint64 stringtipsint64 stringShiftWarning
holygrail.team.v1.ShiftWarning
shiftIdstringshift_idcodestring"time_off", "time_off_pending", "unavailable", "overtime", "max_hours", "rest", "location", "inactive".
messagestringScheduleDay
holygrail.team.v1.ScheduleDay
datestringYYYY-MM-DD at the location.
forecastSalesint64 stringforecast_salesThe demand forecast's net sales for the day (ADR 56), or, where there is none, the average on this weekday over the last four weeks.
scheduledMinutesint64 stringscheduled_minuteslaborCostint64 stringlabor_costshiftsintegeropenShiftsintegeropen_shiftsforecastOrdersint64 stringforecast_ordersThe forecast's orders and why, when the demand forecast covers the day.
forecastBasisstringforecast_basisScheduleSettings
holygrail.team.v1.ScheduleSettings
pickupsNeedApprovalbooleanpickups_need_approvalWhether picking up an open shift, and swaps or handing a shift to a teammate, need a manager's approval.
swapsNeedApprovalbooleanswaps_need_approvalminRestMinutesintegermin_rest_minutesWarn when someone has less rest than this between shifts.
weeklyOvertimeMinutesintegerweekly_overtime_minutesHours past this in a week are overtime, in reports and warnings.
timeOffNoticeDaysintegertime_off_notice_daysDays ahead time off should be asked for; later requests are flagged.
lateGraceMinutesintegerlate_grace_minutesMinutes after a shift's start that a clock-in counts as late.
mobileClockInbooleanmobile_clock_inWhether team members may clock in and out from the staff app.
namedShiftsOverlapbooleannamed_shifts_overlapWhether named shifts at a location may overlap (ADR 116). Off, every sale belongs to the one shift running; on, a sale the seller did not clock in for goes to the overlapping shift they are assigned to.
StaffingRule
holygrail.team.v1.StaffingRule
StaffingRule is how many people one position needs at a location: never fewer than min_staff while open, and enough that each handles at most orders_per_hour orders an hour (0 for no such rule). Lead and tail are minutes on before the first and after the last busy hour.
positionIdstringposition_idpositionNamestringposition_nameminStaffintegermin_staffordersPerHourintegerorders_per_hourleadMinutesintegerlead_minutestailMinutesintegertail_minutessuggestedOrdersPerHourintegersuggested_orders_per_hourRead only: orders per person per hour on this position's shifts over the last four weeks; 0 when there were none.
savedbooleanRead only: false for a position with no saved rule, shown with defaults.
PerformanceTotals
holygrail.team.v1.PerformanceTotals
salesCountintegersales_countCompleted sales they rang up: count, total, and the average sale.
salesint64 stringaverageSaleint64 stringaverage_saleitemsSoldint64 stringitems_soldtipsint64 stringrefundsCountintegerrefunds_countrefundsint64 stringworkedMinutesint64 stringworked_minutesscheduledMinutesint64 stringscheduled_minutesovertimeMinutesint64 stringovertime_minutesshiftsWorkedintegershifts_workedlateCountintegerlate_countShifts clocked in after the grace period.
onTimePercentintegeron_time_percentShare of shifts clocked in on time, 0 to 100; -1 with no shifts.
salesPerHourint64 stringsales_per_hourSales per hour worked.
PerformanceDay
holygrail.team.v1.PerformanceDay
datestringYYYY-MM-DD.
salesint64 stringsalesCountintegersales_countworkedMinutesint64 stringworked_minutesPerformanceItem
holygrail.team.v1.PerformanceItem
namestringquantityint64 stringsalesint64 stringCurrentNamedShift
holygrail.team.v1.CurrentNamedShift
namedShiftIdstringnamed_shift_idshiftDatestringshift_dateShiftOccurrence
holygrail.team.v1.ShiftOccurrence
namedShiftIdstringnamed_shift_idnamestringdatestringThe date it started, YYYY-MM-DD, and its start and end (RFC 3339).
startsAtstringstarts_atendsAtstringends_atattendeesShiftAttendee[]assignedintegerpresentintegerlateintegerabsentintegerworkedMinutesint64 stringworked_minuteslaborCostint64 stringlabor_costPay for the time worked, at each person's hourly rate.
ordersintegerCompleted sales filed under the occurrence (totals, tax included).
salesint64 stringPermission
holygrail.team.v1.Permission
keystringlabelstringdescriptionstringBreak
holygrail.team.v1.Break
startAtstringstart_atendAtstringend_atEmpty while on break.
AvailabilityWindow
holygrail.team.v1.AvailabilityWindow
AvailabilityWindow is a stretch of a weekday, in the location's local time. Outside any window, someone counts as available.
weekdayinteger1 Monday to 7 Sunday.
startstring"HH:MM"; end "24:00" for the rest of the day.
endstringkindstring"unavailable" or "preferred".
ShiftAttendee
holygrail.team.v1.ShiftAttendee
teamMemberIdstringteam_member_idfullNamestringfull_nameassignedbooleanstatusstring"on_time", "late", "absent" (assigned, never clocked in), "unassigned" (clocked in against it without being assigned), or "upcoming".
clockInAtstringclock_in_atFirst clock-in and last clock-out against the occurrence (RFC 3339).
clockOutAtstringclock_out_atworkedMinutesint64 stringworked_minuteslateMinutesintegerlate_minutesMinutes after the start (past the grace) they clocked in.
ordersintegerCompleted sales they rang up in the occurrence.
salesint64 stringBase URL https://api.buziin.tech. Every method is POST with a JSON body; see Making requests.