Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Rows

    The four rows of the comparison, each with your figures, the pre-filled figures, the difference and the status.

    On this page

    List rows

    GET /etva/v1/periods/{periodId}/rows

    Returns the four rows of the period in a fixed order: sales at the standard rate, sales at the reduced rate, purchases at the standard rate, purchases at the reduced rate.

    Parameters

    NameInTypeRequiredMeaning
    periodId path string (uuid) Yesrequired The period.
    status query string Nooptional Only the rows in this status. One of aligned, explained, to_review
    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

    StatusMeaningBody
    200 A page of rows. RowPage
    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/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

    JSON

    {
      "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
    }

    Get a row

    GET /etva/v1/periods/{periodId}/rows/{rowId}

    Parameters

    NameInTypeRequiredMeaning
    periodId path string (uuid) Yesrequired The period.
    rowId path string Yesrequired The row: one of the four rows of the comparison. One of sales-standard, sales-reduced, purchases-standard, purchases-reduced

    Responses

    StatusMeaningBody
    200 The row with the ids of its differences. Row
    401 The token is missing, not valid or has ended. Error
    403 The token does not give access to this data. Error
    404 period_not_found: The period does not exist in your account. row_not_found: The period has no row with this id. 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/rows/purchases-standard" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    Response 200

    JSON

    {
      "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"
      ]
    }