Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Tills and cashiers

    What a till, a cashier profile and the current order are, and what the till reports about its network, its queue and its card reader.

    On this page

    Orders are rung up at a till. A till belongs to a company, serves one cashier at a time and holds one current order, one card reader and a queue of sales it stored while the network was lost.

    Company, till and cashier

    TermMeaning
    CompanyThe legal company whose sales these are. In the examples it is Brumar Retail SRL. Its id is legalCompanyId in every event.
    TillA counter where orders are rung up: Till 1 (till-1) in the examples. Its business days follow one another. See Business day.
    CashierThe person signed in at the till. cashier on the till and on every order carries the name: Cristina Lungu in the examples.

    Cashier profile and discount limit

    The profile of the cashier sets the largest discount a line can take: 10% in the examples. A discount is a whole percentage of a line, from 0 up to the limit, and Change a line sets it. A discount above the limit is refused with discount_limit, and one that is not a whole percentage from 0 to 100 with invalid_discount.

    The current order

    • currentOrderId is the order being rung up. It is empty until the first line is added.
    • When the order is paid, put on hold or voided, the till opens a new empty order with the next number.
    • A held order comes back with resumeOrder, and only while the current order is empty: otherwise the answer is sale_in_progress.
    • While no business day is open, currentOrderId and businessDayId are null and a change is refused with day_closed.

    What getTill reports

    FieldMeaning
    networkonline, or offline while the till has no network.
    queue.countSales stored on the till and not posted yet.
    queue.oldestAtWhen the oldest stored sale finished, or null.
    queue.ageSecondsAge of the oldest stored sale, in seconds.
    reader.stateThe state of the card reader. See Order and payment states.
    reader.orderIdThe order the reader is working for, or null.
    reader.amountThe amount the reader was started with.
    reader.attemptCards presented for this order so far, declined ones included.

    While network is offline, a cash sale finishes and waits in the queue. A card payment, a refund and the close of the day are refused with network_lost. When the network is back, the till posts the queue one sale at a time, oldest first, and a sale finished meanwhile joins the queue. See Work without network.

    A till without network that stored one cash sale

    {
      "id": "e57a3b65-d690-4e6c-8a6b-8f946c4e6610",
      "code": "till-1",
      "name": "Till 1",
      "cashier": "Cristina Lungu",
      "businessDayId": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
      "currentOrderId": "7bcf7203-923f-428a-acbc-c6faf8821433",
      "network": "offline",
      "queue": {
        "count": 1,
        "oldestAt": "2026-11-23T07:14:04Z",
        "ageSeconds": 596
      },
      "reader": {
        "state": "idle",
        "orderId": null,
        "amount": "0.00",
        "attempt": 0
      }
    }

    The card reader serves one payment at a time. See Card readers.