Overview
What the e‑Transport Gateway API does, how a call is built and where to go next.
On this page
The e‑Transport Gateway API takes the transport declarations of your own software, checks them against the rules of the authority, sends them to RO e‑Transport and follows the answer up to the UIT code. Then the same API changes the vehicle, corrects or deletes the declaration before departure, confirms receipt and returns the data of the driver sheet. It is a JSON API over HTTPS: you send requests, and it sends events to an address you register.
Client credentials, your base address and a test company are issued with your account. Accounts are opened by our team: ask for one through the contact form and we set it up with you.
Request an accountHow a call works
Sign in
Ask for a token with your client credentials. See Authentication.
Choose the company
One account holds many companies, set up by our team with the account. Every request about declarations names its company with
companyId: read it from List companies.Write the declaration
Create it as a draft with its goods, route, vehicle and documents. The checks run and the answer carries the revision. See Operation types and required fields.
Send it
Send the draft with
sendDeclaration. Every change, this one included, carries anoperationIdand, on an existing declaration, anexpectedRevision. See Idempotency and concurrency.Follow it to the UIT code
The declaration is
processing(în prelucrare), thenaccepted(ok) with its UIT code, orrejected(nok). See Send and follow.Listen
Events tell you when a declaration changes. See Event envelope.
Declaration states
A declaration has one status. Where the authority has its own words, the gateway uses them. Statuses says what moves a declaration from one to the next.
| Status | Meaning |
|---|---|
draft | The gateway holds the declaration and the checks run on it. Nothing is sent to the authority. |
validated | No blocking check fails. |
authorized | The authorisation of the company is in force. |
queued | The declaration waits for its upload. |
submitted | The declaration is uploaded and the authority returned an upload index. |
processing | The authority has not finished checking the declaration. |
accepted | The authority accepted the declaration and gave it its UIT code. |
rejected | The authority refused the declaration and gave a message. A rejected declaration does not change; you write a new one from it. |
manual_review | The gateway cannot tell whether the upload arrived. Compare with the authority’s list, then send again. |
deleted | The authority accepted the deletion. The UIT code is no longer valid. |
After the UIT code
The UIT code is valid from the declared start date, for a number of days that depends on the operation type: see UIT validity and timing. A transport can be declared at most 3 calendar days before its start date. Within that validity you can act on the declaration (a deletion is not limited by it), and each action is a message to the authority with its own answer:
- Correct or delete the declaration while the vehicle has not left: Correct and delete.
- Change the vehicle after it left: Change the vehicle.
- Confirm receipt once the goods arrived: Confirm receipt.
- Give the driver the code: The driver sheet.
- Compare your records with the authority’s list: List and reconcile.
Where next
- Create your first declaration in the Quickstart.
- Learn what each operation type asks for in Operation types and required fields.
- Look up every operation in Declarations.
- Check your code against the Go-live checklist.