List and reconcile
List the declarations and the messages of a company, and compare your records with the list of the authority.
On this page
Two lists tell you what happened. The gateway’s own lists show its records. The authority’s list is the other side of the same transport, and comparing the two finds what changed outside the gateway.
Declarations
listDeclarations takes the companyId and returns the declarations of that company, newest start date first, in pages of 1 to 500. Filter by status, operationType, startFrom and startTo, by uit or by your own reference. Your reference is the quickest way back to your own record: it comes back with the UIT code.
curl
curl "$RDC_BASE_URL/etransport/v1/declarations?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/declarations?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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/declarations?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/declarations?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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/declarations?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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": "b0bc421b-5e82-4bc2-9416-a33bd20bf92e",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"reference": "PO-8862",
"operationType": "AIC",
"status": "processing",
"uit": null,
"uploadIndex": "1000131",
"startDate": "2026-11-24",
"lastValidDay": "2026-12-08",
"validity": null,
"partner": {
"country": "HU",
"code": "",
"name": "Tisza Pack Kft."
},
"transporter": {
"country": "RO",
"code": "62049137",
"name": "Transbistrița Logistic SRL"
},
"vehicle": "ZZ41TBL",
"trailers": [
"ZZ42TBL"
],
"from": {
"kind": "border_crossing",
"crossing": 2
},
"to": {
"kind": "address",
"county": 27,
"locality": "Piatra-Neamț",
"street": "Str. Depozitelor",
"number": null,
"notes": "Rampa 4"
},
"goods": [
{
"line": 1,
"code": null,
"name": "Cutii de carton ondulat, 40 de paleți",
"tariffCode": "481910",
"purposeCode": 101,
"quantity": "40",
"unit": "XPX",
"netMass": "1180.00",
"grossMass": "1240.00",
"value": "18400.00"
}
],
"documents": [
{
"type": "cmr",
"number": "CMR-HU-55812",
"date": "2026-11-23",
"remarks": null
},
{
"type": "invoice",
"number": "TP-30918",
"date": "2026-11-22",
"remarks": null
}
],
"totals": {
"lines": 1,
"netMass": "1180.00",
"grossMass": "1240.00",
"value": "18400.00"
},
"departedAt": null,
"confirmation": null,
"vehicleChanges": [],
"correctionOf": null,
"afterOutage": false,
"source": "gateway",
"revision": 6
},
{
"id": "15699075-5c6a-4a8b-a225-166309ad1b48",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"reference": "LIV-2026-01839",
"operationType": "TTN",
"status": "accepted",
"uit": "75LXQY50R5NU4243",
"uploadIndex": "1000121",
"startDate": "2026-11-23",
"lastValidDay": "2026-11-27",
"validity": "valid",
"partner": {
"country": "RO",
"code": "39172614",
"name": "Cofetăria Vălul Alb SRL"
},
"transporter": {
"country": "RO",
"code": "48290619",
"name": "Brumar Distribuție SRL"
},
"vehicle": "ZZ24BRM",
"trailers": [],
"from": {
"kind": "address",
"county": 27,
"locality": "Piatra-Neamț",
"street": "Str. Depozitelor",
"number": null,
"notes": "Rampa 4"
},
"to": {
"kind": "address",
"county": 27,
"locality": "Roman",
"street": "Str. Principală",
"number": null,
"notes": null
},
"goods": [
{
"line": 1,
"code": "ME-0307",
"name": "Mere Golden, ladă de 12 kg",
"tariffCode": "080810",
"purposeCode": 101,
"quantity": "12",
"unit": "XCR",
"netMass": "144.00",
"grossMass": "154.80",
"value": "576.00"
},
{
"line": 2,
"code": "NU-0622",
"name": "Nuci decojite, sac de 5 kg",
"tariffCode": "080232",
"purposeCode": 101,
"quantity": "6",
"unit": "XBG",
"netMass": "30.00",
"grossMass": "30.60",
"value": "1800.00"
},
{
"line": 3,
"code": "AP-0412",
"name": "Apă minerală plată, 2 l, set de 6",
"tariffCode": "220110",
"purposeCode": 101,
"quantity": "6",
"unit": "XPK",
"netMass": "72.00",
"grossMass": "76.20",
"value": "90.00"
}
],
"documents": [
{
"type": "delivery_note",
"number": "AV-1039",
"date": "2026-11-23",
"remarks": null
},
{
"type": "invoice",
"number": "BRD-2026-00415",
"date": "2026-11-23",
"remarks": null
}
],
"totals": {
"lines": 3,
"netMass": "246.00",
"grossMass": "261.60",
"value": "2466.00"
},
"departedAt": "2026-11-23T05:48:00Z",
"confirmation": null,
"vehicleChanges": [
{
"at": "2026-11-23T06:35:00Z",
"vehicle": "ZZ24BRM",
"trailers": [],
"note": "Pană de cauciuc, vehicul înlocuit"
}
],
"correctionOf": null,
"afterOutage": false,
"source": "gateway",
"revision": 3
},
{
"id": "4533692d-469c-4b70-acdb-d1a9a4a0f54f",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"reference": "LIV-2026-01842",
"operationType": "TTN",
"status": "accepted",
"uit": "4F7K2Q9M8X1D6383",
"uploadIndex": "1000128",
"startDate": "2026-11-23",
"lastValidDay": "2026-11-27",
"validity": "valid",
"partner": {
"country": "RO",
"code": "39172541",
"name": "Hanul Ozana 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": "Târgu Neamț",
"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": "6",
"unit": "XBG",
"netMass": "150.00",
"grossMass": "151.80",
"value": "330.00"
},
{
"line": 2,
"code": "CE-0101",
"name": "Ceapă galbenă, plasă de 10 kg",
"tariffCode": "070310",
"purposeCode": 101,
"quantity": "4",
"unit": "XBG",
"netMass": "40.00",
"grossMass": "40.60",
"value": "112.00"
},
{
"line": 3,
"code": "MO-0201",
"name": "Morcovi, sac de 10 kg",
"tariffCode": "070610",
"purposeCode": 101,
"quantity": "4",
"unit": "XBG",
"netMass": "40.00",
"grossMass": "40.60",
"value": "128.00"
},
{
"line": 4,
"code": "ME-0307",
"name": "Mere Golden, ladă de 12 kg",
"tariffCode": "080810",
"purposeCode": 101,
"quantity": "8",
"unit": "XCR",
"netMass": "96.00",
"grossMass": "103.20",
"value": "384.00"
},
{
"line": 5,
"code": "AP-0412",
"name": "Apă minerală plată, 2 l, set de 6",
"tariffCode": "220110",
"purposeCode": 101,
"quantity": "10",
"unit": "XPK",
"netMass": "120.00",
"grossMass": "127.00",
"value": "150.00"
},
{
"line": 6,
"code": "SU-0518",
"name": "Băutură carbogazoasă îndulcită, 2 l, set de 6",
"tariffCode": "220210",
"purposeCode": 101,
"quantity": "3",
"unit": "XPK",
"netMass": "36.00",
"grossMass": "38.10",
"value": "72.00"
}
],
"documents": [
{
"type": "delivery_note",
"number": "AV-1042",
"date": "2026-11-23",
"remarks": null
},
{
"type": "invoice",
"number": "BRD-2026-00418",
"date": "2026-11-23",
"remarks": null
}
],
"totals": {
"lines": 6,
"netMass": "482.00",
"grossMass": "501.30",
"value": "1176.00"
},
"departedAt": null,
"confirmation": null,
"vehicleChanges": [],
"correctionOf": null,
"afterOutage": false,
"source": "gateway",
"revision": 1
}
],
"nextCursor": null
} Messages to the authority
Every upload is a message with a kind, as the authority names them: NOT for the new declaration, COR for a correction, DEL for a deletion, CON for a confirmation and MVH for a vehicle change. listNotifications returns the messages of a company, newest first, and keeps one declarationId, one kind or one status. A message that the authority refused carries its words in message.
curl
curl "$RDC_BASE_URL/etransport/v1/notifications?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/notifications?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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/notifications?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/notifications?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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/notifications?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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": "8d2e6a23-4f47-43b2-9fad-34c9ed390c39",
"declarationId": "15699075-5c6a-4a8b-a225-166309ad1b48",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"kind": "vehicle_change",
"authorityKind": "MVH",
"status": "accepted",
"uploadIndex": "1000221",
"at": "2026-11-23T06:35:00Z",
"message": null
},
{
"id": "fd8761d6-61fe-4ab4-8a90-09a85fd45dd2",
"declarationId": "15699075-5c6a-4a8b-a225-166309ad1b48",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"kind": "new",
"authorityKind": "NOT",
"status": "accepted",
"uploadIndex": "1000121",
"at": "2026-11-22T07:04:35Z",
"message": null
}
],
"nextCursor": null
} {
"id": "8d2e6a23-4f47-43b2-9fad-34c9ed390c39",
"declarationId": "15699075-5c6a-4a8b-a225-166309ad1b48",
"companyId": "9a893b65-2286-477f-8eab-61c12f7d6b3e",
"kind": "vehicle_change",
"authorityKind": "MVH",
"status": "accepted",
"uploadIndex": "1000221",
"at": "2026-11-23T06:35:00Z",
"message": null
} Compare with the authority’s list
The authority lists the declarations of a company for the last 1 to 60 days. getReconciliation takes the companyId and days (1 to 60) and compares that list with your accepted declarations over the same days. A declaration older than the days you ask for is not compared.
curl
curl "$RDC_BASE_URL/etransport/v1/reconciliation?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/reconciliation?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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/reconciliation?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/reconciliation?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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/reconciliation?companyId=9a893b65-2286-477f-8eab-61c12f7d6b3e&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": [
{
"kind": "matched",
"uit": "4F7K2Q9M8X1D6383",
"declarationId": "4533692d-469c-4b70-acdb-d1a9a4a0f54f",
"differences": []
},
{
"kind": "matched",
"uit": "75LXQY50R5NU4243",
"declarationId": "15699075-5c6a-4a8b-a225-166309ad1b48",
"differences": []
},
{
"kind": "missing",
"uit": "08FJ6Y2T2A4WUL40",
"declarationId": "b56d6271-6c16-41b4-8b31-43ef7c1c179b",
"differences": []
},
{
"kind": "matched",
"uit": "PPX55NDPEX0LA680",
"declarationId": "5a0dcf1e-b471-4126-9daa-16a8acf1fe24",
"differences": []
},
{
"kind": "differs",
"uit": "L25N2NH2P0DWNY57",
"declarationId": "76133192-68de-47e7-9320-08e012e7075b",
"differences": [
"vehicle"
]
},
{
"kind": "unknown",
"uit": "KMC1WQ1R1V7VCH82",
"declarationId": null,
"differences": []
}
],
"nextCursor": null
} | `kind` | Meaning | What you do |
|---|---|---|
matched | The authority holds the code with the same vehicle and trailers, the same start date and the same last confirmation. | Nothing. |
differs | The authority holds the code, and differences names what is not the same: vehicle, start_date, confirmation. | Adopt the authority’s version. |
missing | You hold an accepted declaration whose code the authority no longer lists. Another user of the company may have removed it in the authority’s own application. | Close the declaration. |
unknown | The authority lists a code you do not hold, for example a transport entered in its own application. | Adopt the record. |
Adopt the authority’s record
For an unknown code, adoptAuthorityRecord creates an accepted declaration with source authority. The authority’s list returns totals, not lines, so the new declaration has the number of lines, the masses and the value, no goods lines, and no from and to. For a record that differs, the gateway takes the authority’s vehicle, trailers, start date and confirmation. The authority is the reference, so nothing is sent to it. It is refused with in_sync when the record already matches and with uit_not_found for a code the authority does not list.
curl
curl -X POST "$RDC_BASE_URL/etransport/v1/reconciliation/adopt" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "0fdbc1ea-a7f7-4ef0-a735-f9f4f1e01ab0",
"uit": "KMC1WQ1R1V7VCH82"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/reconciliation/adopt`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "0fdbc1ea-a7f7-4ef0-a735-f9f4f1e01ab0",
"uit": "KMC1WQ1R1V7VCH82"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/etransport/v1/reconciliation/adopt',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '0fdbc1ea-a7f7-4ef0-a735-f9f4f1e01ab0',
'uit': 'KMC1WQ1R1V7VCH82',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "0fdbc1ea-a7f7-4ef0-a735-f9f4f1e01ab0",
"uit": "KMC1WQ1R1V7VCH82"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/reconciliation/adopt');
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/reconciliation/adopt");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "0fdbc1ea-a7f7-4ef0-a735-f9f4f1e01ab0",
"uit": "KMC1WQ1R1V7VCH82"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "0fdbc1ea-a7f7-4ef0-a735-f9f4f1e01ab0",
"status": "accepted",
"aggregateId": "0776bc3f-c5ed-4aa8-8f25-40152eee2b42",
"aggregateRevision": 1
} Close a missing declaration
For a missing declaration, closeMissingDeclaration ends it as deleted; the history gets the entry dropped. It is refused with still_listed while the authority still lists the code, and with invalid_status when the declaration is not accepted. Read the reconciliation again before you close: the list can change between two requests.
curl
curl -X POST "$RDC_BASE_URL/etransport/v1/declarations/b56d6271-6c16-41b4-8b31-43ef7c1c179b/close" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "6fa5228b-1bbd-4fae-818f-4ef6861fd7b3",
"expectedRevision": 2
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etransport/v1/declarations/b56d6271-6c16-41b4-8b31-43ef7c1c179b/close`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "6fa5228b-1bbd-4fae-818f-4ef6861fd7b3",
"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/b56d6271-6c16-41b4-8b31-43ef7c1c179b/close',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '6fa5228b-1bbd-4fae-818f-4ef6861fd7b3',
'expectedRevision': 2,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "6fa5228b-1bbd-4fae-818f-4ef6861fd7b3",
"expectedRevision": 2
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/etransport/v1/declarations/b56d6271-6c16-41b4-8b31-43ef7c1c179b/close');
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/b56d6271-6c16-41b4-8b31-43ef7c1c179b/close");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "6fa5228b-1bbd-4fae-818f-4ef6861fd7b3",
"expectedRevision": 2
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "6fa5228b-1bbd-4fae-818f-4ef6861fd7b3",
"status": "accepted",
"aggregateId": "b56d6271-6c16-41b4-8b31-43ef7c1c179b",
"aggregateRevision": 3
}