---
title: "Event envelope | Docs | POS by R&D Copilot"
description: "Every POS event has the same envelope; only data changes with the type of the event."
canonical: "https://pos.rdcopilot.com/docs/events/event-envelope/"
language: en
updated: 2026-11-22
---

# Event envelope

Every POS event has the same envelope; only `data` changes with the type of the event.

The `type` has the form `com.rdcopilot.pos.<event>.v1`. The last part is the version of `data`.

## Fields

| Field | Meaning |
| --- | --- |
| `specversion` | Version of the envelope format. |
| `id` | Identifier of this event. A repeated delivery of the same event has the same `id`. |
| `type` | What happened, in the form above. |
| `source` | The product that sent the event. |
| `time` | When the event happened, as a date and time with a time zone. |
| `customerOrgId` | Your organisation. |
| `legalCompanyId` | The legal company that the event belongs to, test or live. |
| `aggregateType` | The kind of record that changed. |
| `aggregateId` | The record that changed. |
| `aggregateRevision` | The revision of the record after the change. |
| `correlationId` | Ties together everything that came from one request or one flow. |
| `causationId` | The document or operation that caused this event. |
| `actor` | Who or what made the change. |
| `data` | The content of the event. Its shape depends on `type`. |

## Example

JSON

```json
{
  "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"
      }
    ]
  }
}
```

Deliveries can repeat. Use `id` to skip an event you already handled. [Delivery and retries](https://pos.rdcopilot.com/docs/events/delivery-and-retries/) says when an event is sent again.

The full rule: [Developer guide](https://rdcopilot.com/docs/events/)
