Event catalogue
The events POS sends, when each one is sent and what its data holds.
On this page
POS sends an event for each change that matters beyond the till. Every event has the same envelope; the shared fields are described there and this page covers type, aggregateType and data. Amounts are decimal strings: see Money and rounding. Stock, the books and reporting read these events: Inventory, Accounting and BI read order.paid, order.refunded and order.voided. To receive them at your own endpoint, create a subscription.
| Type | aggregateType | Sent when |
|---|---|---|
com.rdcopilot.pos.order.paid.v1 | order | The sale is posted: the order is paid in full. |
com.rdcopilot.pos.order.refunded.v1 | order | A refund is recorded on a paid order. |
com.rdcopilot.pos.order.voided.v1 | order | An order is voided before any payment. |
com.rdcopilot.pos.payment.declined.v1 | payment | The card reader reports a declined card. |
com.rdcopilot.pos.businessday.opened.v1 | businessday | A business day is opened on a till. |
com.rdcopilot.pos.businessday.closed.v1 | businessday | A business day is closed against the cash counted. |
order.paid
Sent when the sale is posted. The till posts it at payment when it is online and its queue is empty; otherwise the sale waits in the queue and is posted at replay, in the order the sales were made. data.paidAt keeps the time of the payment, so it can be earlier than time. An order paid in several payments sends it once, with the payment that completes the total. See Work without network.
{
"specversion": "1.0",
"id": "5bd58ef2-d562-4d58-b968-0ec7a82f48df",
"type": "com.rdcopilot.pos.order.paid.v1",
"source": "/pos/v1",
"time": "2026-11-23T07:14:29Z",
"customerOrgId": "5b8d3bf6-26da-4ee2-8e49-35caae10a35f",
"legalCompanyId": "bfe8a6fd-b5ed-4dea-bcd3-6bdcc0155a09",
"aggregateType": "order",
"aggregateId": "9d8c072d-afa0-4272-97ab-4443d54d5b62",
"aggregateRevision": 8,
"correlationId": "f5756ce5-ea30-47b7-be95-9dbbe0212243",
"causationId": "2fd24416-e222-4b5c-a9a0-d8fa553abb98",
"actor": {
"serviceId": "pos-till-1"
},
"data": {
"orderId": "9d8c072d-afa0-4272-97ab-4443d54d5b62",
"number": "Bon 1042",
"tillId": "e57a3b65-d690-4e6c-8a6b-8f946c4e6610",
"businessDayId": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
"customerId": null,
"paidAt": "2026-11-23T07:14:28Z",
"total": "61.95",
"vat": "6.97",
"currency": "RON",
"vatBreakdown": [
{
"rate": "21",
"total": "11.25",
"vat": "1.95",
"base": "9.30"
},
{
"rate": "11",
"total": "50.70",
"vat": "5.02",
"base": "45.68"
}
],
"lines": [
{
"sku": "PA-0101",
"quantity": "2",
"total": "9.60"
},
{
"sku": "UL-0101",
"quantity": "2",
"total": "19.60"
},
{
"sku": "LA-0307",
"quantity": "1",
"total": "21.50"
},
{
"sku": "DT-0101",
"quantity": "1",
"total": "11.25"
}
],
"payments": [
{
"method": "card",
"amount": "61.95"
}
]
}
} | Field of data | Meaning |
|---|---|
orderId | The id of the order. |
number | The number of the order. |
tillId | The till that rang the sale up. |
businessDayId | The business day the sale belongs to. |
customerId | The customer on the order, null when there is none. |
paidAt | When the order was paid. It keeps the time of the payment when the sale waited in the queue. |
total | The total with VAT included, a decimal string. |
vat | The VAT contained in the total. |
currency | The currency of the amounts. |
vatBreakdown | The VAT of each rate: rate, total with VAT, vat and base without VAT. |
lines | The lines sold: sku, quantity and total of the line. |
payments | The approved payments: method and amount. |
order.refunded
Sent when a refund is recorded on a paid order, in full or in part. The order stays paid while units are left to return and becomes refunded when every unit has been returned. data describes this refund only. See Refund and void.
{
"specversion": "1.0",
"id": "a2931a0b-0bb3-4592-b962-a86375100dff",
"type": "com.rdcopilot.pos.order.refunded.v1",
"source": "/pos/v1",
"time": "2026-11-23T06:58:00Z",
"customerOrgId": "5b8d3bf6-26da-4ee2-8e49-35caae10a35f",
"legalCompanyId": "bfe8a6fd-b5ed-4dea-bcd3-6bdcc0155a09",
"aggregateType": "order",
"aggregateId": "3178a6cd-5034-4dd9-8bc9-7e1c238068bd",
"aggregateRevision": 4,
"correlationId": "67ca1cc1-81e1-40c5-8fce-2d6fbb224618",
"causationId": "72bf144e-4a7b-4081-982e-1317d053dcb2",
"actor": {
"serviceId": "pos-till-1"
},
"data": {
"orderId": "3178a6cd-5034-4dd9-8bc9-7e1c238068bd",
"number": "Bon 1039",
"refundId": "d81f9090-fcf3-48c3-9b67-a1ed7ded6ec3",
"amount": "8.40",
"method": "card",
"reason": "changed_mind",
"restock": true,
"lines": [
{
"sku": "AP-0101",
"quantity": "2"
}
]
}
} | Field of data | Meaning |
|---|---|
orderId | The id of the order. |
number | The number of the order. |
refundId | The id of the refund. |
amount | The amount returned, a decimal string. |
method | The payment method the money went back to. |
reason | The reason of the refund. |
restock | true when the units went back on the shelf. |
lines | The units returned: sku and quantity. |
order.voided
Sent when an order is voided while it is open, on hold or waiting for payment. A paid order cannot be voided: refund it, which sends order.refunded.
{
"specversion": "1.0",
"id": "d79cc24c-bfaf-4645-9868-74c65e419d8e",
"type": "com.rdcopilot.pos.order.voided.v1",
"source": "/pos/v1",
"time": "2026-11-23T06:43:30Z",
"customerOrgId": "5b8d3bf6-26da-4ee2-8e49-35caae10a35f",
"legalCompanyId": "bfe8a6fd-b5ed-4dea-bcd3-6bdcc0155a09",
"aggregateType": "order",
"aggregateId": "0b39c62b-20fe-4403-9406-806a653e8b61",
"aggregateRevision": 4,
"correlationId": "778b8c01-d6b9-425a-b7b9-a62660cdd624",
"causationId": "544c56ff-8ff1-4a1a-a5ae-3809d22c0931",
"actor": {
"serviceId": "pos-till-1"
},
"data": {
"orderId": "0b39c62b-20fe-4403-9406-806a653e8b61",
"number": "Bon 1038",
"tillId": "e57a3b65-d690-4e6c-8a6b-8f946c4e6610"
}
} | Field of data | Meaning |
|---|---|
orderId | The id of the order. |
number | The number of the order. |
tillId | The till of the order. |
payment.declined
Sent when the card reader answers declined to a card payment. The order stays as it was and can be paid again by card or in cash. The record that changed is the payment, so aggregateId is the payment and data.orderId is the order. See Card readers.
{
"specversion": "1.0",
"id": "1b644a71-b519-4b24-b4a1-ffd54746749f",
"type": "com.rdcopilot.pos.payment.declined.v1",
"source": "/pos/v1",
"time": "2026-11-23T06:42:15Z",
"customerOrgId": "5b8d3bf6-26da-4ee2-8e49-35caae10a35f",
"legalCompanyId": "bfe8a6fd-b5ed-4dea-bcd3-6bdcc0155a09",
"aggregateType": "payment",
"aggregateId": "5853e8bb-a7bc-4d0c-82bc-ff88a9003d95",
"aggregateRevision": 1,
"correlationId": "ecc5b55a-1267-4e20-8c3d-c32105a9b027",
"causationId": "2fd24416-e222-4b5c-a9a0-d8fa553abb98",
"actor": {
"serviceId": "pos-till-1"
},
"data": {
"paymentId": "5853e8bb-a7bc-4d0c-82bc-ff88a9003d95",
"orderId": "0b39c62b-20fe-4403-9406-806a653e8b61",
"number": "Bon 1038",
"amount": "15.90",
"reason": "insufficient_funds",
"brand": "mastercard",
"last4": "9204"
}
} | Field of data | Meaning |
|---|---|
paymentId | The id of the declined payment. |
orderId | The id of the order. |
number | The number of the order. |
amount | The amount of the declined attempt. |
reason | Why the card was declined. |
brand | The brand of the card. |
last4 | The last four digits of the card. |
businessday.opened
Sent when a business day opens with its float. A till has one open day at a time. See Business day.
{
"specversion": "1.0",
"id": "07ff5ca0-9319-4833-841b-1ca92b834766",
"type": "com.rdcopilot.pos.businessday.opened.v1",
"source": "/pos/v1",
"time": "2026-11-23T06:00:00Z",
"customerOrgId": "5b8d3bf6-26da-4ee2-8e49-35caae10a35f",
"legalCompanyId": "bfe8a6fd-b5ed-4dea-bcd3-6bdcc0155a09",
"aggregateType": "businessday",
"aggregateId": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
"aggregateRevision": 1,
"correlationId": "613858d0-c640-458a-a503-0aa82ff770d2",
"causationId": "1e43f204-8f43-4d2e-97fb-e3313f0afae5",
"actor": {
"serviceId": "pos-till-1"
},
"data": {
"businessDayId": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
"tillId": "e57a3b65-d690-4e6c-8a6b-8f946c4e6610",
"date": "2026-11-23",
"float": "500.00"
}
} | Field of data | Meaning |
|---|---|
businessDayId | The id of the business day. |
tillId | The till of the day. |
date | The date of the day. |
float | The cash put in the drawer at opening. |
businessday.closed
Sent when the day closes. difference is counted minus expected, so it is negative when the drawer is short. A day closes only when no order is in progress or on hold and the queue is empty, so the sales of the day are posted before it. See Close the day.
{
"specversion": "1.0",
"id": "c6c0e66d-5a91-4014-98b9-c2fce06ee6a9",
"type": "com.rdcopilot.pos.businessday.closed.v1",
"source": "/pos/v1",
"time": "2026-11-23T07:14:04Z",
"customerOrgId": "5b8d3bf6-26da-4ee2-8e49-35caae10a35f",
"legalCompanyId": "bfe8a6fd-b5ed-4dea-bcd3-6bdcc0155a09",
"aggregateType": "businessday",
"aggregateId": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
"aggregateRevision": 4,
"correlationId": "613858d0-c640-458a-a503-0aa82ff770d2",
"causationId": "c3ed58da-4ef7-41c9-badf-2632457aaf85",
"actor": {
"serviceId": "pos-till-1"
},
"data": {
"businessDayId": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
"tillId": "e57a3b65-d690-4e6c-8a6b-8f946c4e6610",
"expected": "379.90",
"counted": "374.90",
"difference": "-5.00"
}
} | Field of data | Meaning |
|---|---|
businessDayId | The id of the business day. |
tillId | The till of the day. |
expected | The cash the drawer should hold: float plus cash sales, minus cash refunds, plus cash in, minus cash out. |
counted | The cash counted in the drawer. |
difference | counted minus expected; negative when the drawer is short. |