Developers
Sign inGet API keys
API reference/Hospitality and services

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.

holygrail.hotel.v1.HotelService24 methodsrooms.read · rooms.write

GetRooms#

rooms.readRead
POST/holygrail.hotel.v1.HotelService/GetRooms

GetRooms lists a location's room types and rooms.

Request body

locationIdstringlocation_id

Response

roomTypesRoomType[]room_types
roomsRoom[]
Request
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"
}'
Response example
{
  "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#

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/SaveRoomType

Request body

roomTypeRoomTyperoom_type

A new id adds a type.

Response

roomTypeRoomTyperoom_type
Request
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": [
      ""
    ]
  }
}'
Response example
{
  "roomType": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "name": "Amina Mushi",
    "nightlyRate": "0",
    "maxGuests": 0,
    "taxRateIds": [
      ""
    ],
    "archived": false
  }
}

SaveRoom#

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/SaveRoom

Request body

roomRoom

A new id adds a room. Housekeeping is set with SetHousekeeping.

Response

roomRoom
Request
curl 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"
  }
}'
Response example
{
  "room": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "roomTypeId": "",
    "number": "",
    "housekeeping": "HOUSEKEEPING_CLEAN",
    "archived": false,
    "note": ""
  }
}

SetHousekeeping#

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/SetHousekeeping

Request body

roomIdstringroom_id
housekeepingHousekeeping

Response

roomRoom
Request
curl https://api.buziin.tech/holygrail.hotel.v1.HotelService/SetHousekeeping \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "housekeeping": "HOUSEKEEPING_CLEAN"
}'
Response example
{
  "room": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "roomTypeId": "",
    "number": "",
    "housekeeping": "HOUSEKEEPING_CLEAN",
    "archived": false,
    "note": ""
  }
}

GetHousekeepingPlan#

rooms.readRead
POST/holygrail.hotel.v1.HotelService/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_id
daystring

YYYY-MM-DD; empty for today at the location.

Response

daystring
departuresinteger
arrivalsinteger
stayoversinteger
notReadyintegernot_ready
suppliesSupplyLine[]

Stay and turnover kits for today's rooms.

The minibar par, for each room to check.

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

rooms.readRead
POST/holygrail.hotel.v1.HotelService/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_id

Response

Request
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"
}'
Response example
{
  "lines": [
    {
      "roomTypeId": "",
      "kind": "",
      "variantId": "",
      "quantity": 1,
      "itemName": "Amina Mushi",
      "unit": ""
    }
  ]
}

SaveRoomKits#

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/SaveRoomKits

Request body

locationIdstringlocation_id

Response

Request
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"
    }
  ]
}'
Response example
{
  "lines": [
    {
      "roomTypeId": "",
      "kind": "",
      "variantId": "",
      "quantity": 1,
      "itemName": "Amina Mushi",
      "unit": ""
    }
  ]
}

GetRoomBoard#

rooms.readRead
POST/holygrail.hotel.v1.HotelService/GetRoomBoard

GetRoomBoard lists the reservations that overlap a range of dates.

Request body

locationIdstringlocation_id
fromstring

From the first date up to, not including, the second.

tostring
includeCancelledbooleaninclude_cancelled

Also cancelled stays, for reports.

Response

reservationsReservation[]
todaystring

The location's date today.

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

rooms.readRead
POST/holygrail.hotel.v1.HotelService/FindFreeRooms

FindFreeRooms lists rooms with nothing booked over the dates that take the number of guests.

Request body

locationIdstringlocation_id
arrivalstring
departurestring
guestsinteger

Response

roomsRoom[]
Request
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"
}'
Response example
{
  "rooms": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "roomTypeId": "",
      "number": "",
      "housekeeping": "HOUSEKEEPING_CLEAN",
      "archived": false,
      "note": ""
    }
  ]
}

CreateReservation#

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/CreateReservation

Request body

idstring

Chosen by the caller, so a retry books once.

locationIdstringlocation_id
roomIdstringroom_id
customerIdstringcustomer_id

An existing customer, or a guest to add.

guestGuest
arrivalstring
departurestring
guestsinteger
rateint64 string

0 takes the rate plans' average over the stay, or the room type's rate.

notestring
sourcestring

Where the booking came from; empty for direct.

Response

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

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/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

idstring
roomIdstringroom_id
arrivalstring
departurestring
guestsinteger
notestring

Response

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

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/SetReservationStatus

Request body

idstring

Checked in (on the arrival date or later, into a clean room), checked out (with nothing left to pay), cancelled, or a no-show.

Response

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

rooms.readRead
POST/holygrail.hotel.v1.HotelService/GetFolio

Request body

reservationIdstringreservation_id

Response

reservationReservation
checkoutBalanceint64 stringcheckout_balance

What checking out now would leave to pay: the balance and the nights not yet charged.

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

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/AddFolioCharge

AddFolioCharge puts something on a guest's bill from the front desk: the minibar, a late check-out fee.

Request body

idstring

Chosen by the caller, so a retry charges once.

reservationIdstringreservation_id
descriptionstring
amountint64 string
taxRateIdsstring[]tax_rate_ids

Response

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

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/AddFolioPayment

Request body

idstring

Chosen by the caller, so a retry pays once.

reservationIdstringreservation_id
tenderTender

A card on the terminal, or other (a bank transfer). Cash goes through a register's drawer as a sale.

amountint64 string
referencestring

Response

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

rooms.readRead
POST/holygrail.hotel.v1.HotelService/ListInHouse

ListInHouse lists the guests checked in at a location, for a register to charge a sale to a room.

Request body

locationIdstringlocation_id

Response

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

rooms.readRead
POST/holygrail.hotel.v1.HotelService/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_id

Response

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

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/SaveRoomRate

Request body

A new id adds a plan.

Response

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

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/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_id
arrivalstring
departurestring
guestsinteger

Response

nightsinteger
roomTypesRoomTypeQuote[]room_types
Request
curl 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"
}'
Response example
{
  "nights": 0,
  "roomTypes": [
    {
      "roomTypeId": "",
      "name": "Amina Mushi",
      "maxGuests": 0,
      "total": "150000",
      "averageRate": "0",
      "minNights": 0,
      "freeRooms": 0
    }
  ]
}

GetRoomService#

rooms.readRead
POST/holygrail.hotel.v1.HotelService/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_id

Response

enabledboolean
introstring

Shown at the top of the guest's menu: hours, delivery time.

Every room not archived, with links made on first ask.

Request
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"
}'
Response example
{
  "enabled": false,
  "intro": "",
  "links": [
    {
      "roomId": "",
      "roomNumber": "",
      "token": ""
    }
  ]
}

UpdateRoomService#

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/UpdateRoomService

Request body

locationIdstringlocation_id
enabledboolean
introstring

Response

No fields: send {}.

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

ListRoomOrders#

rooms.readRead
POST/holygrail.hotel.v1.HotelService/ListRoomOrders

ListRoomOrders lists the orders guests placed at a location, newest first: those waiting, or those of the last day.

Request body

locationIdstringlocation_id
waitingboolean

Only those waiting.

Response

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

rooms.writeWrite
POST/holygrail.hotel.v1.HotelService/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

idstring
acceptboolean
orderIdstringorder_id

Accepting: the ticket's id and number.

orderNumberstringorder_number
reasonstring

Declining.

Response

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

GetRoomsResponse

holygrail.hotel.v1.GetRoomsResponse

roomTypesRoomType[]room_types
roomsRoom[]

SaveRoomTypeRequest

holygrail.hotel.v1.SaveRoomTypeRequest

roomTypeRoomTyperoom_type

A new id adds a type.

SaveRoomTypeResponse

holygrail.hotel.v1.SaveRoomTypeResponse

roomTypeRoomTyperoom_type

SaveRoomRequest

holygrail.hotel.v1.SaveRoomRequest

roomRoom

A new id adds a room. Housekeeping is set with SetHousekeeping.

SaveRoomResponse

holygrail.hotel.v1.SaveRoomResponse

roomRoom

SetHousekeepingRequest

holygrail.hotel.v1.SetHousekeepingRequest

roomIdstringroom_id
housekeepingHousekeeping

SetHousekeepingResponse

holygrail.hotel.v1.SetHousekeepingResponse

roomRoom

GetHousekeepingPlanRequest

holygrail.hotel.v1.GetHousekeepingPlanRequest

locationIdstringlocation_id
daystring

YYYY-MM-DD; empty for today at the location.

GetHousekeepingPlanResponse

holygrail.hotel.v1.GetHousekeepingPlanResponse

daystring
departuresinteger
arrivalsinteger
stayoversinteger
notReadyintegernot_ready
suppliesSupplyLine[]

Stay and turnover kits for today's rooms.

The minibar par, for each room to check.

ListRoomKitsRequest

holygrail.hotel.v1.ListRoomKitsRequest

locationIdstringlocation_id

ListRoomKitsResponse

holygrail.hotel.v1.ListRoomKitsResponse

SaveRoomKitsRequest

holygrail.hotel.v1.SaveRoomKitsRequest

locationIdstringlocation_id

SaveRoomKitsResponse

holygrail.hotel.v1.SaveRoomKitsResponse

GetRoomBoardRequest

holygrail.hotel.v1.GetRoomBoardRequest

locationIdstringlocation_id
fromstring

From the first date up to, not including, the second.

tostring
includeCancelledbooleaninclude_cancelled

Also cancelled stays, for reports.

GetRoomBoardResponse

holygrail.hotel.v1.GetRoomBoardResponse

reservationsReservation[]
todaystring

The location's date today.

FindFreeRoomsRequest

holygrail.hotel.v1.FindFreeRoomsRequest

locationIdstringlocation_id
arrivalstring
departurestring
guestsinteger

FindFreeRoomsResponse

holygrail.hotel.v1.FindFreeRoomsResponse

roomsRoom[]

CreateReservationRequest

holygrail.hotel.v1.CreateReservationRequest

idstring

Chosen by the caller, so a retry books once.

locationIdstringlocation_id
roomIdstringroom_id
customerIdstringcustomer_id

An existing customer, or a guest to add.

guestGuest
arrivalstring
departurestring
guestsinteger
rateint64 string

0 takes the rate plans' average over the stay, or the room type's rate.

notestring
sourcestring

Where the booking came from; empty for direct.

CreateReservationResponse

holygrail.hotel.v1.CreateReservationResponse

reservationReservation

ChangeReservationRequest

holygrail.hotel.v1.ChangeReservationRequest

idstring
roomIdstringroom_id
arrivalstring
departurestring
guestsinteger
notestring

ChangeReservationResponse

holygrail.hotel.v1.ChangeReservationResponse

reservationReservation

SetReservationStatusRequest

holygrail.hotel.v1.SetReservationStatusRequest

idstring

Checked in (on the arrival date or later, into a clean room), checked out (with nothing left to pay), cancelled, or a no-show.

SetReservationStatusResponse

holygrail.hotel.v1.SetReservationStatusResponse

reservationReservation

GetFolioRequest

holygrail.hotel.v1.GetFolioRequest

reservationIdstringreservation_id

GetFolioResponse

holygrail.hotel.v1.GetFolioResponse

reservationReservation
checkoutBalanceint64 stringcheckout_balance

What checking out now would leave to pay: the balance and the nights not yet charged.

AddFolioChargeRequest

holygrail.hotel.v1.AddFolioChargeRequest

idstring

Chosen by the caller, so a retry charges once.

reservationIdstringreservation_id
descriptionstring
amountint64 string
taxRateIdsstring[]tax_rate_ids

AddFolioChargeResponse

holygrail.hotel.v1.AddFolioChargeResponse

AddFolioPaymentRequest

holygrail.hotel.v1.AddFolioPaymentRequest

idstring

Chosen by the caller, so a retry pays once.

reservationIdstringreservation_id
tenderTender

A card on the terminal, or other (a bank transfer). Cash goes through a register's drawer as a sale.

amountint64 string
referencestring

AddFolioPaymentResponse

holygrail.hotel.v1.AddFolioPaymentResponse

ListInHouseRequest

holygrail.hotel.v1.ListInHouseRequest

locationIdstringlocation_id

ListInHouseResponse

holygrail.hotel.v1.ListInHouseResponse

reservationsReservation[]

ListRoomRatesRequest

holygrail.hotel.v1.ListRoomRatesRequest

locationIdstringlocation_id

ListRoomRatesResponse

holygrail.hotel.v1.ListRoomRatesResponse

SaveRoomRateRequest

holygrail.hotel.v1.SaveRoomRateRequest

A new id adds a plan.

SaveRoomRateResponse

holygrail.hotel.v1.SaveRoomRateResponse

QuoteStayRequest

holygrail.hotel.v1.QuoteStayRequest

locationIdstringlocation_id
arrivalstring
departurestring
guestsinteger

QuoteStayResponse

holygrail.hotel.v1.QuoteStayResponse

nightsinteger
roomTypesRoomTypeQuote[]room_types

GetRoomServiceRequest

holygrail.hotel.v1.GetRoomServiceRequest

locationIdstringlocation_id

GetRoomServiceResponse

holygrail.hotel.v1.GetRoomServiceResponse

enabledboolean
introstring

Shown at the top of the guest's menu: hours, delivery time.

Every room not archived, with links made on first ask.

UpdateRoomServiceRequest

holygrail.hotel.v1.UpdateRoomServiceRequest

locationIdstringlocation_id
enabledboolean
introstring

UpdateRoomServiceResponse

holygrail.hotel.v1.UpdateRoomServiceResponse

No fields.

ResetRoomLinkRequest

holygrail.hotel.v1.ResetRoomLinkRequest

roomIdstringroom_id

ResetRoomLinkResponse

holygrail.hotel.v1.ResetRoomLinkResponse

ListRoomOrdersRequest

holygrail.hotel.v1.ListRoomOrdersRequest

locationIdstringlocation_id
waitingboolean

Only those waiting.

ListRoomOrdersResponse

holygrail.hotel.v1.ListRoomOrdersResponse

DecideRoomOrderRequest

holygrail.hotel.v1.DecideRoomOrderRequest

idstring
acceptboolean
orderIdstringorder_id

Accepting: the ticket's id and number.

orderNumberstringorder_number
reasonstring

Declining.

DecideRoomOrderResponse

holygrail.hotel.v1.DecideRoomOrderResponse

RoomType

holygrail.hotel.v1.RoomType

idstring
locationIdstringlocation_id
namestring

"Double", "King suite".

nightlyRateint64 stringnightly_rate

Before tax when its tax rates are exclusive.

maxGuestsintegermax_guests
taxRateIdsstring[]tax_rate_ids
archivedboolean

Room

holygrail.hotel.v1.Room

idstring
locationIdstringlocation_id
roomTypeIdstringroom_type_id
numberstring

What the guest sees on the door: "101", "Garden cottage".

housekeepingHousekeeping
archivedboolean
notestring

HousekeepingRoom

holygrail.hotel.v1.HousekeepingRoom

HousekeepingRoom is one room's job for the day.

roomIdstringroom_id
numberstring
roomTypestringroom_type
housekeepingHousekeeping
jobstring

departure (turn over), arrival (make ready), turnaround (a departure and an arrival the same day), stayover (service) or vacant.

arrivingGueststringarriving_guest

The guest arriving, and when they're due back for a stayover's guest.

departingGueststringdeparting_guest
guestsinteger
notReadybooleannot_ready

An arrival or turnaround whose room isn't clean yet.

minibarboolean

Check the minibar and refill it to par.

SupplyLine

holygrail.hotel.v1.SupplyLine

SupplyLine is a total of something to put out today.

variantIdstringvariant_id
itemNamestringitem_name
unitstring
quantityint64 string

RoomKitLine

holygrail.hotel.v1.RoomKitLine

RoomKitLine is one thing a room uses.

roomTypeIdstringroom_type_id

Empty for every room type.

kindstring

stay (each occupied night), turnover (each departure) or minibar (the par the minibar is filled to).

variantIdstringvariant_id
quantityint64 string

In the variant's stock quantity (thousandths for weighed stock).

itemNamestringitem_name

Filled in on reads.

unitstring

Reservation

holygrail.hotel.v1.Reservation

idstring
numberstring

"RES-0001", assigned on creation.

locationIdstringlocation_id
roomIdstringroom_id
roomNumberstringroom_number
roomTypeNamestringroom_type_name
customerIdstringcustomer_id
guestNamestringguest_name
arrivalstring
departurestring
nightsinteger
guestsinteger
rateint64 string

The nightly rate agreed, before tax when its taxes are exclusive.

taxRateIdsstring[]tax_rate_ids
notestring
balanceint64 string

What the folio holds now: charges less payments.

checkedInAtstringchecked_in_at

RFC 3339.

checkedOutAtstringchecked_out_at
createdAtstringcreated_at
guestEmailstringguest_email
guestPhonestringguest_phone
sourcestring

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

namestring
emailstring
phonestring

FolioEntry

holygrail.hotel.v1.FolioEntry

FolioEntry is one line of a guest's bill. Charges are positive and payments negative; entries are never changed.

idstring
descriptionstring
amountint64 string

With tax.

taxint64 string
nightstring

Room nights only: the night's date.

orderIdstringorder_id

Register sales only.

orderNumberstringorder_number
tenderTender

Payments only.

referencestring
createdAtstringcreated_at

RoomRate

holygrail.hotel.v1.RoomRate

idstring
locationIdstringlocation_id
roomTypeIdstringroom_type_id
namestring

"High season", "Weekend", "Christmas".

firstNightstringfirst_night

The first and last nights it prices, both included.

lastNightstringlast_night
weekdaysinteger

Days of the week it applies on: bit 0 Monday … bit 6 Sunday; 127 is every day.

nightlyRateint64 stringnightly_rate
minNightsintegermin_nights

The shortest stay to book at this rate; a warning on the quote.

priorityinteger

Higher wins where plans overlap.

archivedboolean

RoomTypeQuote

holygrail.hotel.v1.RoomTypeQuote

roomTypeIdstringroom_type_id
namestring
maxGuestsintegermax_guests
totalint64 string

Before tax when its taxes are exclusive.

averageRateint64 stringaverage_rate

What a reservation would keep as its nightly rate: total over nights.

minNightsintegermin_nights

The longest minimum stay among the plans used, when the stay is shorter.

freeRoomsintegerfree_rooms

Rooms of this type free on every night that take the guests.

RoomOrder

holygrail.hotel.v1.RoomOrder

idstring
locationIdstringlocation_id
roomIdstringroom_id
roomNumberstringroom_number
reservationIdstringreservation_id
guestNamestringguest_name
notestring
totalint64 string

What the menu showed, before any tax the register adds.

orderIdstringorder_id

The ticket made from it, once accepted.

orderNumberstringorder_number
declineReasonstringdecline_reason
createdAtstringcreated_at

RFC 3339.

decidedAtstringdecided_at

QuoteNight

holygrail.hotel.v1.QuoteNight

nightstring
rateint64 string
rateNamestringrate_name

The plan that priced it; empty for the room type's own rate.

RoomOrderLine

holygrail.hotel.v1.RoomOrderLine

variantIdstringvariant_id
itemNamestringitem_name

As the menu showed them.

variantNamestringvariant_name
quantityinteger
modifierIdsstring[]modifier_ids
modifierNamesstring[]modifier_names
unitPriceint64 stringunit_price

Price of one, modifiers included.

notestring

Housekeeping enum

holygrail.hotel.v1.Housekeeping

HOUSEKEEPING_UNSPECIFIED
HOUSEKEEPING_CLEAN
HOUSEKEEPING_DIRTY

Needs cleaning: set when a guest checks out.

HOUSEKEEPING_OUT_OF_ORDER

Cannot be sold or checked into.

ReservationStatus enum

holygrail.hotel.v1.ReservationStatus

RESERVATION_STATUS_UNSPECIFIED
RESERVATION_STATUS_BOOKED
RESERVATION_STATUS_CHECKED_IN
RESERVATION_STATUS_CHECKED_OUT
RESERVATION_STATUS_CANCELLED
RESERVATION_STATUS_NO_SHOW

Tender enum

holygrail.orders.v1.Tender

TENDER_UNSPECIFIED
TENDER_CASH
TENDER_EXTERNAL_CARD

Card taken on a separate terminal; the reference is the terminal's.

TENDER_OTHER
TENDER_EXCHANGE

Credit from a refund, spent on the exchange that follows it.

TENDER_DEPOSIT

An appointment's deposit, paid online; the order's booking names it.

TENDER_ROOM_CHARGE

Put on a hotel guest's bill; the payment's reservation names the stay.

TENDER_PAY_LATER

The 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_UNSPECIFIED
FOLIO_ENTRY_KIND_ROOM

One night in the room.

FOLIO_ENTRY_KIND_CHARGE

Charged at the front desk.

FOLIO_ENTRY_KIND_ORDER

A sale at a register charged to the room.

FOLIO_ENTRY_KIND_PAYMENT

RoomOrderState enum

holygrail.hotel.v1.RoomOrderState

ROOM_ORDER_STATE_UNSPECIFIED
ROOM_ORDER_STATE_WAITING

Waiting for someone at a register.

ROOM_ORDER_STATE_ACCEPTED

Turned into a ticket and sent to the kitchen.

ROOM_ORDER_STATE_DECLINED

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