Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Explanations

    The explanation file of a period: the explained differences, and its three states: draft, approved, filed.

    On this page

    List explanations

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

    Returns the explained differences of a period with their reasons and notes, oldest first: the content of the explanation file.

    Parameters

    NameInTypeRequiredMeaning
    periodId path string (uuid) Yesrequired The period.
    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 explanations. ExplanationPage
    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/explanations?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/explanations?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/explanations?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/explanations?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/explanations?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": [
        {
          "differenceId": "e59c4466-b33f-4875-9be1-0fdd35eb90f1",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "kind": "missing-at-authority",
          "rowIds": [
            "sales-standard"
          ],
          "vat": "417.04",
          "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",
          "documentId": null,
          "postingId": "6861594d-27de-4565-a1fe-72c97fa04d2d"
        },
        {
          "differenceId": "50ad54ee-d206-4a82-a336-193ccffdc407",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "kind": "rate",
          "rowIds": [
            "purchases-standard",
            "purchases-reduced"
          ],
          "vat": "3198.40",
          "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",
          "documentId": "85cc4550-2ac5-4c3b-9bd4-ba2d9a49615b",
          "postingId": "6ff78d02-0631-4bec-9aba-31bfda7f8707"
        },
        {
          "differenceId": "766d779d-1961-487c-bed6-c5b78c5012df",
          "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
          "kind": "other-period",
          "rowIds": [
            "purchases-reduced"
          ],
          "vat": "-1164.61",
          "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",
          "documentId": "b2655523-f9ca-43d4-86de-0de02dbafab3",
          "postingId": "9de91d7a-54a0-488b-b74f-6dc378caa04c"
        }
      ],
      "nextCursor": null
    }

    Get the explanation file

    GET /etva/v1/periods/{periodId}/explanation-file

    Returns the state of the explanation file: who prepared it, who approved it and when, when it was filed, how many differences it explains and how many rows still need review.

    Parameters

    NameInTypeRequiredMeaning
    periodId path string (uuid) Yesrequired The period.

    Responses

    StatusMeaningBody
    200 The explanation file. ExplanationFile
    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/explanation-file" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file`, {
      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/explanation-file',
        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/explanation-file');
    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/explanation-file");
    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

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

    Approve the explanation file

    POST /etva/v1/periods/{periodId}/explanation-file/approve

    Approves the file: it goes from draft to approved and the period stops taking changes. It is refused while a row is to_review and when the approver is the person who prepared the file.

    Parameters

    NameInTypeRequiredMeaning
    periodId path string (uuid) Yesrequired The period.

    Request body

    FieldTypeRequiredMeaning
    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.
    approvedBy string Yesrequired The person who approves, as your system names them. It must be another person than the one who prepared the file.

    Responses

    StatusMeaningBody
    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 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. wrong_file_state: The explanation file is not in a state that allows this: approve needs a draft, withdraw and file need an approved file. rows_to_review: A row is still to_review. The file cannot be approved while a row has a difference nobody explained. same_person: The file was prepared by the person who is approving it. 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/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/approve" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "384bfa16-2916-43da-a678-c6dcb3d17365",
      "expectedRevision": 3,
      "approvedBy": "ana-rusu"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/approve`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "384bfa16-2916-43da-a678-c6dcb3d17365",
        "expectedRevision": 3,
        "approvedBy": "ana-rusu"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/approve',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '384bfa16-2916-43da-a678-c6dcb3d17365',
            'expectedRevision': 3,
            'approvedBy': 'ana-rusu',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "384bfa16-2916-43da-a678-c6dcb3d17365",
      "expectedRevision": 3,
      "approvedBy": "ana-rusu"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/approve');
    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/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/approve");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "384bfa16-2916-43da-a678-c6dcb3d17365",
      "expectedRevision": 3,
      "approvedBy": "ana-rusu"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "384bfa16-2916-43da-a678-c6dcb3d17365",
      "status": "accepted",
      "aggregateId": "79509f60-565a-40eb-a4c3-709e5d49e517",
      "aggregateRevision": 4
    }

    Withdraw the approval

    POST /etva/v1/periods/{periodId}/explanation-file/withdraw

    Takes an approved file back to draft so that the period takes changes again. A filed file cannot be withdrawn.

    Parameters

    NameInTypeRequiredMeaning
    periodId path string (uuid) Yesrequired The period.

    Request body

    FieldTypeRequiredMeaning
    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.

    Responses

    StatusMeaningBody
    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. wrong_file_state: The explanation file is not in a state that allows this: approve needs a draft, withdraw and file need an approved file. 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/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/withdraw" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "e3c563ae-a533-4679-930f-f456d01e8362",
      "expectedRevision": 4
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/withdraw`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "e3c563ae-a533-4679-930f-f456d01e8362",
        "expectedRevision": 4
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/withdraw',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'e3c563ae-a533-4679-930f-f456d01e8362',
            'expectedRevision': 4,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "e3c563ae-a533-4679-930f-f456d01e8362",
      "expectedRevision": 4
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/withdraw');
    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/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/withdraw");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "e3c563ae-a533-4679-930f-f456d01e8362",
      "expectedRevision": 4
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "e3c563ae-a533-4679-930f-f456d01e8362",
      "status": "accepted",
      "aggregateId": "79509f60-565a-40eb-a4c3-709e5d49e517",
      "aggregateRevision": 5
    }

    File the explanation file

    POST /etva/v1/periods/{periodId}/explanation-file/file

    Records that the approved file is filed in your records. filed is final: nothing in the period changes afterwards.

    Parameters

    NameInTypeRequiredMeaning
    periodId path string (uuid) Yesrequired The period.

    Request body

    FieldTypeRequiredMeaning
    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.

    Responses

    StatusMeaningBody
    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. wrong_file_state: The explanation file is not in a state that allows this: approve needs a draft, withdraw and file need an approved file. 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/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/file" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "04f88665-ccc8-4585-8692-f17d17aecc5a",
      "expectedRevision": 4
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/file`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "04f88665-ccc8-4585-8692-f17d17aecc5a",
        "expectedRevision": 4
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/file',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '04f88665-ccc8-4585-8692-f17d17aecc5a',
            'expectedRevision': 4,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "04f88665-ccc8-4585-8692-f17d17aecc5a",
      "expectedRevision": 4
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/file');
    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/79509f60-565a-40eb-a4c3-709e5d49e517/explanation-file/file");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "04f88665-ccc8-4585-8692-f17d17aecc5a",
      "expectedRevision": 4
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "04f88665-ccc8-4585-8692-f17d17aecc5a",
      "status": "accepted",
      "aggregateId": "79509f60-565a-40eb-a4c3-709e5d49e517",
      "aggregateRevision": 5
    }