Appointments
AppointmentsService books services with a member of staff, and with a resource (a chair, a room) when the service needs one.
Staff and resources are changed through SyncService with field-by-field patches, like the floor plan. Bookings are not: a slot can be sold only once, so they are made and changed here, on the server, which refuses a booking that overlaps another for the same person or resource. Bookings reach the location's registers through the change feed, so a register that loses its connection still shows the day and can check people in at the sale.
GetTeam#
GetTeam returns a location's staff and resources, archived ones included, with the feed cursor to pull from afterwards.
Request body
locationIdstringlocation_idResponse
curl https://api.buziin.tech/holygrail.appointments.v1.AppointmentsService/GetTeam \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"staff": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"color": "",
"archived": false,
"teamMemberId": ""
}
],
"resources": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"archived": false
}
],
"cursor": "0"
}GetAvailability#
GetAvailability lists the times a service can start on one day.
Request body
locationIdstringlocation_idvariantIdstringvariant_idThe service: an item variant whose item is a service with a duration.
datestringA day in the location's time zone, YYYY-MM-DD.
staffIdstringstaff_idOnly this person; empty for anyone who does the service.
Response
curl https://api.buziin.tech/holygrail.appointments.v1.AppointmentsService/GetAvailability \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"date": "2026-12-05"
}'{
"slots": [
{
"startsAt": "",
"staffIds": [
""
]
}
],
"durationMinutes": 0,
"timezone": "Africa/Dar_es_Salaam"
}ListBookings#
ListBookings returns the bookings that overlap a time range.
Request body
locationIdstringlocation_idfromstringRFC 3339; bookings that overlap [from, to).
tostringincludeCancelledbooleaninclude_cancelledCancelled bookings are left out unless asked for.
Response
bookingsBooking[]cursorint64 stringcurl https://api.buziin.tech/holygrail.appointments.v1.AppointmentsService/ListBookings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"bookings": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "BOOKING_KIND_APPOINTMENT",
"status": "BOOKING_STATUS_BOOKED",
"source": "BOOKING_SOURCE_REGISTER",
"staffId": "",
"resourceId": "",
"itemId": "",
"variantId": "",
"serviceName": "Amina Mushi",
"price": "150000",
"startsAt": "",
"endsAt": "",
"customerId": "",
"customerName": "Amina Mushi",
"note": "",
"orderId": "",
"createdAt": "",
"statusAt": "",
"deposit": "0",
"depositStatus": "DEPOSIT_STATUS_NONE",
"customerEmail": "amina@example.co.tz",
"customerPhone": "+255712345678",
"jobId": ""
}
],
"cursor": "0"
}CreateBooking#
Request body
idstringChosen by the caller, so a retry does not book twice.
locationIdstringlocation_idkindBookingKindvariantIdstringvariant_idFor an appointment: the service.
staffIdstringstaff_idEmpty for whoever is free, among those who do the service.
startsAtstringstarts_atendsAtstringends_atFor a block only; an appointment lasts as long as its service.
customerIdstringcustomer_idcustomerNamestringcustomer_namenotestringsourceBookingSourceRegister or dashboard; online bookings come through the booking page.
Response
bookingBookingcurl https://api.buziin.tech/holygrail.appointments.v1.AppointmentsService/CreateBooking \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "BOOKING_KIND_APPOINTMENT",
"customerName": "Amina Mushi",
"source": "BOOKING_SOURCE_REGISTER"
}'{
"booking": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "BOOKING_KIND_APPOINTMENT",
"status": "BOOKING_STATUS_BOOKED",
"source": "BOOKING_SOURCE_REGISTER",
"staffId": "",
"resourceId": "",
"itemId": "",
"variantId": "",
"serviceName": "Amina Mushi",
"price": "150000",
"startsAt": "",
"endsAt": "",
"customerId": "",
"customerName": "Amina Mushi",
"note": "",
"orderId": "",
"createdAt": "",
"statusAt": "",
"deposit": "0",
"depositStatus": "DEPOSIT_STATUS_NONE",
"customerEmail": "amina@example.co.tz",
"customerPhone": "+255712345678",
"jobId": ""
}
}RescheduleBooking#
RescheduleBooking moves a booking to another time or person.
Request body
idstringstartsAtstringstarts_atstaffIdstringstaff_idEmpty to keep the same person.
Response
bookingBookingcurl https://api.buziin.tech/holygrail.appointments.v1.AppointmentsService/RescheduleBooking \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"booking": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "BOOKING_KIND_APPOINTMENT",
"status": "BOOKING_STATUS_BOOKED",
"source": "BOOKING_SOURCE_REGISTER",
"staffId": "",
"resourceId": "",
"itemId": "",
"variantId": "",
"serviceName": "Amina Mushi",
"price": "150000",
"startsAt": "",
"endsAt": "",
"customerId": "",
"customerName": "Amina Mushi",
"note": "",
"orderId": "",
"createdAt": "",
"statusAt": "",
"deposit": "0",
"depositStatus": "DEPOSIT_STATUS_NONE",
"customerEmail": "amina@example.co.tz",
"customerPhone": "+255712345678",
"jobId": ""
}
}SetBookingStatus#
SetBookingStatus checks a customer in, marks a no-show or cancels. A no-show keeps the deposit; a cancellation by staff refunds it.
Request body
idstringstatusBookingStatusResponse
bookingBookingcurl https://api.buziin.tech/holygrail.appointments.v1.AppointmentsService/SetBookingStatus \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"status": "BOOKING_STATUS_BOOKED"
}'{
"booking": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"kind": "BOOKING_KIND_APPOINTMENT",
"status": "BOOKING_STATUS_BOOKED",
"source": "BOOKING_SOURCE_REGISTER",
"staffId": "",
"resourceId": "",
"itemId": "",
"variantId": "",
"serviceName": "Amina Mushi",
"price": "150000",
"startsAt": "",
"endsAt": "",
"customerId": "",
"customerName": "Amina Mushi",
"note": "",
"orderId": "",
"createdAt": "",
"statusAt": "",
"deposit": "0",
"depositStatus": "DEPOSIT_STATUS_NONE",
"customerEmail": "amina@example.co.tz",
"customerPhone": "+255712345678",
"jobId": ""
}
}GetBookingSettings#
Request body
locationIdstringlocation_idResponse
settingsBookingSettingsdepositsAvailablebooleandeposits_availableWhether a payment provider is set up, without which deposits are off.
urlstringThe page's full address.
curl https://api.buziin.tech/holygrail.appointments.v1.AppointmentsService/GetBookingSettings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"settings": {
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"enabled": false,
"slug": "",
"intro": "",
"depositKind": "DEPOSIT_KIND_NONE",
"depositAmount": "150000",
"depositPercent": 0,
"cancelNoticeHours": 0,
"reminderHours": 0,
"leadMinutes": 0,
"maxDaysAhead": 0
},
"depositsAvailable": false,
"url": ""
}UpdateBookingSettings#
Request body
settingsBookingSettingsResponse
settingsBookingSettingsurlstringcurl https://api.buziin.tech/holygrail.appointments.v1.AppointmentsService/UpdateBookingSettings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"settings": {
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"depositKind": "DEPOSIT_KIND_NONE",
"depositAmount": "150000"
}
}'{
"settings": {
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"enabled": false,
"slug": "",
"intro": "",
"depositKind": "DEPOSIT_KIND_NONE",
"depositAmount": "150000",
"depositPercent": 0,
"cancelNoticeHours": 0,
"reminderHours": 0,
"leadMinutes": 0,
"maxDaysAhead": 0
},
"url": ""
}SetStaffTeamMember#
SetStaffTeamMember links a person on the calendar to their team login, so Nuru can draft their shifts from their bookings (ADR 90). An empty team_member_id unlinks them.
Request body
staffIdstringstaff_idteamMemberIdstringteam_member_idResponse
staffStaffMembercurl https://api.buziin.tech/holygrail.appointments.v1.AppointmentsService/SetStaffTeamMember \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"staff": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"color": "",
"archived": false,
"teamMemberId": ""
}
}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.
GetTeamRequest
holygrail.appointments.v1.GetTeamRequest
locationIdstringlocation_idGetTeamResponse
holygrail.appointments.v1.GetTeamResponse
staffStaffMember[]resourcesBookingResource[]cursorint64 stringGetAvailabilityRequest
holygrail.appointments.v1.GetAvailabilityRequest
locationIdstringlocation_idvariantIdstringvariant_idThe service: an item variant whose item is a service with a duration.
datestringA day in the location's time zone, YYYY-MM-DD.
staffIdstringstaff_idOnly this person; empty for anyone who does the service.
GetAvailabilityResponse
holygrail.appointments.v1.GetAvailabilityResponse
slotsSlot[]durationMinutesintegerduration_minutestimezonestringListBookingsRequest
holygrail.appointments.v1.ListBookingsRequest
locationIdstringlocation_idfromstringRFC 3339; bookings that overlap [from, to).
tostringincludeCancelledbooleaninclude_cancelledCancelled bookings are left out unless asked for.
ListBookingsResponse
holygrail.appointments.v1.ListBookingsResponse
bookingsBooking[]cursorint64 stringCreateBookingRequest
holygrail.appointments.v1.CreateBookingRequest
idstringChosen by the caller, so a retry does not book twice.
locationIdstringlocation_idkindBookingKindvariantIdstringvariant_idFor an appointment: the service.
staffIdstringstaff_idEmpty for whoever is free, among those who do the service.
startsAtstringstarts_atendsAtstringends_atFor a block only; an appointment lasts as long as its service.
customerIdstringcustomer_idcustomerNamestringcustomer_namenotestringsourceBookingSourceRegister or dashboard; online bookings come through the booking page.
RescheduleBookingRequest
holygrail.appointments.v1.RescheduleBookingRequest
idstringstartsAtstringstarts_atstaffIdstringstaff_idEmpty to keep the same person.
GetBookingSettingsRequest
holygrail.appointments.v1.GetBookingSettingsRequest
locationIdstringlocation_idGetBookingSettingsResponse
holygrail.appointments.v1.GetBookingSettingsResponse
settingsBookingSettingsdepositsAvailablebooleandeposits_availableWhether a payment provider is set up, without which deposits are off.
urlstringThe page's full address.
UpdateBookingSettingsRequest
holygrail.appointments.v1.UpdateBookingSettingsRequest
settingsBookingSettingsUpdateBookingSettingsResponse
holygrail.appointments.v1.UpdateBookingSettingsResponse
settingsBookingSettingsurlstringSetStaffTeamMemberRequest
holygrail.appointments.v1.SetStaffTeamMemberRequest
staffIdstringstaff_idteamMemberIdstringteam_member_idStaffMember
holygrail.appointments.v1.StaffMember
StaffMember is someone customers book: a stylist, a therapist. They take bookings for their services during their hours.
idstringlocationIdstringlocation_idnamestringcolorstring"#rrggbb", for the calendar.
The services (catalog items) they do.
hoursWeeklyHoursarchivedbooleanteamMemberIdstringteam_member_idThe team member whose shifts follow this person's bookings. Set with SetStaffTeamMember, not through sync.
BookingResource
holygrail.appointments.v1.BookingResource
BookingResource is something a service needs one of: a chair, a treatment room, a wash basin. A service listed by any resource takes one free resource for each booking.
idstringlocationIdstringlocation_idnamestringarchivedbooleanSlot
holygrail.appointments.v1.Slot
startsAtstringstarts_atRFC 3339.
staffIdsstring[]staff_idsWho is free then, in the order the location lists its staff.
Booking
holygrail.appointments.v1.Booking
Booking holds a person (and a resource, when the service needs one) for a stretch of time. Booked, arrived and completed bookings hold their time; cancelled ones and no-shows free it.
idstringlocationIdstringlocation_idkindBookingKindstatusBookingStatussourceBookingSourcestaffIdstringstaff_idresourceIdstringresource_idEmpty when the service needs no resource.
itemIdstringitem_idThe service booked, for an appointment: the item variant sold at the register, its name ("Haircut (Long)") and price when it was booked.
variantIdstringvariant_idserviceNamestringservice_namepriceint64 stringstartsAtstringstarts_atRFC 3339.
endsAtstringends_atcustomerIdstringcustomer_idcustomerNamestringcustomer_nameThe customer's name, or a walk-in's.
notestringorderIdstringorder_idThe sale that paid for it.
createdAtstringcreated_atstatusAtstringstatus_atdepositint64 stringPaid when booking online; taken off the bill at the register.
customerEmailstringcustomer_emailcustomerPhonestringcustomer_phonejobIdstringjob_idFor a visit, the job it is for.
BookingSettings
holygrail.appointments.v1.BookingSettings
BookingSettings are a location's online booking page and its rules.
locationIdstringlocation_idenabledbooleanslugstringThe page's address: <app>/b/<slug>. Lowercase letters, digits and dashes.
introstringA line or two shown at the top of the page.
depositAmountint64 stringdeposit_amountdepositPercentintegerdeposit_percentcancelNoticeHoursintegercancel_notice_hoursCancelling at least this many hours ahead refunds the deposit.
reminderHoursintegerreminder_hoursThe reminder email goes this many hours before; 0 sends none.
leadMinutesintegerlead_minutesHow soon a customer can book, in minutes from now.
maxDaysAheadintegermax_days_aheadHow far ahead, in days.
IdList
holygrail.catalog.v1.IdList
IdList wraps a list of ids so a patch can tell "not changed" from "cleared".
idsstring[]Shift
holygrail.appointments.v1.Shift
Shift is one stretch of working time in a week, in the location's time zone: weekday 0 is Sunday, minutes count from midnight.
weekdayintegerstartMinuteintegerstart_minuteendMinuteintegerend_minuteBookingKind enum
holygrail.appointments.v1.BookingKind
BOOKING_KIND_UNSPECIFIEDBOOKING_KIND_APPOINTMENTA customer booked a service.
BOOKING_KIND_BLOCKTime the person cannot be booked: lunch, a day off.
BOOKING_KIND_VISITA visit for a job: the person's time at the customer's address.
BookingSource enum
holygrail.appointments.v1.BookingSource
BOOKING_SOURCE_UNSPECIFIEDBOOKING_SOURCE_REGISTERBOOKING_SOURCE_DASHBOARDBOOKING_SOURCE_ONLINEBookingStatus enum
holygrail.appointments.v1.BookingStatus
BOOKING_STATUS_UNSPECIFIEDBOOKING_STATUS_BOOKEDBOOKING_STATUS_ARRIVEDThe customer is here.
BOOKING_STATUS_COMPLETEDPaid for at the register, or marked done.
BOOKING_STATUS_CANCELLEDBOOKING_STATUS_NO_SHOWDepositStatus enum
holygrail.appointments.v1.DepositStatus
DEPOSIT_STATUS_UNSPECIFIEDDEPOSIT_STATUS_NONEDEPOSIT_STATUS_PAIDDEPOSIT_STATUS_APPLIEDTaken off the bill at the register.
DEPOSIT_STATUS_REFUNDEDDEPOSIT_STATUS_KEPTKept for a no-show or a late cancellation.
DepositKind enum
holygrail.appointments.v1.DepositKind
DEPOSIT_KIND_UNSPECIFIEDDEPOSIT_KIND_NONEDEPOSIT_KIND_FIXEDA fixed amount per booking, capped at the price.
DEPOSIT_KIND_PERCENTA percentage of the price.
Base URL https://api.buziin.tech. Every method is POST with a JSON body; see Making requests.