Developers
Sign inGet API keys
API reference/Platform

Locations and devices

IdentityService owns organizations, locations, users, memberships and devices.

holygrail.identity.v1.IdentityService3 methodslocations.read · locations.write

ListLocations#

locations.readRead
POST/holygrail.identity.v1.IdentityService/ListLocations

Request body

No fields: send {}.

Response

locationsLocation[]
Request
curl https://api.buziin.tech/holygrail.identity.v1.IdentityService/ListLocations \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "locations": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "name": "Amina Mushi",
      "timezone": "Africa/Dar_es_Salaam",
      "modules": [
        "BUSINESS_MODULE_RESTAURANT"
      ],
      "features": [
        ""
      ]
    }
  ]
}

RegisterDevice#

locations.writeWrite
POST/holygrail.identity.v1.IdentityService/RegisterDevice

RegisterDevice records a register, KDS, handheld or kiosk at a location.

Request body

locationIdstringlocation_id
namestring

Response

deviceDevice
Request
curl https://api.buziin.tech/holygrail.identity.v1.IdentityService/RegisterDevice \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
  "name": "Amina Mushi",
  "kind": "DEVICE_KIND_REGISTER"
}'
Response example
{
  "device": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "name": "Amina Mushi",
    "kind": "DEVICE_KIND_REGISTER",
    "receiptPrefix": ""
  }
}

CheckInDevice#

locations.writeWrite
POST/holygrail.identity.v1.IdentityService/CheckInDevice

CheckInDevice is a device saying it is running, and which app build: the register calls it when it starts and every few minutes while online. It keeps the device's last-seen time, and the platform console shows the app version each device runs. Any signed-in member of the business may call it for one of the business's devices.

Request body

deviceIdstringdevice_id
appVersionstringapp_version

The app's version as people see it, e.g. "1.4.0".

appBuildstringapp_build

The store build number (iOS build, Android version code) or the desktop or web bundle's build, e.g. "57". Empty when the app has none.

platformstring

ios, android, web, windows, macos or linux.

osVersionstringos_version

The operating system's version, e.g. "17.5" or "14".

Response

No fields: send {}.

Request
curl https://api.buziin.tech/holygrail.identity.v1.IdentityService/CheckInDevice \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{}

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.

ListLocationsRequest

holygrail.identity.v1.ListLocationsRequest

No fields.

ListLocationsResponse

holygrail.identity.v1.ListLocationsResponse

locationsLocation[]

RegisterDeviceRequest

holygrail.identity.v1.RegisterDeviceRequest

locationIdstringlocation_id
namestring

RegisterDeviceResponse

holygrail.identity.v1.RegisterDeviceResponse

deviceDevice

CheckInDeviceRequest

holygrail.identity.v1.CheckInDeviceRequest

deviceIdstringdevice_id
appVersionstringapp_version

The app's version as people see it, e.g. "1.4.0".

appBuildstringapp_build

The store build number (iOS build, Android version code) or the desktop or web bundle's build, e.g. "57". Empty when the app has none.

platformstring

ios, android, web, windows, macos or linux.

osVersionstringos_version

The operating system's version, e.g. "17.5" or "14".

CheckInDeviceResponse

holygrail.identity.v1.CheckInDeviceResponse

No fields.

Location

holygrail.identity.v1.Location

idstring
namestring
timezonestring

IANA time zone, e.g. "America/New_York".

featuresstring[]

Output only: the features this location has (ADR 47), e.g. "dining.tables". Registers keep them for offline.

Device

holygrail.identity.v1.Device

idstring
locationIdstringlocation_id
namestring
receiptPrefixstringreceipt_prefix

Unique in the organization, e.g. "D2". Prefixes the receipt numbers this device assigns offline.

DeviceKind enum

holygrail.identity.v1.DeviceKind

DEVICE_KIND_UNSPECIFIED
DEVICE_KIND_REGISTER
DEVICE_KIND_KDS
DEVICE_KIND_HANDHELD
DEVICE_KIND_KIOSK

BusinessModule enum

holygrail.identity.v1.BusinessModule

BusinessModule is a vertical a location turns on. The core POS is always on.

BUSINESS_MODULE_UNSPECIFIED
BUSINESS_MODULE_RESTAURANT
BUSINESS_MODULE_RETAIL
BUSINESS_MODULE_HOSPITALITY
BUSINESS_MODULE_SERVICES
BUSINESS_MODULE_APPOINTMENTS
BUSINESS_MODULE_FRESH_MARKET

Butchery & fresh market: shops that sell by weight, like meat, fish, fruit and vegetables, grains and sugar by the kilo (ADR 49).

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