Developers
Sign inGet API keys
API reference/Hospitality and services

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.

holygrail.appointments.v1.AppointmentsService9 methodsappointments.read · appointments.write

GetTeam#

appointments.readRead
POST/holygrail.appointments.v1.AppointmentsService/GetTeam

GetTeam returns a location's staff and resources, archived ones included, with the feed cursor to pull from afterwards.

Request body

locationIdstringlocation_id

Response

cursorint64 string
Request
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"
}'
Response example
{
  "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#

appointments.readRead
POST/holygrail.appointments.v1.AppointmentsService/GetAvailability

GetAvailability lists the times a service can start on one day.

Request body

locationIdstringlocation_id
variantIdstringvariant_id

The service: an item variant whose item is a service with a duration.

datestring

A day in the location's time zone, YYYY-MM-DD.

staffIdstringstaff_id

Only this person; empty for anyone who does the service.

Response

slotsSlot[]
durationMinutesintegerduration_minutes
timezonestring
Request
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"
}'
Response example
{
  "slots": [
    {
      "startsAt": "",
      "staffIds": [
        ""
      ]
    }
  ],
  "durationMinutes": 0,
  "timezone": "Africa/Dar_es_Salaam"
}

ListBookings#

appointments.readRead
POST/holygrail.appointments.v1.AppointmentsService/ListBookings

ListBookings returns the bookings that overlap a time range.

Request body

locationIdstringlocation_id
fromstring

RFC 3339; bookings that overlap [from, to).

tostring
includeCancelledbooleaninclude_cancelled

Cancelled bookings are left out unless asked for.

Response

bookingsBooking[]
cursorint64 string
Request
curl 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"
}'
Response example
{
  "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#

appointments.writeWrite
POST/holygrail.appointments.v1.AppointmentsService/CreateBooking

Request body

idstring

Chosen by the caller, so a retry does not book twice.

locationIdstringlocation_id
variantIdstringvariant_id

For an appointment: the service.

staffIdstringstaff_id

Empty for whoever is free, among those who do the service.

startsAtstringstarts_at
endsAtstringends_at

For a block only; an appointment lasts as long as its service.

customerIdstringcustomer_id
customerNamestringcustomer_name
notestring

Register or dashboard; online bookings come through the booking page.

Response

bookingBooking
Request
curl 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"
}'
Response example
{
  "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#

appointments.writeWrite
POST/holygrail.appointments.v1.AppointmentsService/RescheduleBooking

RescheduleBooking moves a booking to another time or person.

Request body

idstring
startsAtstringstarts_at
staffIdstringstaff_id

Empty to keep the same person.

Response

bookingBooking
Request
curl 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"
}'
Response example
{
  "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#

appointments.writeWrite
POST/holygrail.appointments.v1.AppointmentsService/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

idstring

Response

bookingBooking
Request
curl 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"
}'
Response example
{
  "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#

appointments.readRead
POST/holygrail.appointments.v1.AppointmentsService/GetBookingSettings

Request body

locationIdstringlocation_id

Response

depositsAvailablebooleandeposits_available

Whether a payment provider is set up, without which deposits are off.

urlstring

The page's full address.

Request
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"
}'
Response example
{
  "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#

appointments.writeWrite
POST/holygrail.appointments.v1.AppointmentsService/UpdateBookingSettings

Request body

Response

urlstring
Request
curl 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"
  }
}'
Response example
{
  "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#

appointments.writeWrite
POST/holygrail.appointments.v1.AppointmentsService/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_id
teamMemberIdstringteam_member_id

Response

Request
curl https://api.buziin.tech/holygrail.appointments.v1.AppointmentsService/SetStaffTeamMember \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "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_id

GetTeamResponse

holygrail.appointments.v1.GetTeamResponse

cursorint64 string

GetAvailabilityRequest

holygrail.appointments.v1.GetAvailabilityRequest

locationIdstringlocation_id
variantIdstringvariant_id

The service: an item variant whose item is a service with a duration.

datestring

A day in the location's time zone, YYYY-MM-DD.

staffIdstringstaff_id

Only this person; empty for anyone who does the service.

GetAvailabilityResponse

holygrail.appointments.v1.GetAvailabilityResponse

slotsSlot[]
durationMinutesintegerduration_minutes
timezonestring

ListBookingsRequest

holygrail.appointments.v1.ListBookingsRequest

locationIdstringlocation_id
fromstring

RFC 3339; bookings that overlap [from, to).

tostring
includeCancelledbooleaninclude_cancelled

Cancelled bookings are left out unless asked for.

ListBookingsResponse

holygrail.appointments.v1.ListBookingsResponse

bookingsBooking[]
cursorint64 string

CreateBookingRequest

holygrail.appointments.v1.CreateBookingRequest

idstring

Chosen by the caller, so a retry does not book twice.

locationIdstringlocation_id
variantIdstringvariant_id

For an appointment: the service.

staffIdstringstaff_id

Empty for whoever is free, among those who do the service.

startsAtstringstarts_at
endsAtstringends_at

For a block only; an appointment lasts as long as its service.

customerIdstringcustomer_id
customerNamestringcustomer_name
notestring

Register or dashboard; online bookings come through the booking page.

CreateBookingResponse

holygrail.appointments.v1.CreateBookingResponse

bookingBooking

RescheduleBookingRequest

holygrail.appointments.v1.RescheduleBookingRequest

idstring
startsAtstringstarts_at
staffIdstringstaff_id

Empty to keep the same person.

RescheduleBookingResponse

holygrail.appointments.v1.RescheduleBookingResponse

bookingBooking

SetBookingStatusRequest

holygrail.appointments.v1.SetBookingStatusRequest

idstring

SetBookingStatusResponse

holygrail.appointments.v1.SetBookingStatusResponse

bookingBooking

GetBookingSettingsRequest

holygrail.appointments.v1.GetBookingSettingsRequest

locationIdstringlocation_id

GetBookingSettingsResponse

holygrail.appointments.v1.GetBookingSettingsResponse

depositsAvailablebooleandeposits_available

Whether a payment provider is set up, without which deposits are off.

urlstring

The page's full address.

UpdateBookingSettingsRequest

holygrail.appointments.v1.UpdateBookingSettingsRequest

UpdateBookingSettingsResponse

holygrail.appointments.v1.UpdateBookingSettingsResponse

urlstring

SetStaffTeamMemberRequest

holygrail.appointments.v1.SetStaffTeamMemberRequest

staffIdstringstaff_id
teamMemberIdstringteam_member_id

SetStaffTeamMemberResponse

holygrail.appointments.v1.SetStaffTeamMemberResponse

StaffMember

holygrail.appointments.v1.StaffMember

StaffMember is someone customers book: a stylist, a therapist. They take bookings for their services during their hours.

idstring
locationIdstringlocation_id
namestring
colorstring

"#rrggbb", for the calendar.

serviceIdsIdListservice_ids

The services (catalog items) they do.

archivedboolean
teamMemberIdstringteam_member_id

The 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.

idstring
locationIdstringlocation_id
namestring
serviceIdsIdListservice_ids
archivedboolean

Slot

holygrail.appointments.v1.Slot

startsAtstringstarts_at

RFC 3339.

staffIdsstring[]staff_ids

Who 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.

idstring
locationIdstringlocation_id
staffIdstringstaff_id
resourceIdstringresource_id

Empty when the service needs no resource.

itemIdstringitem_id

The service booked, for an appointment: the item variant sold at the register, its name ("Haircut (Long)") and price when it was booked.

variantIdstringvariant_id
serviceNamestringservice_name
priceint64 string
startsAtstringstarts_at

RFC 3339.

endsAtstringends_at
customerIdstringcustomer_id
customerNamestringcustomer_name

The customer's name, or a walk-in's.

notestring
orderIdstringorder_id

The sale that paid for it.

createdAtstringcreated_at
statusAtstringstatus_at
depositint64 string

Paid when booking online; taken off the bill at the register.

depositStatusDepositStatusdeposit_status
customerEmailstringcustomer_email
customerPhonestringcustomer_phone
jobIdstringjob_id

For a visit, the job it is for.

BookingSettings

holygrail.appointments.v1.BookingSettings

BookingSettings are a location's online booking page and its rules.

locationIdstringlocation_id
enabledboolean
slugstring

The page's address: <app>/b/<slug>. Lowercase letters, digits and dashes.

introstring

A line or two shown at the top of the page.

depositKindDepositKinddeposit_kind
depositAmountint64 stringdeposit_amount
depositPercentintegerdeposit_percent
cancelNoticeHoursintegercancel_notice_hours

Cancelling at least this many hours ahead refunds the deposit.

reminderHoursintegerreminder_hours

The reminder email goes this many hours before; 0 sends none.

leadMinutesintegerlead_minutes

How soon a customer can book, in minutes from now.

maxDaysAheadintegermax_days_ahead

How 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[]

WeeklyHours

holygrail.appointments.v1.WeeklyHours

shiftsShift[]

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.

weekdayinteger
startMinuteintegerstart_minute
endMinuteintegerend_minute

BookingKind enum

holygrail.appointments.v1.BookingKind

BOOKING_KIND_UNSPECIFIED
BOOKING_KIND_APPOINTMENT

A customer booked a service.

BOOKING_KIND_BLOCK

Time the person cannot be booked: lunch, a day off.

BOOKING_KIND_VISIT

A visit for a job: the person's time at the customer's address.

BookingSource enum

holygrail.appointments.v1.BookingSource

BOOKING_SOURCE_UNSPECIFIED
BOOKING_SOURCE_REGISTER
BOOKING_SOURCE_DASHBOARD
BOOKING_SOURCE_ONLINE

BookingStatus enum

holygrail.appointments.v1.BookingStatus

BOOKING_STATUS_UNSPECIFIED
BOOKING_STATUS_BOOKED
BOOKING_STATUS_ARRIVED

The customer is here.

BOOKING_STATUS_COMPLETED

Paid for at the register, or marked done.

BOOKING_STATUS_CANCELLED
BOOKING_STATUS_NO_SHOW

DepositStatus enum

holygrail.appointments.v1.DepositStatus

DEPOSIT_STATUS_UNSPECIFIED
DEPOSIT_STATUS_NONE
DEPOSIT_STATUS_PAID
DEPOSIT_STATUS_APPLIED

Taken off the bill at the register.

DEPOSIT_STATUS_REFUNDED
DEPOSIT_STATUS_KEPT

Kept for a no-show or a late cancellation.

DepositKind enum

holygrail.appointments.v1.DepositKind

DEPOSIT_KIND_UNSPECIFIED
DEPOSIT_KIND_NONE
DEPOSIT_KIND_FIXED

A fixed amount per booking, capped at the price.

DEPOSIT_KIND_PERCENT

A percentage of the price.

Base URL https://api.buziin.tech. Every method is POST with a JSON body; see Making requests.