Event envelope
Every Tax Filing event has the same envelope; only data changes with the type of the event.
On this page
The type has the form com.rdcopilot.declarations.<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": "893cf669-78ed-4f1a-b114-1dbd42c777e9",
"type": "com.rdcopilot.declarations.return.accepted.v1",
"source": "/declarations/v1",
"time": "2026-10-22T09:47:40Z",
"customerOrgId": "bce4c5ae-2123-4dfd-8f45-6926644b91f7",
"legalCompanyId": "a79a302d-e7f0-4fde-9086-48c003b9709a",
"aggregateType": "return",
"aggregateId": "bffa5db8-996e-4309-a693-d91075904265",
"aggregateRevision": 9,
"correlationId": "1135fec5-bf19-4a52-8c33-e744f530deeb",
"causationId": "4bc9e2a0-fddf-4175-acd6-e3e89be8ab75",
"actor": {
"serviceId": "declarations-filing"
},
"data": {
"form": "D300",
"period": "2026-09",
"version": 1,
"status": "accepted",
"uploadIndex": "5013480112"
}
} 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