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

# Event envelope

Every Self-Checkout event has the same envelope; only `data` changes with the type of the event.

The `type` has the form `com.rdcopilot.selfcheckout.<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": "c2d05260-08ff-406e-9875-3bce61a3657c",
  "type": "com.rdcopilot.selfcheckout.intervention.raised.v1",
  "source": "/selfcheckout/v1",
  "time": "2026-11-23T07:10:15Z",
  "customerOrgId": "0bcc088a-2bc8-4fa4-9ff9-85b990d9f8a9",
  "legalCompanyId": "77453003-5e7c-439c-b9d8-07386b8a18ec",
  "aggregateType": "intervention",
  "aggregateId": "a4b81f78-a572-439e-86af-ca4a0637ed9e",
  "aggregateRevision": 1,
  "correlationId": "9b1f24fe-8614-400e-8ecd-daac753e3d1d",
  "causationId": "7b0096e4-75e8-41de-b74f-337e356171a9",
  "actor": {
    "serviceId": "lane"
  },
  "data": {
    "laneId": "b52ad788-5852-40fe-aa11-ed923e9fe3f3",
    "basketId": "e65dfec1-bfa1-46db-9978-a72896b6f0b2",
    "reason": "weight_differs",
    "expectedGrams": 930,
    "measuredGrams": 1120
  }
}
```

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

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