Documentation
Guides, API reference and events for Self-Checkout.
On this page
Rules shared by every R&D Copilot API are in the Developer guide.
Get started
- Overview: What the Self-Checkout API does, how a call is built and where to go next.
- Quickstart: Pay your first basket on a lane of the test store: open the basket, add an item, report its weight, pay and read the receipt.
- Authentication: Get client credentials, request a token and call the Self-Checkout API with it.
- Sandbox and live: Build and test against a test company, then move the same calls to your live company.
- Lane simulator in the test environment: Drive the lanes and the devices of the test store by request: scan, weigh, pay, break a device and watch the lane stop.
- Go-live checklist: What to check before your lanes run against the live store.
Concepts
- Lanes, devices, baskets and interventions: The four things the API is made of, how they relate and which identifiers connect them.
- Lane states: The seven states of a lane, what moves a lane from one to the next and what the system refuses.
- Offline basket: What to do when the connection of a lane is lost in the middle of a basket.
Guides
- Open a basket and add lines: Open a basket on a free lane, add what the scanner reads, declare an own bag and take a line back.
- Weights and produce codes: How the bagging scale confirms a line, what happens when the weight differs and how an item sold by weight is priced.
- Interventions and approvals: Read the approval queue, decide an intervention and read how fast the store answers.
- Age checks: What happens when an age-restricted item is scanned, who approves and what is recorded.
- Complete and receipt: Start the payment, record the answer of the card reader, read the receipt and release the lane.
- Roll out a configuration: Move a new configuration to the lanes of a store ring by ring, halt it, resume it or roll it back.
Devices
- Scanner and scale events: What the scanner and the bagging scale send, in which order, and what the system answers.
- Card reader: What the card reader reports, what the lane does with each answer and when a person is called.
- Printer: What the receipt printer reports and what a printer fault does to its lane.
- Health and heartbeats: How a device reports that it works, what silent and fault mean and how to read the health of a store.
Reference
- Errors: The error object of the Self-Checkout API and the codes that say what went wrong.
- Idempotency and concurrency: Repeat a request without applying it twice, and refuse a change made on an out-of-date record.
- Pagination: Lists come in pages. Follow the cursor until it is empty.
- Limits: The limits of the Self-Checkout API, with their values and what happens over them.
- Versioning: The version is in the path. Additions keep it; a change that could break a caller gets a new one.
- Changelog: The versions of the Self-Checkout API and what each one changed.
API reference
- Baskets: Open a basket on a lane, declare an own bag, pay it and call for help, and read the baskets of a store.
- Lines: Add what the scanner read, report the weight of the bagging scale and void a line.
- Interventions: The requests of lanes for a person: read them, approve or refuse them, and read the figures of a store.
- Devices and lanes: The lanes of a store with their state, the scanner, the scale, the card reader and the printer of each, and their heartbeats.
- Rollouts: Move a configuration to the lanes of a store ring by ring.
- Operations: A request that changes data is accepted once and answered with an operation result you can read again.
- Subscriptions: Register the HTTPS endpoint that receives events, and read, retry and replay the deliveries.
Events
- Event envelope: Every Self-Checkout event has the same envelope; only
datachanges with the type of the event. - Event catalogue: The five events the system sends, when each one is sent and what its
datacarries. - Subscriptions: Register an HTTPS endpoint and Self-Checkout sends your events to it, each one signed.
- Verify signatures: Every delivery is signed. Check the signature on the raw body before you trust the event.
- Delivery and retries: An event is sent again when your endpoint does not confirm it, and is kept for replay after the last attempt.
- Replay: Send a parked event again once your endpoint is ready to take it.