Check against SAF-T
Import the invoice-level data of your SAF-T return as postings, compare the period against it, and go back to the postings of your ledger.
On this page
The informative return D406 (SAF-T) carries the sales and purchase invoices at invoice level: partner, invoice date, invoice lines and tax code.
That level is the one the comparison works at. A period normally compares the pre-filled return with the postings of your ledger. You can compare it with your SAF-T return instead: import its invoices as postings with the source saf-t. The pre-filled side does not change.
Read the period
getPeriodshowspostingsSourceand therevisionto send.Make one posting per invoice
Take each invoice of the SAF-T return of the month, with its partner, date and the base at each rate.
Import with the source
saf-tSend them with
importPostings.Read the rows
listRowsandlistDifferencesnow compare against the SAF-T data.Go back to the ledger
Import the postings of the ledger again.
Which source the period uses
postingsSource of the period is ledger or saf-t. It is the source of the latest postings import, and the rows of the period are the sum of those postings. A new import replaces the postings of the month; it does not add to them.
This guide stays on the period of the quickstart, which is at revision 3 with postingsSource ledger.
The period before the import
curl
curl "$RDC_BASE_URL/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c`, {
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"]}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c');
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")}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"id": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"companyId": "80921810-dab0-4d2c-a1ea-ea80c89bc993",
"month": "2026-07",
"scheme": "standard",
"prefilledOn": "2026-09-04",
"postingsSource": "ledger",
"limits": {
"amountLimit": "100.00",
"percentLimit": "5.00"
},
"summary": {
"aligned": 3,
"explained": 0,
"toReview": 1
},
"file": {
"periodId": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"state": "draft",
"preparedBy": "ioana-marin",
"approvedBy": null,
"approvedAt": null,
"filedAt": null,
"explained": 0,
"toReview": 1,
"canApprove": false,
"revision": 3
},
"revision": 3
} Import the SAF-T invoices
A posting from SAF-T has the same fields as one from the ledger: number, direction, partnerCif, partnerName, date and parts. A part is a rate and the base of the invoice lines at that rate. The invoice is matched with the document of the pre-filled return by direction, number and partner tax id. Each number with the same partner appears once, or the import is refused with duplicate_posting.
Import with the source saf-t, at revision 3
curl
curl -X POST "$RDC_BASE_URL/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/imports/postings" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "78501730-ac83-40c0-8d01-4a2863c5eeb9",
"expectedRevision": 3,
"source": "saf-t",
"postings": [
{
"number": "BRT-2026-00044",
"direction": "sales",
"partnerCif": "RO39172614",
"partnerName": "Cofetăria Vălul Alb SRL",
"date": "2026-07-04",
"parts": [
{
"rate": "21",
"base": "619.40"
},
{
"rate": "11",
"base": "2988.00"
}
]
},
{
"number": "LD-2026-3187",
"direction": "purchases",
"partnerCif": "RO51603546",
"partnerName": "Brânzeturi Obcina SRL",
"date": "2026-07-06",
"parts": [
{
"rate": "11",
"base": "9124.00"
}
]
},
{
"number": "AC-004402",
"direction": "purchases",
"partnerCif": "RO51603619",
"partnerName": "Ambalaje Carpatin SRL",
"date": "2026-07-10",
"parts": [
{
"rate": "21",
"base": "3887.00"
}
]
}
]
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/imports/postings`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "78501730-ac83-40c0-8d01-4a2863c5eeb9",
"expectedRevision": 3,
"source": "saf-t",
"postings": [
{
"number": "BRT-2026-00044",
"direction": "sales",
"partnerCif": "RO39172614",
"partnerName": "Cofetăria Vălul Alb SRL",
"date": "2026-07-04",
"parts": [
{
"rate": "21",
"base": "619.40"
},
{
"rate": "11",
"base": "2988.00"
}
]
},
{
"number": "LD-2026-3187",
"direction": "purchases",
"partnerCif": "RO51603546",
"partnerName": "Brânzeturi Obcina SRL",
"date": "2026-07-06",
"parts": [
{
"rate": "11",
"base": "9124.00"
}
]
},
{
"number": "AC-004402",
"direction": "purchases",
"partnerCif": "RO51603619",
"partnerName": "Ambalaje Carpatin SRL",
"date": "2026-07-10",
"parts": [
{
"rate": "21",
"base": "3887.00"
}
]
}
]
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/imports/postings',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '78501730-ac83-40c0-8d01-4a2863c5eeb9',
'expectedRevision': 3,
'source': 'saf-t',
'postings': [
{
'number': 'BRT-2026-00044',
'direction': 'sales',
'partnerCif': 'RO39172614',
'partnerName': 'Cofetăria Vălul Alb SRL',
'date': '2026-07-04',
'parts': [
{
'rate': '21',
'base': '619.40',
},
{
'rate': '11',
'base': '2988.00',
},
],
},
{
'number': 'LD-2026-3187',
'direction': 'purchases',
'partnerCif': 'RO51603546',
'partnerName': 'Brânzeturi Obcina SRL',
'date': '2026-07-06',
'parts': [
{
'rate': '11',
'base': '9124.00',
},
],
},
{
'number': 'AC-004402',
'direction': 'purchases',
'partnerCif': 'RO51603619',
'partnerName': 'Ambalaje Carpatin SRL',
'date': '2026-07-10',
'parts': [
{
'rate': '21',
'base': '3887.00',
},
],
},
],
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "78501730-ac83-40c0-8d01-4a2863c5eeb9",
"expectedRevision": 3,
"source": "saf-t",
"postings": [
{
"number": "BRT-2026-00044",
"direction": "sales",
"partnerCif": "RO39172614",
"partnerName": "Cofetăria Vălul Alb SRL",
"date": "2026-07-04",
"parts": [
{
"rate": "21",
"base": "619.40"
},
{
"rate": "11",
"base": "2988.00"
}
]
},
{
"number": "LD-2026-3187",
"direction": "purchases",
"partnerCif": "RO51603546",
"partnerName": "Brânzeturi Obcina SRL",
"date": "2026-07-06",
"parts": [
{
"rate": "11",
"base": "9124.00"
}
]
},
{
"number": "AC-004402",
"direction": "purchases",
"partnerCif": "RO51603619",
"partnerName": "Ambalaje Carpatin SRL",
"date": "2026-07-10",
"parts": [
{
"rate": "21",
"base": "3887.00"
}
]
}
]
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/imports/postings');
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")}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/imports/postings");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "78501730-ac83-40c0-8d01-4a2863c5eeb9",
"expectedRevision": 3,
"source": "saf-t",
"postings": [
{
"number": "BRT-2026-00044",
"direction": "sales",
"partnerCif": "RO39172614",
"partnerName": "Cofetăria Vălul Alb SRL",
"date": "2026-07-04",
"parts": [
{
"rate": "21",
"base": "619.40"
},
{
"rate": "11",
"base": "2988.00"
}
]
},
{
"number": "LD-2026-3187",
"direction": "purchases",
"partnerCif": "RO51603546",
"partnerName": "Brânzeturi Obcina SRL",
"date": "2026-07-06",
"parts": [
{
"rate": "11",
"base": "9124.00"
}
]
},
{
"number": "AC-004402",
"direction": "purchases",
"partnerCif": "RO51603619",
"partnerName": "Ambalaje Carpatin SRL",
"date": "2026-07-10",
"parts": [
{
"rate": "21",
"base": "3887.00"
}
]
}
]
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "78501730-ac83-40c0-8d01-4a2863c5eeb9",
"status": "accepted",
"aggregateId": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"aggregateRevision": 4
} The period moves to revision 4, postingsSource reads saf-t, and listImports records the import with kind postings and source saf-t. The rows now show the pre-filled return against your SAF-T data. Compare the figures with the ones you read from the ledger to see where your books and your SAF-T return differ.
The period after the import
curl
curl "$RDC_BASE_URL/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c`, {
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"]}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c');
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")}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"id": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"companyId": "80921810-dab0-4d2c-a1ea-ea80c89bc993",
"month": "2026-07",
"scheme": "standard",
"prefilledOn": "2026-09-04",
"postingsSource": "saf-t",
"limits": {
"amountLimit": "100.00",
"percentLimit": "5.00"
},
"summary": {
"aligned": 3,
"explained": 0,
"toReview": 1
},
"file": {
"periodId": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"state": "draft",
"preparedBy": "ioana-marin",
"approvedBy": null,
"approvedAt": null,
"filedAt": null,
"explained": 0,
"toReview": 1,
"canApprove": false,
"revision": 4
},
"revision": 4
} The rows against the SAF-T data
curl
curl "$RDC_BASE_URL/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/rows" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/rows`, {
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"]}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/rows',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/rows');
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")}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/rows");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"items": [
{
"id": "sales-standard",
"periodId": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"side": "sales",
"rate": "21",
"title": "Sales at 21%",
"yours": {
"base": "619.40",
"vat": "130.07"
},
"prefilled": {
"base": "619.40",
"vat": "130.07"
},
"difference": {
"base": "0.00",
"vat": "0.00",
"percent": "0.00"
},
"marked": false,
"status": "aligned",
"differenceIds": []
},
{
"id": "sales-reduced",
"periodId": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"side": "sales",
"rate": "11",
"title": "Sales at 11%",
"yours": {
"base": "2988.00",
"vat": "328.68"
},
"prefilled": {
"base": "2988.00",
"vat": "328.68"
},
"difference": {
"base": "0.00",
"vat": "0.00",
"percent": "0.00"
},
"marked": false,
"status": "aligned",
"differenceIds": []
},
{
"id": "purchases-standard",
"periodId": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"side": "purchases",
"rate": "21",
"title": "Purchases at 21%",
"yours": {
"base": "3887.00",
"vat": "816.27"
},
"prefilled": {
"base": "10289.50",
"vat": "2160.80"
},
"difference": {
"base": "-6402.50",
"vat": "-1344.53",
"percent": "-62.22"
},
"marked": true,
"status": "to_review",
"differenceIds": [
"02c267d0-b16c-40bc-8e85-40fa49f79e44"
]
},
{
"id": "purchases-reduced",
"periodId": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"side": "purchases",
"rate": "11",
"title": "Purchases at 11%",
"yours": {
"base": "9124.00",
"vat": "1003.64"
},
"prefilled": {
"base": "9124.00",
"vat": "1003.64"
},
"difference": {
"base": "0.00",
"vat": "0.00",
"percent": "0.00"
},
"marked": false,
"status": "aligned",
"differenceIds": []
}
],
"nextCursor": null
} Differences are found again against the new postings. A link to a posting that is no longer there is dropped, and so is an explanation of a difference that no longer exists. An explanation of a difference that still exists, with the same id, stays.
Go back to the ledger
There is no switch. Import the postings of the ledger again with source ledger: the new import replaces the SAF-T postings, the period moves to revision 5, postingsSource returns to ledger and the period compares against the books.
Import with the source ledger, at revision 4
curl
curl -X POST "$RDC_BASE_URL/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/imports/postings" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "f11e78c6-9435-475c-9af0-5c8153938212",
"expectedRevision": 4,
"source": "ledger",
"postings": [
{
"number": "BRT-2026-00044",
"direction": "sales",
"partnerCif": "RO39172614",
"partnerName": "Cofetăria Vălul Alb SRL",
"date": "2026-07-04",
"parts": [
{
"rate": "21",
"base": "619.40"
},
{
"rate": "11",
"base": "2988.00"
}
]
},
{
"number": "LD-2026-3187",
"direction": "purchases",
"partnerCif": "RO51603546",
"partnerName": "Brânzeturi Obcina SRL",
"date": "2026-07-06",
"parts": [
{
"rate": "11",
"base": "9124.00"
}
]
},
{
"number": "AC-004402",
"direction": "purchases",
"partnerCif": "RO51603619",
"partnerName": "Ambalaje Carpatin SRL",
"date": "2026-07-10",
"parts": [
{
"rate": "21",
"base": "3887.00"
}
]
}
]
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/imports/postings`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "f11e78c6-9435-475c-9af0-5c8153938212",
"expectedRevision": 4,
"source": "ledger",
"postings": [
{
"number": "BRT-2026-00044",
"direction": "sales",
"partnerCif": "RO39172614",
"partnerName": "Cofetăria Vălul Alb SRL",
"date": "2026-07-04",
"parts": [
{
"rate": "21",
"base": "619.40"
},
{
"rate": "11",
"base": "2988.00"
}
]
},
{
"number": "LD-2026-3187",
"direction": "purchases",
"partnerCif": "RO51603546",
"partnerName": "Brânzeturi Obcina SRL",
"date": "2026-07-06",
"parts": [
{
"rate": "11",
"base": "9124.00"
}
]
},
{
"number": "AC-004402",
"direction": "purchases",
"partnerCif": "RO51603619",
"partnerName": "Ambalaje Carpatin SRL",
"date": "2026-07-10",
"parts": [
{
"rate": "21",
"base": "3887.00"
}
]
}
]
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/imports/postings',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'f11e78c6-9435-475c-9af0-5c8153938212',
'expectedRevision': 4,
'source': 'ledger',
'postings': [
{
'number': 'BRT-2026-00044',
'direction': 'sales',
'partnerCif': 'RO39172614',
'partnerName': 'Cofetăria Vălul Alb SRL',
'date': '2026-07-04',
'parts': [
{
'rate': '21',
'base': '619.40',
},
{
'rate': '11',
'base': '2988.00',
},
],
},
{
'number': 'LD-2026-3187',
'direction': 'purchases',
'partnerCif': 'RO51603546',
'partnerName': 'Brânzeturi Obcina SRL',
'date': '2026-07-06',
'parts': [
{
'rate': '11',
'base': '9124.00',
},
],
},
{
'number': 'AC-004402',
'direction': 'purchases',
'partnerCif': 'RO51603619',
'partnerName': 'Ambalaje Carpatin SRL',
'date': '2026-07-10',
'parts': [
{
'rate': '21',
'base': '3887.00',
},
],
},
],
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "f11e78c6-9435-475c-9af0-5c8153938212",
"expectedRevision": 4,
"source": "ledger",
"postings": [
{
"number": "BRT-2026-00044",
"direction": "sales",
"partnerCif": "RO39172614",
"partnerName": "Cofetăria Vălul Alb SRL",
"date": "2026-07-04",
"parts": [
{
"rate": "21",
"base": "619.40"
},
{
"rate": "11",
"base": "2988.00"
}
]
},
{
"number": "LD-2026-3187",
"direction": "purchases",
"partnerCif": "RO51603546",
"partnerName": "Brânzeturi Obcina SRL",
"date": "2026-07-06",
"parts": [
{
"rate": "11",
"base": "9124.00"
}
]
},
{
"number": "AC-004402",
"direction": "purchases",
"partnerCif": "RO51603619",
"partnerName": "Ambalaje Carpatin SRL",
"date": "2026-07-10",
"parts": [
{
"rate": "21",
"base": "3887.00"
}
]
}
]
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/imports/postings');
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")}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c/imports/postings");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "f11e78c6-9435-475c-9af0-5c8153938212",
"expectedRevision": 4,
"source": "ledger",
"postings": [
{
"number": "BRT-2026-00044",
"direction": "sales",
"partnerCif": "RO39172614",
"partnerName": "Cofetăria Vălul Alb SRL",
"date": "2026-07-04",
"parts": [
{
"rate": "21",
"base": "619.40"
},
{
"rate": "11",
"base": "2988.00"
}
]
},
{
"number": "LD-2026-3187",
"direction": "purchases",
"partnerCif": "RO51603546",
"partnerName": "Brânzeturi Obcina SRL",
"date": "2026-07-06",
"parts": [
{
"rate": "11",
"base": "9124.00"
}
]
},
{
"number": "AC-004402",
"direction": "purchases",
"partnerCif": "RO51603619",
"partnerName": "Ambalaje Carpatin SRL",
"date": "2026-07-10",
"parts": [
{
"rate": "21",
"base": "3887.00"
}
]
}
]
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "f11e78c6-9435-475c-9af0-5c8153938212",
"status": "accepted",
"aggregateId": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"aggregateRevision": 5
} The period after going back
curl
curl "$RDC_BASE_URL/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c`, {
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"]}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c');
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")}/etva/v1/periods/06cc614a-c8f2-40fc-984c-a09bcd5cdf2c");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"id": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"companyId": "80921810-dab0-4d2c-a1ea-ea80c89bc993",
"month": "2026-07",
"scheme": "standard",
"prefilledOn": "2026-09-04",
"postingsSource": "ledger",
"limits": {
"amountLimit": "100.00",
"percentLimit": "5.00"
},
"summary": {
"aligned": 3,
"explained": 0,
"toReview": 1
},
"file": {
"periodId": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
"state": "draft",
"preparedBy": "ioana-marin",
"approvedBy": null,
"approvedAt": null,
"filedAt": null,
"explained": 0,
"toReview": 1,
"canApprove": false,
"revision": 5
},
"revision": 5
} The import fields are in the imports reference.