Quickstart
Declare your first transport from the test company: write the declaration, read its checks, send it and follow it to the UIT code.
On this page
You need the client credentials and the base address of your test company. The samples read them from the environment: $RDC_BASE_URL and $RDC_TOKEN. See Authentication for the token and Sandbox and live for the test company.
Find the company
Every declaration belongs to a company of your account. List the companies and keep the id of the one you declare for.
curl
curl "$RDC_BASE_URL/etransport/v1/companies?limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/companies?limit=20`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/etransport/v1/companies?limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/companies?limit=20');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/etransport/v1/companies?limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"items": [
{
"id": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"name": "Brumar Distribuție SRL",
"cif": "48290619",
"vatId": "RO48290619",
"authorisation": {
"status": "active"
},
"revision": 1
},
{
"id": "32196739-e7bb-4eb6-bea4-7eb8cca86049",
"name": "Brumar Retail SRL",
"cif": "48290783",
"vatId": "RO48290783",
"authorisation": {
"status": "active"
},
"revision": 1
}
],
"nextCursor": null
} Write the declaration
The sample is a delivery within Romania (TTN) that starts tomorrow. The start date is the first day the UIT code is valid, and a transport can be declared at most 3 calendar days before it. Choose a new operationId and send the declaration with the id of the company; the answer says that the change was accepted. The names of the goods are sent as the authority reads them, in Romanian, whatever the language of your screen.
Create a declaration
curl
curl -X POST "$RDC_BASE_URL/etransport/v1/declarations" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "e8c04ac1-44dd-49e2-bc09-9666dec1d95b",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"operationType": "TTN",
"startDate": "2026-11-24",
"reference": "LIV-2026-01847",
"partner": {
"country": "RO",
"code": "39172789",
"name": "Pensiunea Stânca Corbului SRL"
},
"transporter": {
"country": "RO",
"code": "48290619",
"name": "Brumar Distribuție SRL"
},
"vehicle": "ZZ21BRM",
"trailers": [],
"from": {
"kind": "address",
"county": 27,
"locality": "Piatra-Neamț",
"street": "Str. Depozitelor",
"number": null,
"notes": "Rampa 4"
},
"to": {
"kind": "address",
"county": 27,
"locality": "Bicaz",
"street": "Str. Principală",
"number": null,
"notes": null
},
"goods": [
{
"code": "CA-0010",
"name": "Cartofi albi, sac de 25 kg",
"tariffCode": "070190",
"purposeCode": 101,
"quantity": "20",
"unit": "XBG",
"netMass": "500.00",
"grossMass": "506.00",
"value": "1100.00"
},
{
"code": "ME-0307",
"name": "Mere Golden, ladă de 12 kg",
"tariffCode": "080810",
"purposeCode": 101,
"quantity": "10",
"unit": "XCR",
"netMass": "120.00",
"grossMass": "129.00",
"value": "480.00"
}
],
"documents": [
{
"type": "delivery_note",
"number": "AV-1047",
"date": "2026-11-24"
},
{
"type": "invoice",
"number": "BRD-2026-00426",
"date": "2026-11-24"
}
],
"afterOutage": false
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/declarations`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "e8c04ac1-44dd-49e2-bc09-9666dec1d95b",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"operationType": "TTN",
"startDate": "2026-11-24",
"reference": "LIV-2026-01847",
"partner": {
"country": "RO",
"code": "39172789",
"name": "Pensiunea Stânca Corbului SRL"
},
"transporter": {
"country": "RO",
"code": "48290619",
"name": "Brumar Distribuție SRL"
},
"vehicle": "ZZ21BRM",
"trailers": [],
"from": {
"kind": "address",
"county": 27,
"locality": "Piatra-Neamț",
"street": "Str. Depozitelor",
"number": null,
"notes": "Rampa 4"
},
"to": {
"kind": "address",
"county": 27,
"locality": "Bicaz",
"street": "Str. Principală",
"number": null,
"notes": null
},
"goods": [
{
"code": "CA-0010",
"name": "Cartofi albi, sac de 25 kg",
"tariffCode": "070190",
"purposeCode": 101,
"quantity": "20",
"unit": "XBG",
"netMass": "500.00",
"grossMass": "506.00",
"value": "1100.00"
},
{
"code": "ME-0307",
"name": "Mere Golden, ladă de 12 kg",
"tariffCode": "080810",
"purposeCode": 101,
"quantity": "10",
"unit": "XCR",
"netMass": "120.00",
"grossMass": "129.00",
"value": "480.00"
}
],
"documents": [
{
"type": "delivery_note",
"number": "AV-1047",
"date": "2026-11-24"
},
{
"type": "invoice",
"number": "BRD-2026-00426",
"date": "2026-11-24"
}
],
"afterOutage": false
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/etransport/v1/declarations',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'e8c04ac1-44dd-49e2-bc09-9666dec1d95b',
'companyId': '9a893b65-2286-477f-8eab-61c12f7d6b3e',
'operationType': 'TTN',
'startDate': '2026-11-24',
'reference': 'LIV-2026-01847',
'partner': {
'country': 'RO',
'code': '39172789',
'name': 'Pensiunea Stânca Corbului SRL',
},
'transporter': {
'country': 'RO',
'code': '48290619',
'name': 'Brumar Distribuție SRL',
},
'vehicle': 'ZZ21BRM',
'trailers': [],
'from': {
'kind': 'address',
'county': 27,
'locality': 'Piatra-Neamț',
'street': 'Str. Depozitelor',
'number': None,
'notes': 'Rampa 4',
},
'to': {
'kind': 'address',
'county': 27,
'locality': 'Bicaz',
'street': 'Str. Principală',
'number': None,
'notes': None,
},
'goods': [
{
'code': 'CA-0010',
'name': 'Cartofi albi, sac de 25 kg',
'tariffCode': '070190',
'purposeCode': 101,
'quantity': '20',
'unit': 'XBG',
'netMass': '500.00',
'grossMass': '506.00',
'value': '1100.00',
},
{
'code': 'ME-0307',
'name': 'Mere Golden, ladă de 12 kg',
'tariffCode': '080810',
'purposeCode': 101,
'quantity': '10',
'unit': 'XCR',
'netMass': '120.00',
'grossMass': '129.00',
'value': '480.00',
},
],
'documents': [
{
'type': 'delivery_note',
'number': 'AV-1047',
'date': '2026-11-24',
},
{
'type': 'invoice',
'number': 'BRD-2026-00426',
'date': '2026-11-24',
},
],
'afterOutage': False,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "e8c04ac1-44dd-49e2-bc09-9666dec1d95b",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"operationType": "TTN",
"startDate": "2026-11-24",
"reference": "LIV-2026-01847",
"partner": {
"country": "RO",
"code": "39172789",
"name": "Pensiunea Stânca Corbului SRL"
},
"transporter": {
"country": "RO",
"code": "48290619",
"name": "Brumar Distribuție SRL"
},
"vehicle": "ZZ21BRM",
"trailers": [],
"from": {
"kind": "address",
"county": 27,
"locality": "Piatra-Neamț",
"street": "Str. Depozitelor",
"number": null,
"notes": "Rampa 4"
},
"to": {
"kind": "address",
"county": 27,
"locality": "Bicaz",
"street": "Str. Principală",
"number": null,
"notes": null
},
"goods": [
{
"code": "CA-0010",
"name": "Cartofi albi, sac de 25 kg",
"tariffCode": "070190",
"purposeCode": 101,
"quantity": "20",
"unit": "XBG",
"netMass": "500.00",
"grossMass": "506.00",
"value": "1100.00"
},
{
"code": "ME-0307",
"name": "Mere Golden, ladă de 12 kg",
"tariffCode": "080810",
"purposeCode": 101,
"quantity": "10",
"unit": "XCR",
"netMass": "120.00",
"grossMass": "129.00",
"value": "480.00"
}
],
"documents": [
{
"type": "delivery_note",
"number": "AV-1047",
"date": "2026-11-24"
},
{
"type": "invoice",
"number": "BRD-2026-00426",
"date": "2026-11-24"
}
],
"afterOutage": false
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/declarations');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/etransport/v1/declarations");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "e8c04ac1-44dd-49e2-bc09-9666dec1d95b",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"operationType": "TTN",
"startDate": "2026-11-24",
"reference": "LIV-2026-01847",
"partner": {
"country": "RO",
"code": "39172789",
"name": "Pensiunea Stânca Corbului SRL"
},
"transporter": {
"country": "RO",
"code": "48290619",
"name": "Brumar Distribuție SRL"
},
"vehicle": "ZZ21BRM",
"trailers": [],
"from": {
"kind": "address",
"county": 27,
"locality": "Piatra-Neamț",
"street": "Str. Depozitelor",
"number": null,
"notes": "Rampa 4"
},
"to": {
"kind": "address",
"county": 27,
"locality": "Bicaz",
"street": "Str. Principală",
"number": null,
"notes": null
},
"goods": [
{
"code": "CA-0010",
"name": "Cartofi albi, sac de 25 kg",
"tariffCode": "070190",
"purposeCode": 101,
"quantity": "20",
"unit": "XBG",
"netMass": "500.00",
"grossMass": "506.00",
"value": "1100.00"
},
{
"code": "ME-0307",
"name": "Mere Golden, ladă de 12 kg",
"tariffCode": "080810",
"purposeCode": 101,
"quantity": "10",
"unit": "XCR",
"netMass": "120.00",
"grossMass": "129.00",
"value": "480.00"
}
],
"documents": [
{
"type": "delivery_note",
"number": "AV-1047",
"date": "2026-11-24"
},
{
"type": "invoice",
"number": "BRD-2026-00426",
"date": "2026-11-24"
}
],
"afterOutage": false
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "e8c04ac1-44dd-49e2-bc09-9666dec1d95b",
"status": "accepted",
"aggregateId": "0776bc3f-c5ed-4aa8-8f25-40152eee2b42",
"aggregateRevision": 1
} Read the result
Look the operation up with the operationId you sent. When status is completed, the declaration exists as a draft and aggregateId is its id.
curl
curl "$RDC_BASE_URL/etransport/v1/operations/e8c04ac1-44dd-49e2-bc09-9666dec1d95b" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/operations/e8c04ac1-44dd-49e2-bc09-9666dec1d95b`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/etransport/v1/operations/e8c04ac1-44dd-49e2-bc09-9666dec1d95b',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/operations/e8c04ac1-44dd-49e2-bc09-9666dec1d95b');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/etransport/v1/operations/e8c04ac1-44dd-49e2-bc09-9666dec1d95b");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "e8c04ac1-44dd-49e2-bc09-9666dec1d95b",
"status": "completed",
"aggregateId": "0776bc3f-c5ed-4aa8-8f25-40152eee2b42",
"aggregateRevision": 1
} The status of an operation is not the status of the declaration:
| Status | Meaning |
|---|---|
| The request was recorded and is being applied. | |
| The change was applied. | |
| The request was refused. Nothing was changed. |
Read the checks
The gateway checks the draft before it will send it. A check of severity error blocks sending; a warning does not. canSend is true when no error remains. Errors and warnings lists the checks and what to do when one fails.
Get the checks of a declaration
curl
curl "$RDC_BASE_URL/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/checks" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/checks`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/checks',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/checks');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/checks");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"declarationId": "0776bc3f-c5ed-4aa8-8f25-40152eee2b42",
"revision": 1,
"canSend": true,
"blocking": 0,
"checks": []
} Send the declaration
Send the revision you read as expectedRevision. If someone changed the declaration in the meantime, the answer is a 409 and nothing is applied. While a check blocks, the answer is a 422 and the declaration stays a draft.
Send a declaration
curl
curl -X POST "$RDC_BASE_URL/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/send" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "6256604e-3b85-4790-bca3-20628a474b86",
"expectedRevision": 1
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/send`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "6256604e-3b85-4790-bca3-20628a474b86",
"expectedRevision": 1
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/send',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '6256604e-3b85-4790-bca3-20628a474b86',
'expectedRevision': 1,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "6256604e-3b85-4790-bca3-20628a474b86",
"expectedRevision": 1
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/send');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/send");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "6256604e-3b85-4790-bca3-20628a474b86",
"expectedRevision": 1
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "6256604e-3b85-4790-bca3-20628a474b86",
"status": "accepted",
"aggregateId": "0776bc3f-c5ed-4aa8-8f25-40152eee2b42",
"aggregateRevision": 2
} Follow it to the UIT code
The declaration is now submitted and carries the uploadIndex the authority returned. Ask the authority now: the first answer is processing (în prelucrare).
Ask the authority: processing
curl
curl -X POST "$RDC_BASE_URL/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/refresh" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "8e5c7aef-b064-4e1f-8926-8c47e03e1bea",
"expectedRevision": 2
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/refresh`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "8e5c7aef-b064-4e1f-8926-8c47e03e1bea",
"expectedRevision": 2
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/refresh',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '8e5c7aef-b064-4e1f-8926-8c47e03e1bea',
'expectedRevision': 2,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "8e5c7aef-b064-4e1f-8926-8c47e03e1bea",
"expectedRevision": 2
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/refresh');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/refresh");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "8e5c7aef-b064-4e1f-8926-8c47e03e1bea",
"expectedRevision": 2
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "8e5c7aef-b064-4e1f-8926-8c47e03e1bea",
"status": "accepted",
"aggregateId": "0776bc3f-c5ed-4aa8-8f25-40152eee2b42",
"aggregateRevision": 3
} Ask again. When the authority is done, the declaration is accepted (ok) and takes its UIT code; or it is rejected (nok) with the authority’s message. refreshDeclaration is refused with nothing_pending when no upload waits for an answer.
Ask the authority: ok
curl
curl -X POST "$RDC_BASE_URL/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/refresh" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "c814b45c-7b57-48b3-b713-732ccfb147d4",
"expectedRevision": 3
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/refresh`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "c814b45c-7b57-48b3-b713-732ccfb147d4",
"expectedRevision": 3
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/refresh',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'c814b45c-7b57-48b3-b713-732ccfb147d4',
'expectedRevision': 3,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "c814b45c-7b57-48b3-b713-732ccfb147d4",
"expectedRevision": 3
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/refresh');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42/refresh");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "c814b45c-7b57-48b3-b713-732ccfb147d4",
"expectedRevision": 3
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "c814b45c-7b57-48b3-b713-732ccfb147d4",
"status": "accepted",
"aggregateId": "0776bc3f-c5ed-4aa8-8f25-40152eee2b42",
"aggregateRevision": 4
} Read the UIT code
Read the declaration. uit is the code to give the driver, lastValidDay is the last day it may be used and validity says where today stands: the start date is tomorrow, so it is scheduled.
Get a declaration
curl
curl "$RDC_BASE_URL/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/etransport/v1/declarations/0776bc3f-c5ed-4aa8-8f25-40152eee2b42");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"id": "0776bc3f-c5ed-4aa8-8f25-40152eee2b42",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"reference": "LIV-2026-01847",
"operationType": "TTN",
"status": "accepted",
"uit": "42MHC62P9YM7QD29",
"uploadIndex": "1000132",
"startDate": "2026-11-24",
"lastValidDay": "2026-11-28",
"validity": "scheduled",
"partner": {
"country": "RO",
"code": "39172789",
"name": "Pensiunea Stânca Corbului SRL"
},
"transporter": {
"country": "RO",
"code": "48290619",
"name": "Brumar Distribuție SRL"
},
"vehicle": "ZZ21BRM",
"trailers": [],
"from": {
"kind": "address",
"county": 27,
"locality": "Piatra-Neamț",
"street": "Str. Depozitelor",
"number": null,
"notes": "Rampa 4"
},
"to": {
"kind": "address",
"county": 27,
"locality": "Bicaz",
"street": "Str. Principală",
"number": null,
"notes": null
},
"goods": [
{
"line": 1,
"code": "CA-0010",
"name": "Cartofi albi, sac de 25 kg",
"tariffCode": "070190",
"purposeCode": 101,
"quantity": "20",
"unit": "XBG",
"netMass": "500.00",
"grossMass": "506.00",
"value": "1100.00"
},
{
"line": 2,
"code": "ME-0307",
"name": "Mere Golden, ladă de 12 kg",
"tariffCode": "080810",
"purposeCode": 101,
"quantity": "10",
"unit": "XCR",
"netMass": "120.00",
"grossMass": "129.00",
"value": "480.00"
}
],
"documents": [
{
"type": "delivery_note",
"number": "AV-1047",
"date": "2026-11-24",
"remarks": null
},
{
"type": "invoice",
"number": "BRD-2026-00426",
"date": "2026-11-24",
"remarks": null
}
],
"totals": {
"lines": 2,
"netMass": "620.00",
"grossMass": "635.00",
"value": "1580.00"
},
"departedAt": null,
"confirmation": null,
"vehicleChanges": [],
"correctionOf": null,
"afterOutage": false,
"source": "gateway",
"revision": 4
} Instead of asking, you can register an endpoint and let the events tell you: see Subscriptions. Next, see what you can do with the code in UIT validity and timing and The driver sheet.