Rooms
HotelService runs a front desk: room types and rooms, reservations on a room board, check-in and check-out, and each stay's folio, the running bill that room nights, charges from the register and payments go on.
Dates are the location's local dates ("2026-10-23"). A stay from arrival to departure is charged one night for each date from arrival up to the day before departure, each night once its date has passed (or at check-out). Amounts are minor units in the organization's currency.
Managers, admins and owners set up rooms; everyone signed in works the front desk.
GetRooms#
GetRooms lists a location's room types and rooms.
Request body
locationIdstringlocation_idResponse
roomsRoom[]curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/GetRooms \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"roomTypes": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"nightlyRate": "0",
"maxGuests": 0,
"taxRateIds": [
""
],
"archived": false
}
],
"rooms": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomTypeId": "",
"number": "",
"housekeeping": "HOUSEKEEPING_CLEAN",
"archived": false,
"note": ""
}
]
}SaveRoomType#
Request body
A new id adds a type.
Response
curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/SaveRoomType \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"roomType": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"taxRateIds": [
""
]
}
}'{
"roomType": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"nightlyRate": "0",
"maxGuests": 0,
"taxRateIds": [
""
],
"archived": false
}
}SaveRoom#
Request body
roomRoomA new id adds a room. Housekeeping is set with SetHousekeeping.
Response
roomRoomcurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/SaveRoom \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"room": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"housekeeping": "HOUSEKEEPING_CLEAN"
}
}'{
"room": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomTypeId": "",
"number": "",
"housekeeping": "HOUSEKEEPING_CLEAN",
"archived": false,
"note": ""
}
}SetHousekeeping#
Request body
roomIdstringroom_idhousekeepingHousekeepingResponse
roomRoomcurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/SetHousekeeping \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"housekeeping": "HOUSEKEEPING_CLEAN"
}'{
"room": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomTypeId": "",
"number": "",
"housekeeping": "HOUSEKEEPING_CLEAN",
"archived": false,
"note": ""
}
}GetHousekeepingPlan#
GetHousekeepingPlan is a day's housekeeping from occupancy (ADR 90): each room's job (turn over a departure, ready an arrival, service a stayover), the supplies to put out, and the minibars to check.
Request body
locationIdstringlocation_iddaystringYYYY-MM-DD; empty for today at the location.
Response
daystringroomsHousekeepingRoom[]departuresintegerarrivalsintegerstayoversintegernotReadyintegernot_readysuppliesSupplyLine[]Stay and turnover kits for today's rooms.
minibarSupplyLine[]The minibar par, for each room to check.
curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/GetHousekeepingPlan \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"day": "",
"rooms": [
{
"roomId": "",
"number": "",
"roomType": "",
"housekeeping": "HOUSEKEEPING_CLEAN",
"job": "",
"arrivingGuest": "",
"departingGuest": "",
"guests": 0,
"notReady": false,
"minibar": false
}
],
"departures": 0,
"arrivals": 0,
"stayovers": 0,
"notReady": 0,
"supplies": [
{
"variantId": "",
"itemName": "Amina Mushi",
"unit": "",
"quantity": 1
}
],
"minibar": [
{
"variantId": "",
"itemName": "Amina Mushi",
"unit": "",
"quantity": 1
}
]
}ListRoomKits#
ListRoomKits and SaveRoomKits are what each room uses: stay, turnover and minibar kits. Saving replaces a location's kits (setup.manage).
Request body
locationIdstringlocation_idResponse
linesRoomKitLine[]curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/ListRoomKits \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"lines": [
{
"roomTypeId": "",
"kind": "",
"variantId": "",
"quantity": 1,
"itemName": "Amina Mushi",
"unit": ""
}
]
}SaveRoomKits#
Request body
locationIdstringlocation_idlinesRoomKitLine[]Response
linesRoomKitLine[]curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/SaveRoomKits \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"lines": [
{
"quantity": 1,
"itemName": "Amina Mushi"
}
]
}'{
"lines": [
{
"roomTypeId": "",
"kind": "",
"variantId": "",
"quantity": 1,
"itemName": "Amina Mushi",
"unit": ""
}
]
}GetRoomBoard#
GetRoomBoard lists the reservations that overlap a range of dates.
Request body
locationIdstringlocation_idfromstringFrom the first date up to, not including, the second.
tostringincludeCancelledbooleaninclude_cancelledAlso cancelled stays, for reports.
Response
reservationsReservation[]todaystringThe location's date today.
curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/GetRoomBoard \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"reservations": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": "",
"status": "RESERVATION_STATUS_BOOKED",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomId": "",
"roomNumber": "",
"roomTypeName": "Amina Mushi",
"customerId": "",
"guestName": "Amina Mushi",
"arrival": "",
"departure": "",
"nights": 0,
"guests": 0,
"rate": "0",
"taxRateIds": [
""
],
"note": "",
"balance": "150000",
"checkedInAt": "",
"checkedOutAt": "",
"createdAt": "",
"guestEmail": "amina@example.co.tz",
"guestPhone": "+255712345678",
"source": ""
}
],
"today": ""
}FindFreeRooms#
FindFreeRooms lists rooms with nothing booked over the dates that take the number of guests.
Request body
locationIdstringlocation_idarrivalstringdeparturestringguestsintegerResponse
roomsRoom[]curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/FindFreeRooms \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"rooms": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomTypeId": "",
"number": "",
"housekeeping": "HOUSEKEEPING_CLEAN",
"archived": false,
"note": ""
}
]
}CreateReservation#
Request body
idstringChosen by the caller, so a retry books once.
locationIdstringlocation_idroomIdstringroom_idcustomerIdstringcustomer_idAn existing customer, or a guest to add.
guestGuestarrivalstringdeparturestringguestsintegerrateint64 string0 takes the rate plans' average over the stay, or the room type's rate.
notestringsourcestringWhere the booking came from; empty for direct.
Response
reservationReservationcurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/CreateReservation \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"guest": {
"name": "Amina Mushi",
"email": "amina@example.co.tz",
"phone": "+255712345678"
}
}'{
"reservation": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": "",
"status": "RESERVATION_STATUS_BOOKED",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomId": "",
"roomNumber": "",
"roomTypeName": "Amina Mushi",
"customerId": "",
"guestName": "Amina Mushi",
"arrival": "",
"departure": "",
"nights": 0,
"guests": 0,
"rate": "0",
"taxRateIds": [
""
],
"note": "",
"balance": "150000",
"checkedInAt": "",
"checkedOutAt": "",
"createdAt": "",
"guestEmail": "amina@example.co.tz",
"guestPhone": "+255712345678",
"source": ""
}
}ChangeReservation#
ChangeReservation moves a stay to other dates or another room. A guest already in the room can only change the departure, or move rooms.
Request body
idstringroomIdstringroom_idarrivalstringdeparturestringguestsintegernotestringResponse
reservationReservationcurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/ChangeReservation \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"reservation": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": "",
"status": "RESERVATION_STATUS_BOOKED",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomId": "",
"roomNumber": "",
"roomTypeName": "Amina Mushi",
"customerId": "",
"guestName": "Amina Mushi",
"arrival": "",
"departure": "",
"nights": 0,
"guests": 0,
"rate": "0",
"taxRateIds": [
""
],
"note": "",
"balance": "150000",
"checkedInAt": "",
"checkedOutAt": "",
"createdAt": "",
"guestEmail": "amina@example.co.tz",
"guestPhone": "+255712345678",
"source": ""
}
}SetReservationStatus#
Request body
idstringstatusReservationStatusChecked in (on the arrival date or later, into a clean room), checked out (with nothing left to pay), cancelled, or a no-show.
Response
reservationReservationcurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/SetReservationStatus \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"status": "RESERVATION_STATUS_BOOKED"
}'{
"reservation": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": "",
"status": "RESERVATION_STATUS_BOOKED",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomId": "",
"roomNumber": "",
"roomTypeName": "Amina Mushi",
"customerId": "",
"guestName": "Amina Mushi",
"arrival": "",
"departure": "",
"nights": 0,
"guests": 0,
"rate": "0",
"taxRateIds": [
""
],
"note": "",
"balance": "150000",
"checkedInAt": "",
"checkedOutAt": "",
"createdAt": "",
"guestEmail": "amina@example.co.tz",
"guestPhone": "+255712345678",
"source": ""
}
}GetFolio#
Request body
reservationIdstringreservation_idResponse
reservationReservationentriesFolioEntry[]checkoutBalanceint64 stringcheckout_balanceWhat checking out now would leave to pay: the balance and the nights not yet charged.
curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/GetFolio \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"reservation": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": "",
"status": "RESERVATION_STATUS_BOOKED",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomId": "",
"roomNumber": "",
"roomTypeName": "Amina Mushi",
"customerId": "",
"guestName": "Amina Mushi",
"arrival": "",
"departure": "",
"nights": 0,
"guests": 0,
"rate": "0",
"taxRateIds": [
""
],
"note": "",
"balance": "150000",
"checkedInAt": "",
"checkedOutAt": "",
"createdAt": "",
"guestEmail": "amina@example.co.tz",
"guestPhone": "+255712345678",
"source": ""
},
"entries": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"kind": "FOLIO_ENTRY_KIND_ROOM",
"description": "",
"amount": "150000",
"tax": "150000",
"night": "",
"orderId": "",
"orderNumber": "",
"tender": "TENDER_CASH",
"reference": "",
"createdAt": ""
}
],
"checkoutBalance": "150000"
}AddFolioCharge#
AddFolioCharge puts something on a guest's bill from the front desk: the minibar, a late check-out fee.
Request body
idstringChosen by the caller, so a retry charges once.
reservationIdstringreservation_iddescriptionstringamountint64 stringtaxRateIdsstring[]tax_rate_idsResponse
entryFolioEntrycurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/AddFolioCharge \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"amount": "150000",
"taxRateIds": [
""
]
}'{
"entry": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"kind": "FOLIO_ENTRY_KIND_ROOM",
"description": "",
"amount": "150000",
"tax": "150000",
"night": "",
"orderId": "",
"orderNumber": "",
"tender": "TENDER_CASH",
"reference": "",
"createdAt": ""
}
}AddFolioPayment#
Request body
idstringChosen by the caller, so a retry pays once.
reservationIdstringreservation_idtenderTenderA card on the terminal, or other (a bank transfer). Cash goes through a register's drawer as a sale.
amountint64 stringreferencestringResponse
entryFolioEntrycurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/AddFolioPayment \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"tender": "TENDER_CASH",
"amount": "150000"
}'{
"entry": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"kind": "FOLIO_ENTRY_KIND_ROOM",
"description": "",
"amount": "150000",
"tax": "150000",
"night": "",
"orderId": "",
"orderNumber": "",
"tender": "TENDER_CASH",
"reference": "",
"createdAt": ""
}
}ListInHouse#
ListInHouse lists the guests checked in at a location, for a register to charge a sale to a room.
Request body
locationIdstringlocation_idResponse
reservationsReservation[]curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/ListInHouse \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"reservations": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": "",
"status": "RESERVATION_STATUS_BOOKED",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomId": "",
"roomNumber": "",
"roomTypeName": "Amina Mushi",
"customerId": "",
"guestName": "Amina Mushi",
"arrival": "",
"departure": "",
"nights": 0,
"guests": 0,
"rate": "0",
"taxRateIds": [
""
],
"note": "",
"balance": "150000",
"checkedInAt": "",
"checkedOutAt": "",
"createdAt": "",
"guestEmail": "amina@example.co.tz",
"guestPhone": "+255712345678",
"source": ""
}
]
}ListRoomRates#
Rate plans (ADR 118): seasonal and day-of-week prices per room type. ListRoomRates lists a location's plans in use; SaveRoomRate adds or changes one (setup.manage), archived to take it away.
Request body
locationIdstringlocation_idResponse
ratesRoomRate[]curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/ListRoomRates \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"rates": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomTypeId": "",
"name": "Amina Mushi",
"firstNight": "",
"lastNight": "",
"weekdays": 0,
"nightlyRate": "0",
"minNights": 0,
"priority": 0,
"archived": false
}
]
}SaveRoomRate#
Request body
rateRoomRateA new id adds a plan.
Response
rateRoomRatecurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/SaveRoomRate \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"rate": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi"
}
}'{
"rate": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomTypeId": "",
"name": "Amina Mushi",
"firstNight": "",
"lastNight": "",
"weekdays": 0,
"nightlyRate": "0",
"minNights": 0,
"priority": 0,
"archived": false
}
}QuoteStay#
QuoteStay prices a stay in each of a location's room types night by night from the rate plans, with how many rooms of each are free.
Request body
locationIdstringlocation_idarrivalstringdeparturestringguestsintegerResponse
nightsintegercurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/QuoteStay \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"nights": 0,
"roomTypes": [
{
"roomTypeId": "",
"name": "Amina Mushi",
"maxGuests": 0,
"total": "150000",
"averageRate": "0",
"minNights": 0,
"freeRooms": 0
}
]
}GetRoomService#
Room service ordering by guests. Each room has a private link, printed as a QR code in the room; a guest checked in there opens it on their phone, sees the menu and orders. The order waits at the location's restaurant registers until someone accepts it, which turns it into a ticket for the room and sends it to the kitchen, or declines it.
GetRoomService returns whether guests can order at a location and each room's link. Managers set it up.
Request body
locationIdstringlocation_idResponse
enabledbooleanintrostringShown at the top of the guest's menu: hours, delivery time.
linksRoomLink[]Every room not archived, with links made on first ask.
curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/GetRoomService \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"enabled": false,
"intro": "",
"links": [
{
"roomId": "",
"roomNumber": "",
"token": ""
}
]
}UpdateRoomService#
Request body
locationIdstringlocation_idenabledbooleanintrostringResponse
No fields: send {}.
curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/UpdateRoomService \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{}ResetRoomLink#
ResetRoomLink gives a room a new link, so the old QR code stops working.
Request body
roomIdstringroom_idResponse
linkRoomLinkcurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/ResetRoomLink \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"link": {
"roomId": "",
"roomNumber": "",
"token": ""
}
}ListRoomOrders#
ListRoomOrders lists the orders guests placed at a location, newest first: those waiting, or those of the last day.
Request body
locationIdstringlocation_idwaitingbooleanOnly those waiting.
Response
ordersRoomOrder[]curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/ListRoomOrders \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"orders": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomId": "",
"roomNumber": "",
"reservationId": "",
"guestName": "Amina Mushi",
"note": "",
"total": "150000",
"state": "ROOM_ORDER_STATE_WAITING",
"orderId": "",
"orderNumber": "",
"declineReason": "",
"createdAt": "",
"decidedAt": ""
}
]
}DecideRoomOrder#
DecideRoomOrder accepts a waiting order, naming the ticket the register made from it, or declines it with a reason the guest sees.
Request body
idstringacceptbooleanorderIdstringorder_idAccepting: the ticket's id and number.
orderNumberstringorder_numberreasonstringDeclining.
Response
orderRoomOrdercurl https://api.buziin.tech/holygrail.hotel.v1.HotelService/DecideRoomOrder \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"order": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"roomId": "",
"roomNumber": "",
"reservationId": "",
"guestName": "Amina Mushi",
"note": "",
"total": "150000",
"state": "ROOM_ORDER_STATE_WAITING",
"orderId": "",
"orderNumber": "",
"declineReason": "",
"createdAt": "",
"decidedAt": ""
}
}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.
GetRoomsRequest
holygrail.hotel.v1.GetRoomsRequest
locationIdstringlocation_idSaveRoomTypeRequest
holygrail.hotel.v1.SaveRoomTypeRequest
A new id adds a type.
SaveRoomRequest
holygrail.hotel.v1.SaveRoomRequest
roomRoomA new id adds a room. Housekeeping is set with SetHousekeeping.
SetHousekeepingRequest
holygrail.hotel.v1.SetHousekeepingRequest
roomIdstringroom_idhousekeepingHousekeepingGetHousekeepingPlanRequest
holygrail.hotel.v1.GetHousekeepingPlanRequest
locationIdstringlocation_iddaystringYYYY-MM-DD; empty for today at the location.
GetHousekeepingPlanResponse
holygrail.hotel.v1.GetHousekeepingPlanResponse
daystringroomsHousekeepingRoom[]departuresintegerarrivalsintegerstayoversintegernotReadyintegernot_readysuppliesSupplyLine[]Stay and turnover kits for today's rooms.
minibarSupplyLine[]The minibar par, for each room to check.
ListRoomKitsRequest
holygrail.hotel.v1.ListRoomKitsRequest
locationIdstringlocation_idSaveRoomKitsRequest
holygrail.hotel.v1.SaveRoomKitsRequest
locationIdstringlocation_idlinesRoomKitLine[]GetRoomBoardRequest
holygrail.hotel.v1.GetRoomBoardRequest
locationIdstringlocation_idfromstringFrom the first date up to, not including, the second.
tostringincludeCancelledbooleaninclude_cancelledAlso cancelled stays, for reports.
GetRoomBoardResponse
holygrail.hotel.v1.GetRoomBoardResponse
reservationsReservation[]todaystringThe location's date today.
FindFreeRoomsRequest
holygrail.hotel.v1.FindFreeRoomsRequest
locationIdstringlocation_idarrivalstringdeparturestringguestsintegerCreateReservationRequest
holygrail.hotel.v1.CreateReservationRequest
idstringChosen by the caller, so a retry books once.
locationIdstringlocation_idroomIdstringroom_idcustomerIdstringcustomer_idAn existing customer, or a guest to add.
guestGuestarrivalstringdeparturestringguestsintegerrateint64 string0 takes the rate plans' average over the stay, or the room type's rate.
notestringsourcestringWhere the booking came from; empty for direct.
ChangeReservationRequest
holygrail.hotel.v1.ChangeReservationRequest
idstringroomIdstringroom_idarrivalstringdeparturestringguestsintegernotestringSetReservationStatusRequest
holygrail.hotel.v1.SetReservationStatusRequest
idstringstatusReservationStatusChecked in (on the arrival date or later, into a clean room), checked out (with nothing left to pay), cancelled, or a no-show.
GetFolioRequest
holygrail.hotel.v1.GetFolioRequest
reservationIdstringreservation_idGetFolioResponse
holygrail.hotel.v1.GetFolioResponse
reservationReservationentriesFolioEntry[]checkoutBalanceint64 stringcheckout_balanceWhat checking out now would leave to pay: the balance and the nights not yet charged.
AddFolioChargeRequest
holygrail.hotel.v1.AddFolioChargeRequest
idstringChosen by the caller, so a retry charges once.
reservationIdstringreservation_iddescriptionstringamountint64 stringtaxRateIdsstring[]tax_rate_idsAddFolioPaymentRequest
holygrail.hotel.v1.AddFolioPaymentRequest
idstringChosen by the caller, so a retry pays once.
reservationIdstringreservation_idtenderTenderA card on the terminal, or other (a bank transfer). Cash goes through a register's drawer as a sale.
amountint64 stringreferencestringListInHouseRequest
holygrail.hotel.v1.ListInHouseRequest
locationIdstringlocation_idListRoomRatesRequest
holygrail.hotel.v1.ListRoomRatesRequest
locationIdstringlocation_idQuoteStayRequest
holygrail.hotel.v1.QuoteStayRequest
locationIdstringlocation_idarrivalstringdeparturestringguestsintegerQuoteStayResponse
holygrail.hotel.v1.QuoteStayResponse
nightsintegerGetRoomServiceRequest
holygrail.hotel.v1.GetRoomServiceRequest
locationIdstringlocation_idGetRoomServiceResponse
holygrail.hotel.v1.GetRoomServiceResponse
enabledbooleanintrostringShown at the top of the guest's menu: hours, delivery time.
linksRoomLink[]Every room not archived, with links made on first ask.
UpdateRoomServiceRequest
holygrail.hotel.v1.UpdateRoomServiceRequest
locationIdstringlocation_idenabledbooleanintrostringUpdateRoomServiceResponse
holygrail.hotel.v1.UpdateRoomServiceResponse
No fields.
ResetRoomLinkRequest
holygrail.hotel.v1.ResetRoomLinkRequest
roomIdstringroom_idListRoomOrdersRequest
holygrail.hotel.v1.ListRoomOrdersRequest
locationIdstringlocation_idwaitingbooleanOnly those waiting.
DecideRoomOrderRequest
holygrail.hotel.v1.DecideRoomOrderRequest
idstringacceptbooleanorderIdstringorder_idAccepting: the ticket's id and number.
orderNumberstringorder_numberreasonstringDeclining.
RoomType
holygrail.hotel.v1.RoomType
idstringlocationIdstringlocation_idnamestring"Double", "King suite".
nightlyRateint64 stringnightly_rateBefore tax when its tax rates are exclusive.
maxGuestsintegermax_gueststaxRateIdsstring[]tax_rate_idsarchivedbooleanRoom
holygrail.hotel.v1.Room
idstringlocationIdstringlocation_idroomTypeIdstringroom_type_idnumberstringWhat the guest sees on the door: "101", "Garden cottage".
housekeepingHousekeepingarchivedbooleannotestringHousekeepingRoom
holygrail.hotel.v1.HousekeepingRoom
HousekeepingRoom is one room's job for the day.
roomIdstringroom_idnumberstringroomTypestringroom_typehousekeepingHousekeepingjobstringdeparture (turn over), arrival (make ready), turnaround (a departure and an arrival the same day), stayover (service) or vacant.
arrivingGueststringarriving_guestThe guest arriving, and when they're due back for a stayover's guest.
departingGueststringdeparting_guestguestsintegernotReadybooleannot_readyAn arrival or turnaround whose room isn't clean yet.
minibarbooleanCheck the minibar and refill it to par.
SupplyLine
holygrail.hotel.v1.SupplyLine
SupplyLine is a total of something to put out today.
variantIdstringvariant_iditemNamestringitem_nameunitstringquantityint64 stringRoomKitLine
holygrail.hotel.v1.RoomKitLine
RoomKitLine is one thing a room uses.
roomTypeIdstringroom_type_idEmpty for every room type.
kindstringstay (each occupied night), turnover (each departure) or minibar (the par the minibar is filled to).
variantIdstringvariant_idquantityint64 stringIn the variant's stock quantity (thousandths for weighed stock).
itemNamestringitem_nameFilled in on reads.
unitstringReservation
holygrail.hotel.v1.Reservation
idstringnumberstring"RES-0001", assigned on creation.
statusReservationStatuslocationIdstringlocation_idroomIdstringroom_idroomNumberstringroom_numberroomTypeNamestringroom_type_namecustomerIdstringcustomer_idguestNamestringguest_namearrivalstringdeparturestringnightsintegerguestsintegerrateint64 stringThe nightly rate agreed, before tax when its taxes are exclusive.
taxRateIdsstring[]tax_rate_idsnotestringbalanceint64 stringWhat the folio holds now: charges less payments.
checkedInAtstringchecked_in_atRFC 3339.
checkedOutAtstringchecked_out_atcreatedAtstringcreated_atguestEmailstringguest_emailguestPhonestringguest_phonesourcestringWhere the booking came from: direct, phone, walk_in, email, website, booking_com, expedia, airbnb, corporate or agent.
Guest
holygrail.hotel.v1.Guest
Guest is someone new to book for, added as a customer, or found by email.
namestringemailstringphonestringFolioEntry
holygrail.hotel.v1.FolioEntry
FolioEntry is one line of a guest's bill. Charges are positive and payments negative; entries are never changed.
idstringkindFolioEntryKinddescriptionstringamountint64 stringWith tax.
taxint64 stringnightstringRoom nights only: the night's date.
orderIdstringorder_idRegister sales only.
orderNumberstringorder_numbertenderTenderPayments only.
referencestringcreatedAtstringcreated_atRoomRate
holygrail.hotel.v1.RoomRate
idstringlocationIdstringlocation_idroomTypeIdstringroom_type_idnamestring"High season", "Weekend", "Christmas".
firstNightstringfirst_nightThe first and last nights it prices, both included.
lastNightstringlast_nightweekdaysintegerDays of the week it applies on: bit 0 Monday … bit 6 Sunday; 127 is every day.
nightlyRateint64 stringnightly_rateminNightsintegermin_nightsThe shortest stay to book at this rate; a warning on the quote.
priorityintegerHigher wins where plans overlap.
archivedbooleanRoomTypeQuote
holygrail.hotel.v1.RoomTypeQuote
roomTypeIdstringroom_type_idnamestringmaxGuestsintegermax_guestsnightsQuoteNight[]totalint64 stringBefore tax when its taxes are exclusive.
averageRateint64 stringaverage_rateWhat a reservation would keep as its nightly rate: total over nights.
minNightsintegermin_nightsThe longest minimum stay among the plans used, when the stay is shorter.
freeRoomsintegerfree_roomsRooms of this type free on every night that take the guests.
RoomLink
holygrail.hotel.v1.RoomLink
roomIdstringroom_idroomNumberstringroom_numbertokenstringThe secret in the room's link: /r/<token>.
RoomOrder
holygrail.hotel.v1.RoomOrder
idstringlocationIdstringlocation_idroomIdstringroom_idroomNumberstringroom_numberreservationIdstringreservation_idguestNamestringguest_namelinesRoomOrderLine[]notestringtotalint64 stringWhat the menu showed, before any tax the register adds.
stateRoomOrderStateorderIdstringorder_idThe ticket made from it, once accepted.
orderNumberstringorder_numberdeclineReasonstringdecline_reasoncreatedAtstringcreated_atRFC 3339.
decidedAtstringdecided_atQuoteNight
holygrail.hotel.v1.QuoteNight
nightstringrateint64 stringrateNamestringrate_nameThe plan that priced it; empty for the room type's own rate.
RoomOrderLine
holygrail.hotel.v1.RoomOrderLine
variantIdstringvariant_iditemNamestringitem_nameAs the menu showed them.
variantNamestringvariant_namequantityintegermodifierIdsstring[]modifier_idsmodifierNamesstring[]modifier_namesunitPriceint64 stringunit_pricePrice of one, modifiers included.
notestringHousekeeping enum
holygrail.hotel.v1.Housekeeping
HOUSEKEEPING_UNSPECIFIEDHOUSEKEEPING_CLEANHOUSEKEEPING_DIRTYNeeds cleaning: set when a guest checks out.
HOUSEKEEPING_OUT_OF_ORDERCannot be sold or checked into.
ReservationStatus enum
holygrail.hotel.v1.ReservationStatus
RESERVATION_STATUS_UNSPECIFIEDRESERVATION_STATUS_BOOKEDRESERVATION_STATUS_CHECKED_INRESERVATION_STATUS_CHECKED_OUTRESERVATION_STATUS_CANCELLEDRESERVATION_STATUS_NO_SHOWTender enum
holygrail.orders.v1.Tender
TENDER_UNSPECIFIEDTENDER_CASHTENDER_EXTERNAL_CARDCard taken on a separate terminal; the reference is the terminal's.
TENDER_OTHERTENDER_EXCHANGECredit from a refund, spent on the exchange that follows it.
TENDER_DEPOSITAn appointment's deposit, paid online; the order's booking names it.
TENDER_ROOM_CHARGEPut on a hotel guest's bill; the payment's reservation names the stay.
TENDER_PAY_LATERThe part of the sale the customer pays over time on an installment plan (ADR 121); the payment's pay_later_plan_id names the plan.
FolioEntryKind enum
holygrail.hotel.v1.FolioEntryKind
FOLIO_ENTRY_KIND_UNSPECIFIEDFOLIO_ENTRY_KIND_ROOMOne night in the room.
FOLIO_ENTRY_KIND_CHARGECharged at the front desk.
FOLIO_ENTRY_KIND_ORDERA sale at a register charged to the room.
FOLIO_ENTRY_KIND_PAYMENTRoomOrderState enum
holygrail.hotel.v1.RoomOrderState
ROOM_ORDER_STATE_UNSPECIFIEDROOM_ORDER_STATE_WAITINGWaiting for someone at a register.
ROOM_ORDER_STATE_ACCEPTEDTurned into a ticket and sent to the kitchen.
ROOM_ORDER_STATE_DECLINEDBase URL https://api.buziin.tech. Every method is POST with a JSON body; see Making requests.