Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Compare with your return

    Import the postings of your ledger, read the four rows and the differences behind them, and set the limits that mark a row.

    On this page

    Your side of a row is the sum of the postings of the month. Once the pre-filled return and your postings are both in the period, the product sets them side by side: four rows, and for each marked row the invoices behind the difference.

    1. Import the postings

      Send the invoices of the month from your ledger with importPostings.

    2. Read the rows

      listRows gives the two figures, the difference and the status of each row.

    3. Read the differences

      listDifferences names the invoice behind each marked row.

    4. Set the limits

      Change the amount and percent limits with updateLimits if the defaults do not suit the company.

    5. Export the rows

      getExport returns the rows as a CSV file.

    Import the postings

    A posting has the same fields as a document, without source and authorityId: number, direction, partnerCif, partnerName, date and parts. Send the source in source: ledger for your books. Each number with the same partner may appear once; a second one is refused with duplicate_posting. A new import replaces the postings of the month. The period then compares against the source of its latest import, shown in postingsSource.

    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": "6209510a-497a-47d9-8cc1-961d3560ddd3",
      "expectedRevision": 2,
      "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": "6209510a-497a-47d9-8cc1-961d3560ddd3",
        "expectedRevision": 2,
        "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': '6209510a-497a-47d9-8cc1-961d3560ddd3',
            'expectedRevision': 2,
            '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": "6209510a-497a-47d9-8cc1-961d3560ddd3",
      "expectedRevision": 2,
      "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": "6209510a-497a-47d9-8cc1-961d3560ddd3",
      "expectedRevision": 2,
      "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();

    Response 202

    {
      "operationId": "6209510a-497a-47d9-8cc1-961d3560ddd3",
      "status": "accepted",
      "aggregateId": "06cc614a-c8f2-40fc-984c-a09bcd5cdf2c",
      "aggregateRevision": 3
    }

    The import is refused with unsupported_rate for a part at another rate, with empty_import when it holds no posting, and with file_locked when the explanation file is no longer a draft.

    Read the rows

    The four rows come in a fixed order: sales-standard, sales-reduced, purchases-standard, purchases-reduced. Each carries yours and prefilled (base and VAT), the difference (yours minus pre-filled, with the percent of the pre-filled VAT), the flag marked, the status and the differenceIds that touch it. Filter with status, for example status=to_review.

    curl

    curl "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/rows?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/rows?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/79509f60-565a-40eb-a4c3-709e5d49e517/rows?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/79509f60-565a-40eb-a4c3-709e5d49e517/rows?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/79509f60-565a-40eb-a4c3-709e5d49e517/rows?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": "sales-standard",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "side": "sales",
          "rate": "21",
          "title": "Sales at 21%",
          "yours": {
            "base": "9774.66",
            "vat": "2052.67"
          },
          "prefilled": {
            "base": "13231.14",
            "vat": "2778.53"
          },
          "difference": {
            "base": "-3456.48",
            "vat": "-725.86",
            "percent": "-26.12"
          },
          "marked": true,
          "status": "to_review",
          "differenceIds": [
            "351aa9b7-3fd2-4e48-b723-6babb3e16fae",
            "e59c4466-b33f-4875-9be1-0fdd35eb90f1"
          ]
        },
        {
          "id": "sales-reduced",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "side": "sales",
          "rate": "11",
          "title": "Sales at 11%",
          "yours": {
            "base": "21080.18",
            "vat": "2318.82"
          },
          "prefilled": {
            "base": "21080.18",
            "vat": "2318.82"
          },
          "difference": {
            "base": "0.00",
            "vat": "0.00",
            "percent": "0.00"
          },
          "marked": false,
          "status": "aligned",
          "differenceIds": []
        },
        {
          "id": "purchases-standard",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "side": "purchases",
          "rate": "21",
          "title": "Purchases at 21%",
          "yours": {
            "base": "63551.20",
            "vat": "13345.75"
          },
          "prefilled": {
            "base": "40751.70",
            "vat": "8557.86"
          },
          "difference": {
            "base": "22799.50",
            "vat": "4787.89",
            "percent": "55.95"
          },
          "marked": true,
          "status": "to_review",
          "differenceIds": [
            "50ad54ee-d206-4a82-a336-193ccffdc407",
            "46735209-a528-4647-ba66-da4a8e7373ee"
          ]
        },
        {
          "id": "purchases-reduced",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "side": "purchases",
          "rate": "11",
          "title": "Purchases at 11%",
          "yours": {
            "base": "38585.50",
            "vat": "4244.41"
          },
          "prefilled": {
            "base": "81156.90",
            "vat": "8927.26"
          },
          "difference": {
            "base": "-42571.40",
            "vat": "-4682.85",
            "percent": "-52.46"
          },
          "marked": true,
          "status": "explained",
          "differenceIds": [
            "50ad54ee-d206-4a82-a336-193ccffdc407",
            "766d779d-1961-487c-bed6-c5b78c5012df"
          ]
        }
      ],
      "nextCursor": null
    }

    In the September period of Brumar Distribuție SRL, sales-standard has 2052.67 VAT against 2778.53 pre-filled, a difference of -725.86 (-26.12%). purchases-standard differs by 4787.89 (55.95%). sales-reduced is equal.

    StatusMeaning
    The row is not marked: its VAT difference is within both limits.
    The row is marked and every difference that touches it has an explanation.
    The row is marked and at least one difference that touches it has no explanation. The file cannot be approved.

    Read the differences

    A difference is derived by matching documents and postings on side, number and partner tax id. Its kind says what happened: not-posted, other-period, missing-at-authority, duplicate, rate or amount. Its effects give the base and VAT it adds to each row, and reasons lists the reasons that fit the kind. Filter with rowId, state (open or explained) and kind.

    curl

    curl "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences?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/79509f60-565a-40eb-a4c3-709e5d49e517/differences?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/79509f60-565a-40eb-a4c3-709e5d49e517/differences?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/79509f60-565a-40eb-a4c3-709e5d49e517/differences?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": "351aa9b7-3fd2-4e48-b723-6babb3e16fae",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "kind": "duplicate",
          "rowIds": [
            "sales-standard"
          ],
          "effects": [
            {
              "rowId": "sales-standard",
              "base": "-5442.40",
              "vat": "-1142.90"
            }
          ],
          "vat": "-1142.90",
          "documentId": "b205d17f-01f7-4ccc-9a90-37cf7c1709f2",
          "postingId": null,
          "state": "open",
          "reasons": [
            "duplicate_at_authority"
          ],
          "reason": null,
          "note": null,
          "explainedBy": null,
          "explainedAt": null
        },
        {
          "id": "50ad54ee-d206-4a82-a336-193ccffdc407",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "kind": "rate",
          "rowIds": [
            "purchases-standard",
            "purchases-reduced"
          ],
          "effects": [
            {
              "rowId": "purchases-standard",
              "base": "31984.00",
              "vat": "6716.64"
            },
            {
              "rowId": "purchases-reduced",
              "base": "-31984.00",
              "vat": "-3518.24"
            }
          ],
          "vat": "3198.40",
          "documentId": "85cc4550-2ac5-4c3b-9bd4-ba2d9a49615b",
          "postingId": "6ff78d02-0631-4bec-9aba-31bfda7f8707",
          "state": "explained",
          "reasons": [
            "different_rate"
          ],
          "reason": "different_rate",
          "note": "The supplier invoiced the reduced rate. The posting used the standard rate and was corrected on 5 October.",
          "explainedBy": "ioana-marin",
          "explainedAt": "2026-11-20T09:18:00Z"
        },
        {
          "id": "766d779d-1961-487c-bed6-c5b78c5012df",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "kind": "other-period",
          "rowIds": [
            "purchases-reduced"
          ],
          "effects": [
            {
              "rowId": "purchases-reduced",
              "base": "-10587.40",
              "vat": "-1164.61"
            }
          ],
          "vat": "-1164.61",
          "documentId": "b2655523-f9ca-43d4-86de-0de02dbafab3",
          "postingId": "9de91d7a-54a0-488b-b74f-6dc378caa04c",
          "state": "explained",
          "reasons": [
            "different_period"
          ],
          "reason": "different_period",
          "note": "Dated 30 September, received on 2 October and posted in October. It is claimed in the October return.",
          "explainedBy": "ioana-marin",
          "explainedAt": "2026-11-20T09:31:00Z"
        },
        {
          "id": "46735209-a528-4647-ba66-da4a8e7373ee",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "kind": "not-posted",
          "rowIds": [
            "purchases-standard"
          ],
          "effects": [
            {
              "rowId": "purchases-standard",
              "base": "-9184.50",
              "vat": "-1928.75"
            }
          ],
          "vat": "-1928.75",
          "documentId": "bb9c565d-6248-4964-8f91-c7dbf7838777",
          "postingId": null,
          "state": "open",
          "reasons": [
            "not_yet_posted",
            "different_period"
          ],
          "reason": null,
          "note": null,
          "explainedBy": null,
          "explainedAt": null
        },
        {
          "id": "e59c4466-b33f-4875-9be1-0fdd35eb90f1",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "kind": "missing-at-authority",
          "rowIds": [
            "sales-standard"
          ],
          "effects": [
            {
              "rowId": "sales-standard",
              "base": "1985.92",
              "vat": "417.04"
            }
          ],
          "vat": "417.04",
          "documentId": null,
          "postingId": "6861594d-27de-4565-a1fe-72c97fa04d2d",
          "state": "explained",
          "reasons": [
            "missing_in_efactura",
            "different_period"
          ],
          "reason": "missing_in_efactura",
          "note": "The upload was answered nok. The corrected invoice BRD-2026-00402 went out on 3 October and belongs to the October return.",
          "explainedBy": "ioana-marin",
          "explainedAt": "2026-11-20T09:05:00Z"
        }
      ],
      "nextCursor": null
    }

    The call has no filter, so it returns all five differences of the September period, open and explained. The next call asks only for the two that are open, with state=open.

    Open differences

    curl

    curl "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences?state=open" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences?state=open`, {
      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/differences?state=open',
        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/differences?state=open');
    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/differences?state=open");
    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": "351aa9b7-3fd2-4e48-b723-6babb3e16fae",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "kind": "duplicate",
          "rowIds": [
            "sales-standard"
          ],
          "effects": [
            {
              "rowId": "sales-standard",
              "base": "-5442.40",
              "vat": "-1142.90"
            }
          ],
          "vat": "-1142.90",
          "documentId": "b205d17f-01f7-4ccc-9a90-37cf7c1709f2",
          "postingId": null,
          "state": "open",
          "reasons": [
            "duplicate_at_authority"
          ],
          "reason": null,
          "note": null,
          "explainedBy": null,
          "explainedAt": null
        },
        {
          "id": "46735209-a528-4647-ba66-da4a8e7373ee",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "kind": "not-posted",
          "rowIds": [
            "purchases-standard"
          ],
          "effects": [
            {
              "rowId": "purchases-standard",
              "base": "-9184.50",
              "vat": "-1928.75"
            }
          ],
          "vat": "-1928.75",
          "documentId": "bb9c565d-6248-4964-8f91-c7dbf7838777",
          "postingId": null,
          "state": "open",
          "reasons": [
            "not_yet_posted",
            "different_period"
          ],
          "reason": null,
          "note": null,
          "explainedBy": null,
          "explainedAt": null
        }
      ],
      "nextCursor": null
    }

    The September period has five differences: the duplicate BRD-2026-00372 and the not-posted AC-004563, both open, and the rate difference MV-000431, the other-period BO-2026-0802 and the missing-at-authority BRD-2026-00391, explained. See Differences.

    Set the limits

    A row is marked when the absolute VAT difference is above the amount limit, or above the percent limit of the pre-filled VAT of the row. The defaults are 100.00 lei and 5.00%. The percent is compared in hundredths, so 5.004% shows as 5.00% and is not above 5.00%. The limits are settings of the product. They change which rows are marked, never an amount.

    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
    }

    A limit that is negative, has more than two decimals or is above the largest value is refused with 422 invalid_limits. In a period whose file is approved or filed the change is refused with file_locked.

    Export the rows

    getExport with the kind rows returns a CSV file made from the period as it is now. The text of the file is in content, with its name and contentType. One line per row: the two figures, the VAT difference, its percent and the status.

    curl

    curl "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/exports/rows" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/exports/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/79509f60-565a-40eb-a4c3-709e5d49e517/exports/rows',
        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/exports/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/79509f60-565a-40eb-a4c3-709e5d49e517/exports/rows");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "kind": "rows",
      "name": "brumar-2026-09-rows.csv",
      "contentType": "text/csv",
      "content": "row,yours_base,yours_vat,prefilled_base,prefilled_vat,difference_vat,difference_percent,status\nsales-standard,9774.66,2052.67,13231.14,2778.53,-725.86,-26.12,to_review\nsales-reduced,21080.18,2318.82,21080.18,2318.82,0.00,0.00,aligned\npurchases-standard,63551.20,13345.75,40751.70,8557.86,4787.89,55.95,to_review\npurchases-reduced,38585.50,4244.41,81156.90,8927.26,-4682.85,-52.46,explained\n"
    }

    Next: Resolve a missing invoice and Resolve a duplicate.