Event envelope
Every Treasury event has the same envelope; only data changes with the type of the event.
On this page
The type has the form com.rdcopilot.banking.<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
{
"specversion": "1.0",
"id": "357624c2-3dac-46c3-a319-4900ec7844e9",
"type": "com.rdcopilot.banking.payment.rejected.v1",
"source": "/banking/v1",
"time": "2026-11-23T07:12:00Z",
"customerOrgId": "cd2cb4c5-1c0b-444a-8406-0f7045c8f12d",
"legalCompanyId": "3e738c06-3df7-4eb7-bfe2-259b8ba481f9",
"aggregateType": "payment",
"aggregateId": "cef8de13-2bf6-45ea-954f-036e324a40d5",
"aggregateRevision": 6,
"correlationId": "7cd5439b-9494-49c6-bc36-ab83cbf3df25",
"causationId": "202e914a-22a1-448b-8f98-e27eac7090d5",
"actor": {
"serviceId": "banking-treasury"
},
"data": {
"number": "PP-1002",
"bankReason": "Beneficiary account closed",
"transactionId": "58ba7b3a-6ba5-4483-9611-f93018eca7c9"
}
} Deliveries can repeat. Use id to skip an event you already handled. Delivery and retries says when an event is sent again.
The full rule: Developer guide