Lanes, devices, baskets and interventions
The four things the API is made of, how they relate and which identifiers connect them.
On this page
A store has lanes. A lane has four devices. A lane holds one basket at a time. When the lane cannot go on by itself, it raises an intervention and waits for a person.
| Thing | What it is | Read it with |
|---|---|---|
| Lane | A self-service position of a store, numbered from 1. It has a state and runs a config. | listLanes, getLane |
| Device | The scanner, the bagging scale, the card reader or the printer of a lane. It reports a heartbeat and may report a fault. | listDevices |
| Basket | What one shopper scans on a lane: lines, an own bag if there is one, the total with VAT, and the receipt once it is paid. | listBaskets, getBasket, listLines |
| Intervention | A request of a lane for a person. It has a reason, waits for an attendant and is approved, refused or voided. | listInterventions, getIntervention |
How they connect
- A basket names its lane with
laneId, and a lane names its basket withbasketIdwhile the basket is open or just paid. - An intervention names the lane, the basket and, for an item, the line, with
laneId,basketIdandlineId. - A device names its lane with
laneId. A device in fault takes its lane out of service. - Every record names its store with
storeId. Lists takestoreIdas a query parameter.
Who calls what
The shopper’s screen sends the baskets and lines: openBasket, addLine, useOwnBag, startPayment, cancelPayment, requestHelp. The devices send recordWeight, recordPayment and reportHeartbeat. The attendant’s screen sends approveIntervention, refuseIntervention, voidLine, openLane, closeLane and releaseLane. The store view reads the lanes, the devices, the figures and the rollouts.