Event catalogue
The events the gateway sends about an invoice, when each one is sent and what its data holds.
On this page
The gateway sends an event when an invoice reaches one of three points on its way to the authority. Every event has the same envelope; the type and data say what happened. The Activity of the open invoice shows each delivery as invoice.submitted, invoice.accepted or invoice.rejected with the HTTP status and the attempt.
| Type | Sent when | Status in data |
|---|---|---|
com.rdcopilot.efactura.invoice.submitted.v1 | The file is uploaded and the authority returned an upload index. | submitted |
com.rdcopilot.efactura.invoice.accepted.v1 | The authority answered ok. | accepted |
com.rdcopilot.efactura.invoice.rejected.v1 | The authority answered nok. | rejected |
The data of an event
| Field | Meaning |
|---|---|
number | The number of the invoice. |
status | The status the invoice entered: the last part of the type. |
uploadIndex | The upload index the authority returned. |
message | Only on invoice.rejected: the message of the authority, exactly as the authority wrote it. |
aggregateId is the id of the invoice, and aggregateRevision is its revision after the change. legalCompanyId is the id of the company. Read the invoice for everything else: an event says that something happened, not everything about the invoice.
invoice.submitted
{
"specversion": "1.0",
"id": "e8865c55-97ee-4a5b-8fc7-6a09c43f1d10",
"type": "com.rdcopilot.efactura.invoice.submitted.v1",
"source": "/efactura/v1",
"time": "2026-11-19T14:31:09Z",
"customerOrgId": "0251aca7-6695-48b7-bedf-350aca348c01",
"legalCompanyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
"aggregateType": "invoice",
"aggregateId": "63b02302-55dc-4523-b584-c4eb55159924",
"aggregateRevision": 5,
"correlationId": "880876a9-3656-488d-acad-d98bdbea9c39",
"causationId": "1c3bf10c-f275-47d9-9050-dcfe136e1edd",
"actor": {
"serviceId": "efactura-gateway"
},
"data": {
"number": "FCT-2026-00418",
"status": "submitted",
"uploadIndex": "5012480131"
}
} invoice.accepted
{
"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"
}
} invoice.rejected
The invoice FCT-2026-00420 was rejected, and the message arrives in data.
{
"specversion": "1.0",
"id": "d97835ef-44ce-49c1-aeb3-42d03c3e6bcf",
"type": "com.rdcopilot.efactura.invoice.rejected.v1",
"source": "/efactura/v1",
"time": "2026-11-20T09:20:00Z",
"customerOrgId": "0251aca7-6695-48b7-bedf-350aca348c01",
"legalCompanyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
"aggregateType": "invoice",
"aggregateId": "b394e5da-e8fb-44dc-85ef-358e2e775692",
"aggregateRevision": 7,
"correlationId": "1230f204-ca8a-40f5-b451-070146aa2951",
"causationId": "37bb6d9d-8b62-488c-b5b0-78e4110d9dc8",
"actor": {
"serviceId": "efactura-gateway"
},
"data": {
"number": "FCT-2026-00420",
"status": "rejected",
"uploadIndex": "5012480152",
"message": "CIF-ul cumpărătorului (BT-48) nu a fost găsit în registrul contribuabililor."
}
} What does not send an event
- A draft, a check and a change to a draft.
- An invoice that goes to
manual_review: read the list of errors instead. See When the authority is unavailable. - A received invoice, a buyer message and a change of an authorisation: read them on your own schedule. See Sync received invoices.
Register an endpoint to receive these events: see Subscriptions.