Event catalogue
Every event CRM sends, when it is sent and what its data holds.
On this page
Every event has the envelope described in Event envelope. The table gives the type, when the event is sent, the aggregateType of the record it is about and the fields of data. A change sends its event once the change is applied, and the aggregateRevision of the event is the revision of the record after it.
Events
| Type | Sent when | Aggregate | Fields of `data` |
|---|---|---|---|
com.rdcopilot.crm.company.created.v1 | A company was created. | company | id, name |
com.rdcopilot.crm.company.updated.v1 | A company was changed. | company | id, fields |
com.rdcopilot.crm.person.created.v1 | A person was created. | person | id, companyId |
com.rdcopilot.crm.deal.created.v1 | A deal was created as a lead. | deal | number, companyId, value |
com.rdcopilot.crm.deal.moved.v1 | A deal moved to another open stage. | deal | number, from, to |
com.rdcopilot.crm.deal.won.v1 | A deal was won. | deal | number, stage, reason |
com.rdcopilot.crm.deal.lost.v1 | A deal was lost. | deal | number, stage, reason |
com.rdcopilot.crm.deal.reopened.v1 | A won or lost deal was opened again. | deal | number, from, to |
com.rdcopilot.crm.deal.order_created.v1 | The order of a won deal was created in ERP. | deal | number, order |
com.rdcopilot.crm.deal.merged.v1 | A duplicate lead was merged into a deal. | deal | number, merged |
com.rdcopilot.crm.task.created.v1 | A task was scheduled on a deal. | deal | number, taskId, kind, due |
com.rdcopilot.crm.task.completed.v1 | A task of a deal was completed. | deal | number, taskId |
com.rdcopilot.crm.activity.logged.v1 | A call, an e-mail or a meeting was logged. | activity | id, companyId, dealId, kind |
com.rdcopilot.crm.note.created.v1 | A note was written. | activity | id, companyId, dealId |
com.rdcopilot.crm.custom_field.created.v1 | A custom field was defined. | custom_field | id, entity, key |
A task is part of its deal, so a task event is about the deal and carries the revision of the deal. An activity and a note have their own revision, 1.
An event in full
This is com.rdcopilot.crm.deal.won.v1, sent when a deal is won.
{
"specversion": "1.0",
"id": "5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68",
"type": "com.rdcopilot.crm.deal.won.v1",
"source": "/crm/v1",
"time": "2026-11-23T09:41:07Z",
"customerOrgId": "a3f1d7c2-64be-4b09-9d58-2c0e7f1a8b34",
"legalCompanyId": "c8b25e90-1d47-4f3a-a6d2-93e0b51f7c68",
"aggregateType": "deal",
"aggregateId": "0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38",
"aggregateRevision": 6,
"correlationId": "f06a3b8d-9e21-47c5-8b14-d5a7e2c10963",
"causationId": "9a4e7b10-2c6d-4f38-b5a1-0d3e8c7f6b25",
"actor": {
"serviceId": "crm-api"
},
"data": {
"number": "DL-1038",
"stage": "won",
"reason": "delivery"
}
} Choose what you receive
A subscription names the types it wants in eventTypes. An event of another type is not sent to it. See Subscriptions.