Event catalogue
The events the gateway sends about a declaration, when each one is sent and what its data holds.
On this page
The gateway sends an event when the authority takes a step on a declaration or answers a message about it. Every event has the same envelope; the type and data say what happened. Register an endpoint to receive them: see Subscriptions.
| Type | Sent when |
|---|---|
com.rdcopilot.etransport.declaration.submitted.v1 | The declaration is uploaded and the authority returned an upload index. |
com.rdcopilot.etransport.declaration.accepted.v1 | The authority answered ok. data.uit holds the UIT code. |
com.rdcopilot.etransport.declaration.rejected.v1 | The authority answered nok, or refused the upload at once. data.message holds its words. The declaration is final. |
com.rdcopilot.etransport.declaration.corrected.v1 | The authority accepted a correction. The UIT code is the same; read the declaration for the new data. |
com.rdcopilot.etransport.declaration.vehicle_changed.v1 | The authority accepted a change of vehicle or trailers. |
com.rdcopilot.etransport.declaration.deleted.v1 | The authority accepted a deletion. The declaration is deleted. |
com.rdcopilot.etransport.declaration.confirmed.v1 | The authority accepted a confirmation of receipt. |
com.rdcopilot.etransport.declaration.correction_rejected.v1 | The authority answered nok to a correction. The declaration is as it was. |
com.rdcopilot.etransport.declaration.vehicle_change_rejected.v1 | The authority answered nok to a change of vehicle. The declaration is as it was. |
com.rdcopilot.etransport.declaration.deletion_rejected.v1 | The authority answered nok to a deletion. The declaration is as it was. |
com.rdcopilot.etransport.declaration.confirmation_rejected.v1 | The authority answered nok to a confirmation. The declaration is as it was. |
The data of an event
| Field | Meaning |
|---|---|
reference | Your own reference of the declaration. |
status | The last part of the type: what happened. |
uit | The UIT code, once the declaration has one. |
uploadIndex | The upload index the authority returned; null when the authority refused the upload at once. |
message | Only on the events that end in rejected: the message of the authority, exactly as it wrote it, in Romanian. |
aggregateId is the id of the declaration and aggregateRevision is its revision after the change. legalCompanyId is the id of the company. Read the declaration for everything else: an event says that something happened, not everything about the declaration.
declaration.submitted
{
"specversion": "1.0",
"id": "43b609d4-780b-4285-bd03-7ff2c466e469",
"type": "com.rdcopilot.etransport.declaration.submitted.v1",
"source": "/etransport/v1",
"time": "2026-11-23T07:04:35Z",
"customerOrgId": "861fd0e5-b274-4116-b470-16c69e2e8ac5",
"legalCompanyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"aggregateType": "declaration",
"aggregateId": "4533692d-469c-4b70-acdb-d1a9a4a0f54f",
"aggregateRevision": 5,
"correlationId": "9afbc7f7-143e-49a8-9a7d-81d90f4de866",
"causationId": "7f1ee52a-637d-4b15-867f-69a62ec26c6b",
"actor": {
"serviceId": "etransport-gateway"
},
"data": {
"reference": "LIV-2026-01842",
"status": "submitted",
"uit": null,
"uploadIndex": "1000128"
}
} declaration.accepted
{
"specversion": "1.0",
"id": "5e2c293e-79b8-40c0-b63b-06786623e659",
"type": "com.rdcopilot.etransport.declaration.accepted.v1",
"source": "/etransport/v1",
"time": "2026-11-23T07:05:41Z",
"customerOrgId": "861fd0e5-b274-4116-b470-16c69e2e8ac5",
"legalCompanyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"aggregateType": "declaration",
"aggregateId": "4533692d-469c-4b70-acdb-d1a9a4a0f54f",
"aggregateRevision": 7,
"correlationId": "9afbc7f7-143e-49a8-9a7d-81d90f4de866",
"causationId": "43b609d4-780b-4285-bd03-7ff2c466e469",
"actor": {
"serviceId": "etransport-gateway"
},
"data": {
"reference": "LIV-2026-01842",
"status": "accepted",
"uit": "4F7K2Q9M8X1D6383",
"uploadIndex": "1000128"
}
} declaration.rejected
The declaration LIV-2026-01790 was refused when the company’s access at the authority had been withdrawn. No upload index was used.
{
"specversion": "1.0",
"id": "b1d4edb1-8c0a-40a8-ad15-885a53657d2f",
"type": "com.rdcopilot.etransport.declaration.rejected.v1",
"source": "/etransport/v1",
"time": "2026-11-12T07:04:50Z",
"customerOrgId": "861fd0e5-b274-4116-b470-16c69e2e8ac5",
"legalCompanyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"aggregateType": "declaration",
"aggregateId": "ffe03a6e-e050-4a07-8043-dec108572aa9",
"aggregateRevision": 5,
"correlationId": "014d4f76-4452-4947-818d-d12edd29cdac",
"causationId": "685a6057-29e1-4368-8cfe-7b7b034db4a8",
"actor": {
"serviceId": "etransport-gateway"
},
"data": {
"reference": "LIV-2026-01790",
"status": "rejected",
"uit": null,
"uploadIndex": null,
"message": "Nu aveti drept in SPV pentru CIF=48290619"
}
} declaration.vehicle_changed
{
"specversion": "1.0",
"id": "9d1dcb29-9a7f-4b50-b942-c156e7b98f89",
"type": "com.rdcopilot.etransport.declaration.vehicle_changed.v1",
"source": "/etransport/v1",
"time": "2026-11-23T06:35:00Z",
"customerOrgId": "861fd0e5-b274-4116-b470-16c69e2e8ac5",
"legalCompanyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"aggregateType": "declaration",
"aggregateId": "15699075-5c6a-4a8b-a225-166309ad1b48",
"aggregateRevision": 9,
"correlationId": "eeac5f42-748c-4ea5-a5ab-fdc018306abd",
"causationId": "d973ea9e-e3a6-492a-8a45-1e38e01715c8",
"actor": {
"serviceId": "etransport-gateway"
},
"data": {
"reference": "LIV-2026-01839",
"status": "vehicle_changed",
"uit": "75LXQY50R5NU4243",
"uploadIndex": "1000221"
}
} declaration.confirmed
{
"specversion": "1.0",
"id": "80cd7f6b-3374-4b54-9ec7-4cad0c759418",
"type": "com.rdcopilot.etransport.declaration.confirmed.v1",
"source": "/etransport/v1",
"time": "2026-11-19T11:30:00Z",
"customerOrgId": "861fd0e5-b274-4116-b470-16c69e2e8ac5",
"legalCompanyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"aggregateType": "declaration",
"aggregateId": "5a0dcf1e-b471-4126-9daa-16a8acf1fe24",
"aggregateRevision": 9,
"correlationId": "c0a75804-2af7-4780-9604-ab82f6b3a943",
"causationId": "8f38a55b-85ff-4456-b1ee-ae383f210070",
"actor": {
"serviceId": "etransport-gateway"
},
"data": {
"reference": "LIV-2026-01830",
"status": "confirmed",
"uit": "PPX55NDPEX0LA680",
"uploadIndex": null
}
} What does not send an event
- A draft, a check and a change to a draft.
- The departure of the vehicle. You report it with
markDeparted, so you already know it; the gateway does not send it to the authority. - A declaration that goes to
manual_review: read the declaration instead. - A difference between the authority’s list and your records: read the reconciliation on your own schedule.