Statuses
The statuses of a declaration and of a message, the words of the authority, and which statuses are final.
On this page
A declaration has one status at a time, and every change is recorded in its history. A message to the authority has a status of its own. Where the authority has a word for a status, the gateway shows it unchanged, in both languages: în prelucrare, ok and nok.
Declaration
| Status | Meaning |
|---|---|
| Received from your software and not sent. Checks run on it and it can be edited. | |
The checks passed. The gateway passes this status, authorized and queued in the same operation as the send. | |
| The access of the company is in force. | |
| Waiting to be uploaded. | |
| Uploaded. The authority returned the upload index. | |
processing | The authority is checking the declaration and has not given the UIT code yet. |
accepted | The authority answered ok. The declaration has its UIT code. A correction, a vehicle change and a confirmation are messages of their own and keep this status; a deletion ends in deleted. |
rejected | The authority answered nok, or refused the upload. The history entry carries its words. Final: write a new draft with reopenDeclaration. |
| The gateway cannot tell whether the authority received the upload. See When the authority is unavailable. | |
| The authority accepted a deletion, or the declaration was closed because the authority no longer lists it. Final. |
rejected and deleted are final: they never change. Every other status leads on. Treat a status you do not know as not final, so your code keeps working when a version adds one.
Message to the authority
| Status | Meaning |
|---|---|
| Uploaded; the upload index is known. | |
processing | The authority is checking the message. |
accepted | The authority applied the message. The declaration changes now. |
rejected | The authority refused it. The declaration stays as it was and message carries the authority’s words. A message refused at the upload has no upload index. |
| `kind` | Authority’s name | Sent by |
|---|---|---|
new | NOT | sendDeclaration, resendDeclaration |
correction | COR | correctDeclaration |
deletion | DEL | deleteDeclaration |
confirmation | CON | confirmReceipt |
vehicle_change | MVH | changeVehicle |
One message at a time waits for the authority per declaration. The gateway refuses another with notification_pending.
Confirmation
| `kind` | Authority code |
|---|---|
confirmed | 10 |
partly_confirmed | 20 |
rejected | 30 |
See Confirm receipt for the notes and for what counts when nobody confirms.
History
Every step is an entry of the history, oldest first, with its time: created, validated, authorized, queued, submitted, processing, accepted or rejected, then corrected, departed, vehicle_changed, confirmed and deleted, the four refusals of a message (correction_rejected, vehicle_change_rejected, confirmation_rejected, deletion_rejected), manual_review, and the two entries of a reconciliation, adopted and dropped. The message of an entry holds the words of the authority exactly as it wrote them. An entry with the code unknown-outcome says the gateway cannot tell whether an upload arrived.
The words of the authority
When the authority refuses something, the gateway keeps its words exactly as it wrote them, in Romanian, and shows them next to the status. Two examples: “Nu aveti drept in SPV pentru CIF=…” and “UIT-ul nu poate fi identificat.”.