Event envelope
Every e‑Factura Gateway event has the same envelope; only data changes with the type of the event.
On this page
The type has the form com.rdcopilot.efactura.<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": "1ed08bdf-9f2a-4c4e-92ed-4b91b9440fff",
"type": "com.rdcopilot.efactura.invoice.accepted.v1",
"source": "/efactura/v1",
"time": "2026-11-19T14:37:40Z",
"customerOrgId": "0251aca7-6695-48b7-bedf-350aca348c01",
"legalCompanyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
"aggregateType": "invoice",
"aggregateId": "63b02302-55dc-4523-b584-c4eb55159924",
"aggregateRevision": 7,
"correlationId": "880876a9-3656-488d-acad-d98bdbea9c39",
"causationId": "e8865c55-97ee-4a5b-8fc7-6a09c43f1d10",
"actor": {
"serviceId": "efactura-gateway"
},
"data": {
"number": "FCT-2026-00418",
"status": "accepted",
"uploadIndex": "5012480131"
}
} 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