Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    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

    TypeSent whenAggregateFields of `data`
    com.rdcopilot.crm.company.created.v1A company was created.companyid, name
    com.rdcopilot.crm.company.updated.v1A company was changed.companyid, fields
    com.rdcopilot.crm.person.created.v1A person was created.personid, companyId
    com.rdcopilot.crm.deal.created.v1A deal was created as a lead.dealnumber, companyId, value
    com.rdcopilot.crm.deal.moved.v1A deal moved to another open stage.dealnumber, from, to
    com.rdcopilot.crm.deal.won.v1A deal was won.dealnumber, stage, reason
    com.rdcopilot.crm.deal.lost.v1A deal was lost.dealnumber, stage, reason
    com.rdcopilot.crm.deal.reopened.v1A won or lost deal was opened again.dealnumber, from, to
    com.rdcopilot.crm.deal.order_created.v1The order of a won deal was created in ERP.dealnumber, order
    com.rdcopilot.crm.deal.merged.v1A duplicate lead was merged into a deal.dealnumber, merged
    com.rdcopilot.crm.task.created.v1A task was scheduled on a deal.dealnumber, taskId, kind, due
    com.rdcopilot.crm.task.completed.v1A task of a deal was completed.dealnumber, taskId
    com.rdcopilot.crm.activity.logged.v1A call, an e-mail or a meeting was logged.activityid, companyId, dealId, kind
    com.rdcopilot.crm.note.created.v1A note was written.activityid, companyId, dealId
    com.rdcopilot.crm.custom_field.created.v1A custom field was defined.custom_fieldid, 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.

    JSON

    {
      "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.