Overview
What the POS API does, how a call is built and where to go next.
On this page
The POS API runs the sale at the counter from your software. You read the catalogue and the tills, ring up an order line by line, take payments by card or in cash, refund, and open and close the business day of a till. It is a JSON API over HTTPS under /pos/v1: you send requests, and it sends events to an address you register.
Client credentials, your base address and a test company are issued with your account. Accounts are opened by our team: ask for one through the contact form and we set it up with you.
Request an accountHow a call works
Sign in
Ask for a token with your client credentials. See Authentication.
Read
Read a till to see its current order, its network, its queue and its card reader; read orders, payments and the catalogue. Lists come in pages of up to 500. See Pagination.
Change
Every change carries an
operationIdand, on an existing order or business day, anexpectedRevision. See Idempotency and concurrency.Listen
Events tell you when an order is paid, refunded or voided, when a card is declined and when a business day opens or closes. See Event envelope.
Order states
An order has one status. The product views show the same words. Order and payment states says what moves an order from one to the next.
| Status | Meaning |
|---|---|
open | The order is being rung up at the till. Lines can change. |
on_hold | The order is parked with its lines, so the till can serve the next customer. |
awaiting_payment | A payment has started and nothing is settled yet. A declined card leaves the order here. |
partially_paid | Payments settle part of the total. The rest is still due. |
paid | The payments cover the total. The sale is finished and can be refunded. |
refunded | Every unit was returned. A refund of some units leaves the order paid. |
voided | The order ended before any payment was approved. |
Where next
- Ring up your first sale in the Quickstart.
- Learn how a sale is built in Orders, lines and payments.
- Follow a sale from the first line to the paid order in Take a sale.
- Look up every operation in Orders.