Locations and devices
IdentityService owns organizations, locations, users, memberships and devices.
ListLocations#
Request body
No fields: send {}.
Response
locationsLocation[]curl https://api.buziin.tech/holygrail.identity.v1.IdentityService/ListLocations \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"locations": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"timezone": "Africa/Dar_es_Salaam",
"modules": [
"BUSINESS_MODULE_RESTAURANT"
],
"features": [
""
]
}
]
}RegisterDevice#
RegisterDevice records a register, KDS, handheld or kiosk at a location.
Request body
Response
deviceDevicecurl 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"
}'{
"device": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"kind": "DEVICE_KIND_REGISTER",
"receiptPrefix": ""
}
}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_idappVersionstringapp_versionThe app's version as people see it, e.g. "1.4.0".
appBuildstringapp_buildThe 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.
platformstringios, android, web, windows, macos or linux.
osVersionstringos_versionThe operating system's version, e.g. "17.5" or "14".
Response
No fields: send {}.
curl https://api.buziin.tech/holygrail.identity.v1.IdentityService/CheckInDevice \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{}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.
RegisterDeviceRequest
holygrail.identity.v1.RegisterDeviceRequest
locationIdstringlocation_idnamestringkindDeviceKindCheckInDeviceRequest
holygrail.identity.v1.CheckInDeviceRequest
deviceIdstringdevice_idappVersionstringapp_versionThe app's version as people see it, e.g. "1.4.0".
appBuildstringapp_buildThe 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.
platformstringios, android, web, windows, macos or linux.
osVersionstringos_versionThe operating system's version, e.g. "17.5" or "14".
CheckInDeviceResponse
holygrail.identity.v1.CheckInDeviceResponse
No fields.
Location
holygrail.identity.v1.Location
idstringnamestringtimezonestringIANA time zone, e.g. "America/New_York".
modulesBusinessModule[]featuresstring[]Output only: the features this location has (ADR 47), e.g. "dining.tables". Registers keep them for offline.
Device
holygrail.identity.v1.Device
idstringlocationIdstringlocation_idnamestringkindDeviceKindreceiptPrefixstringreceipt_prefixUnique in the organization, e.g. "D2". Prefixes the receipt numbers this device assigns offline.
DeviceKind enum
holygrail.identity.v1.DeviceKind
DEVICE_KIND_UNSPECIFIEDDEVICE_KIND_REGISTERDEVICE_KIND_KDSDEVICE_KIND_HANDHELDDEVICE_KIND_KIOSKBusinessModule enum
holygrail.identity.v1.BusinessModule
BusinessModule is a vertical a location turns on. The core POS is always on.
BUSINESS_MODULE_UNSPECIFIEDBUSINESS_MODULE_RESTAURANTBUSINESS_MODULE_RETAILBUSINESS_MODULE_HOSPITALITYBUSINESS_MODULE_SERVICESBUSINESS_MODULE_APPOINTMENTSBUSINESS_MODULE_FRESH_MARKETButchery & 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.