Periods
A company, a month and the VAT scheme: the unit of every comparison. Open a period and set the limits that mark its rows.
On this page
List periods
GET /etva/v1/periods
Returns the periods of your account in pages, the newest month first. Each period carries its limits, the count of its rows by status and its explanation file.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
companyId | query | string (uuid) | Nooptional | Only the periods of this company. |
month | query | string | Nooptional | Only the period of this month, YYYY-MM. |
limit | query | integer | Nooptional | Records per page, from 1 to 500. Default 100 Range 1 – 500 |
cursor | query | string | Nooptional | The nextCursor of the previous page. |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | A page of periods. | PeriodPage |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
429 | The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. | Error |
503 | The service cannot answer now: the code is unavailable. Send the request again with the same operationId. | Error |
Request
curl
curl "$RDC_BASE_URL/etva/v1/periods?limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods?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"]}/etva/v1/periods?limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods?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")}/etva/v1/periods?limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 200
{
"items": [
{
"id": "79509f60-565a-40eb-a4c3-709e5d49e517",
"companyId": "b61159f8-9c0b-4cdb-ac61-afb49517aae6",
"month": "2026-09",
"scheme": "standard",
"prefilledOn": "2026-11-04",
"postingsSource": "ledger",
"limits": {
"amountLimit": "100.00",
"percentLimit": "5.00"
},
"summary": {
"aligned": 1,
"explained": 1,
"toReview": 2
},
"file": {
"periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
"state": "draft",
"preparedBy": "ioana-marin",
"approvedBy": null,
"approvedAt": null,
"filedAt": null,
"explained": 3,
"toReview": 2,
"canApprove": false,
"revision": 1
},
"revision": 1
},
{
"id": "a74ab6a1-ddd9-4d10-a422-7e5468e3b58d",
"companyId": "b61159f8-9c0b-4cdb-ac61-afb49517aae6",
"month": "2026-08",
"scheme": "standard",
"prefilledOn": "2026-10-02",
"postingsSource": "ledger",
"limits": {
"amountLimit": "100.00",
"percentLimit": "5.00"
},
"summary": {
"aligned": 3,
"explained": 1,
"toReview": 0
},
"file": {
"periodId": "a74ab6a1-ddd9-4d10-a422-7e5468e3b58d",
"state": "filed",
"preparedBy": "ioana-marin",
"approvedBy": "ana-rusu",
"approvedAt": "2026-10-22T08:40:00Z",
"filedAt": "2026-10-22T08:52:00Z",
"explained": 1,
"toReview": 0,
"canApprove": false,
"revision": 1
},
"revision": 1
}
],
"nextCursor": null
} Open a period
POST /etva/v1/periods
Opens the period of a company for one month. It starts with the default limits and an explanation file in the state draft. Import the pre-filled return and the postings next.
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
companyId | string (uuid) | Yesrequired | The company the period is for. |
month | string | Yesrequired | The month, YYYY-MM. |
scheme | string | Yesrequired | standard or cash_accounting. One of standard, cash_accounting |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | The change was accepted. The body is the operation result: aggregateId is the period that was created or changed. | OperationResult |
400 | The request is not valid JSON or a field is missing or has the wrong type. | Error |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
404 | The company does not exist in your account. | Error |
409 | operation_reused: The operationId was already used with a different request. period_exists: The company already has a period for this month. | Error |
429 | The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. | Error |
503 | The service cannot answer now: the code is unavailable. Send the request again with the same operationId. | Error |
Request
curl
curl -X POST "$RDC_BASE_URL/etva/v1/periods" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "1c9ec2c0-b193-4230-afa2-187fd51040ce",
"companyId": "b61159f8-9c0b-4cdb-ac61-afb49517aae6",
"month": "2026-10",
"scheme": "standard"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "1c9ec2c0-b193-4230-afa2-187fd51040ce",
"companyId": "b61159f8-9c0b-4cdb-ac61-afb49517aae6",
"month": "2026-10",
"scheme": "standard"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/etva/v1/periods',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '1c9ec2c0-b193-4230-afa2-187fd51040ce',
'companyId': 'b61159f8-9c0b-4cdb-ac61-afb49517aae6',
'month': '2026-10',
'scheme': 'standard',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "1c9ec2c0-b193-4230-afa2-187fd51040ce",
"companyId": "b61159f8-9c0b-4cdb-ac61-afb49517aae6",
"month": "2026-10",
"scheme": "standard"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods');
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");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "1c9ec2c0-b193-4230-afa2-187fd51040ce",
"companyId": "b61159f8-9c0b-4cdb-ac61-afb49517aae6",
"month": "2026-10",
"scheme": "standard"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "1c9ec2c0-b193-4230-afa2-187fd51040ce",
"status": "accepted",
"aggregateId": "74859c26-2e95-422e-bfbd-fe95f1d0851d",
"aggregateRevision": 1
} Get a period
GET /etva/v1/periods/{periodId}
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
periodId | path | string (uuid) | Yesrequired | The period. |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | The period at its current revision. | Period |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
404 | The period does not exist in your account. | Error |
429 | The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. | Error |
503 | The service cannot answer now: the code is unavailable. Send the request again with the same operationId. | Error |
Request
curl
curl "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517`, {
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/79509f60-565a-40eb-a4c3-709e5d49e517',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517');
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/79509f60-565a-40eb-a4c3-709e5d49e517");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 200
{
"id": "79509f60-565a-40eb-a4c3-709e5d49e517",
"companyId": "b61159f8-9c0b-4cdb-ac61-afb49517aae6",
"month": "2026-09",
"scheme": "standard",
"prefilledOn": "2026-11-04",
"postingsSource": "ledger",
"limits": {
"amountLimit": "100.00",
"percentLimit": "5.00"
},
"summary": {
"aligned": 1,
"explained": 1,
"toReview": 2
},
"file": {
"periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
"state": "draft",
"preparedBy": "ioana-marin",
"approvedBy": null,
"approvedAt": null,
"filedAt": null,
"explained": 3,
"toReview": 2,
"canApprove": false,
"revision": 1
},
"revision": 1
} Set the limits of a period
PUT /etva/v1/periods/{periodId}/limits
Sets the two limits that mark a row: the amount of VAT and the percent of the pre-filled VAT. A row is marked when its VAT difference is above either. The limits are settings of the product, not rules of any authority. The period must be in the state draft.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
periodId | path | string (uuid) | Yesrequired | The period. |
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
expectedRevision | integer | Yesrequired | The revision of the period you read. |
amountLimit | string | Yesrequired | The amount limit in lei, from 0 to 10000000. |
percentLimit | string | Yesrequired | The percent limit, from 0 to 100. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | The change was accepted. The body is the operation result: aggregateId is the period that was created or changed. | OperationResult |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
404 | The period does not exist in your account. | Error |
409 | operation_reused: The operationId was already used with a different request. revision_conflict: The period changed since the revision you sent. Nothing was applied. file_locked: The explanation file of the period is approved or filed, so the period no longer takes changes. | Error |
422 | A limit is negative, has more than two decimals or is above the largest value: 10000000.00 for the amount, 100.00 for the percent. | Error |
429 | The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. | Error |
503 | The service cannot answer now: the code is unavailable. Send the request again with the same operationId. | Error |
Request
curl
curl -X PUT "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/limits" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "384925c4-8c7a-470c-b6a3-29ca91607a75",
"expectedRevision": 1,
"amountLimit": "200.00",
"percentLimit": "3.00"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/limits`, {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "384925c4-8c7a-470c-b6a3-29ca91607a75",
"expectedRevision": 1,
"amountLimit": "200.00",
"percentLimit": "3.00"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'PUT',
f'{os.environ["RDC_BASE_URL"]}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/limits',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '384925c4-8c7a-470c-b6a3-29ca91607a75',
'expectedRevision': 1,
'amountLimit': '200.00',
'percentLimit': '3.00',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "384925c4-8c7a-470c-b6a3-29ca91607a75",
"expectedRevision": 1,
"amountLimit": "200.00",
"percentLimit": "3.00"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/limits');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'PUT',
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.Put, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/limits");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "384925c4-8c7a-470c-b6a3-29ca91607a75",
"expectedRevision": 1,
"amountLimit": "200.00",
"percentLimit": "3.00"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "384925c4-8c7a-470c-b6a3-29ca91607a75",
"status": "accepted",
"aggregateId": "79509f60-565a-40eb-a4c3-709e5d49e517",
"aggregateRevision": 2
}