Developers
Sign inGet API keys
Docs/Webhooks

Event types

Lumora sends one event type per kind of record, named <entity>.updated, with the whole record in data. An app receives an event only if the business granted a scope that covers it; the sync.read scope covers all of them.

EventDataScope
pingA test event from the dashboard or console.Always sent
tax_rate.updatedTaxRatecatalog.read
category.updatedCategorycatalog.read
item.updatedItemcatalog.read
item_variant.updatedItemVariant

ItemVariant is what is actually sold: every item has at least one.

catalog.read
modifier_group.updatedModifierGroupcatalog.read
modifier.updatedModifiercatalog.read
location_price.updatedLocationPrice

LocationPrice sells a variant at one location for a different price than the catalog's. Managers can set them for their own locations; the catalog itself is shared by every location.

catalog.read
department.updatedDepartment

Department is a part of the business that makes or serves what is sold: Kitchen, Bar, Barista. Categories and items belong to one; kitchen tickets go to it, and sales are reported by it.

catalog.read
discount.updatedDiscount

Discount is a preset discount the register offers: "Staff 20%", "Happy hour", "$5 off $50". The register applies it to an order as an orders.v1.AppliedDiscount, a snapshot of these terms. See docs/adr/0026-discounts.md for how the rules work offline.

catalog.read
order.updatedOrder

Order is pushed whole while it is open. Amounts are integer minor units in the organization's currency. Names and prices are snapshots taken at sale time, so later catalog edits never change an old order. A tab (an order with a table or a tab name) is often changed by several devices: a server's handheld, the bar, the counter. Pushes merge rather than replace: - The order's own fields (table, guests, note, discount, customer, state) come from the push with the newest clock. - Each line carries the clock of its last change and is merged on its own, so lines added or changed on different devices all survive. - A removed line stays in removed_lines with the clock of its removal, which beats any older copy of the line another device still sends. The server prices the merged order and sends it back through the feed. Completing an order is refused when the merge changes it: the device that took payment had not seen everything on the tab.

orders.read
payment.updatedPayment

Payment is an immutable fact: it is pushed once and never changed.

orders.read
drawer_session.updatedDrawerSession

DrawerSession is one shift of a device's cash drawer, from opening float to closing count. A device has at most one open session.

orders.read
drawer_movement.updatedDrawerMovement

DrawerMovement is cash added to or taken from an open drawer outside a sale.

orders.read
refund.updatedRefund

Refund is an immutable fact, created offline like a payment. It returns units of a completed order, at the location of the device that takes it back. Each line gives back its share of the line's sales (net of discounts and of inclusive tax) and of its tax, each counted cumulatively so that refunding every unit, in any number of refunds, gives back exactly what was paid: share(x) = round(x × (before + quantity) / sold) - round(x × before / sold) amount = share(sales) + share(tax) where before is how many units of the line earlier refunds returned and rounding is half away from zero. The shared pricing packages implement it as refundShare. Tips are not refunded.

orders.read
kitchen_ticket.updatedKitchenTicket

KitchenTicket is what one station has to make for one course of an order. The device that sends it creates it offline and pushes it once; after that only its status changes, from any device at the location (newest clock wins), as the kitchen starts and bumps it, strikes items or marks it a priority.

orders.read
customer.updatedCustomercustomers.read
loyalty_program.updatedLoyaltyProgram

LoyaltyProgram is the organization's loyalty program; its id is the organization's id. Amounts are minor units. Tiers, rewards and campaigns are part of the program document: an owner edits them together on the dashboard and each list is replaced whole when it changes (ADR 120).

customers.read
stock_level.updatedStockLevel

StockLevel is what a register sees: how many of a variant a location has. It is synced through the feed and kept by the server.

inventory.read
dining_area.updatedDiningArea

DiningArea groups tables: "Patio", "Bar", "Main room".

dining.read
dining_table.updatedDiningTable

DiningTable is a table on the floor plan. Its place is a cell on a grid 12 cells wide and 8 deep per area, so a plan drawn on the dashboard looks the same on every register. A square or round table takes one cell, a long one two side by side.

dining.read
kitchen_station.updatedKitchenStation

KitchenStation is a screen in the kitchen or bar: grill, cold, bar. Items in its departments or categories go to its tickets. A station with neither takes whatever no other station takes; with no stations at all, every ticket goes to every kitchen screen, which can show one department.

dining.read
printer.updatedPrinter

Printer is a printer at a location. What it prints comes from its profiles; a printer with none prints nothing until one is added.

dining.read
printer_profile.updatedPrinterProfile

PrinterProfile says what a printer prints: "Front counter" prints receipts and bills, "Kitchen" prints the kitchen's tickets, "Bar" the bar's. Printers share profiles, so a second kitchen printer takes the same tickets by adding the same profile.

dining.read
staff_member.updatedStaffMember

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

appointments.read
booking_resource.updatedBookingResource

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.

appointments.read
booking.updatedBooking

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.

appointments.read
timecard.updatedTimecard

Timecard is time someone clocked at a location. A register pushes it when they clock in and again as it changes; it is the register's until a manager edits it on the dashboard.

team.read
register_event.updatedRegisterEvent

RegisterEvent is one thing a team member did on a register, for the audit log: signing in, clocking in, opening a screen, a refund, a manager approval, a refused action. Registers push them through sync, offline too.

orders.read
team_member.updatedTeamMember

TeamMember is someone who works at the business. Registers receive the team through the change feed, with the passcode check (salt and hash); the dashboard never sees those.

team.read
shift.updatedScheduledShift

Shift is a scheduled stretch of work at a location.

team.read
time_off_request.updatedTimeOffRequestteam.read
shift_request.updatedShiftRequestteam.read
availability.updatedAvailability

Availability is one team member's week. Registers push it whole when someone changes their own.

team.read
announcement.updatedAnnouncementteam.read
announcement_ack.updatedAnnouncementAck

AnnouncementAck is a team member confirming they read an announcement, on a register; pushed through sync.

team.read
position.updatedPositionteam.read
till_prompt.updatedTillPrompt

TillPrompt is Nuru at the register and handheld (ADR 90): an item about to run out today, or a prep task due. Made on the server and synced to the location's devices through the change feed, so a register shows it offline; a register dismisses it with TillPromptDismiss.

insights.read
named_shift.updatedNamedShiftteam.read
shift_run.updatedShiftRun

ShiftRun is a shift someone works: started on the register, open across clock-ins and clock-outs, and ended by them (or a manager).

team.read