---
title: "Differences | Docs | e-TVA Check by R&D Copilot"
description: "What sets the two returns apart, one difference for each document or posting that does not match. Explain it with a reason and a note, or reopen the explanation."
canonical: "https://etva.rdcopilot.com/docs/api-reference/differences/"
language: en
updated: 2026-11-22
---

# Differences

What sets the two returns apart, one difference for each document or posting that does not match. Explain it with a reason and a note, or reopen the explanation.

## List differences

GET `/etva/v1/periods/{periodId}/differences`

Returns the differences of a period. A difference is found again whenever the documents, the postings or the links change, so read the list again after an import or a link.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `periodId` | path | `string (uuid)` | Yesrequired | The period. |
| `rowId` | query | `string` | Nooptional | Only the differences that change this row. One of `sales-standard`, `sales-reduced`, `purchases-standard`, `purchases-reduced` |
| `state` | query | `string` | Nooptional | Only the differences in this state. One of `open`, `explained` |
| `kind` | query | `string` | Nooptional | Only the differences of this kind. One of `not-posted`, `other-period`, `missing-at-authority`, `duplicate`, `rate`, `amount` |
| `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 differences. | `DifferencePage` |
| `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

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

JavaScript

```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

```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
<?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#

```csharp
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`

JSON

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

## Get a difference

GET `/etva/v1/periods/{periodId}/differences/{differenceId}`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `periodId` | path | `string (uuid)` | Yesrequired | The period. |
| `differenceId` | path | `string (uuid)` | Yesrequired | The difference. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | The difference, with the reasons that fit its kind. | `Difference` |
| `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. `difference_not_found`: The period has no difference with this id. A difference disappears when the data it comes from changes. | `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

```bash
curl "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/46735209-a528-4647-ba66-da4a8e7373ee" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/46735209-a528-4647-ba66-da4a8e7373ee`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/46735209-a528-4647-ba66-da4a8e7373ee',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/46735209-a528-4647-ba66-da4a8e7373ee');
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#

```csharp
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/46735209-a528-4647-ba66-da4a8e7373ee");
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

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

## Explain a difference

POST `/etva/v1/periods/{periodId}/differences/{differenceId}/explain`

Gives a difference a reason and a note. The reason must be one of the `reasons` of the difference, and the note is a sentence of 8 to 500 characters. The rows that the difference changes may become `explained`. The period must be in the state `draft`.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `periodId` | path | `string (uuid)` | Yesrequired | The period. |
| `differenceId` | path | `string (uuid)` | Yesrequired | The difference. |

### 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. |
| `reason` | `string` | Yesrequired | One of the `reasons` of the difference: `missing_in_efactura`, `duplicate_at_authority`, `different_rate`, `different_period`, `not_yet_posted` or `different_amount`. One of `missing_in_efactura`, `duplicate_at_authority`, `different_rate`, `different_period`, `not_yet_posted`, `different_amount` |
| `note` | `string` | Yesrequired | What you checked and what you found, 8 to 500 characters. |
| `explainedBy` | `string` | Yesrequired | The person who explains, as your system names them. |

### 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` | `period_not_found`: The period does not exist in your account. `difference_not_found`: The period has no difference with this id. A difference disappears when the data it comes from changes. | `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. `already_explained`: The difference already has an explanation. | `Error` |
| `422` | `reason_not_allowed`: That reason does not fit this kind of difference. The difference lists the reasons that do in `reasons`. `note_required`: The note is too short. A reason needs a sentence of at least 8 characters. `note_too_long`: The note is longer than 500 characters. | `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

```bash
curl -X POST "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/46735209-a528-4647-ba66-da4a8e7373ee/explain" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "3b01ddcf-38da-4d6e-93cd-ccabd05f8018",
  "expectedRevision": 1,
  "reason": "not_yet_posted",
  "note": "The invoice reached accounting on 2 October. It is posted with the October journal.",
  "explainedBy": "ana-rusu"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/46735209-a528-4647-ba66-da4a8e7373ee/explain`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "3b01ddcf-38da-4d6e-93cd-ccabd05f8018",
    "expectedRevision": 1,
    "reason": "not_yet_posted",
    "note": "The invoice reached accounting on 2 October. It is posted with the October journal.",
    "explainedBy": "ana-rusu"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/46735209-a528-4647-ba66-da4a8e7373ee/explain',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '3b01ddcf-38da-4d6e-93cd-ccabd05f8018',
        'expectedRevision': 1,
        'reason': 'not_yet_posted',
        'note': 'The invoice reached accounting on 2 October. It is posted with the October journal.',
        'explainedBy': 'ana-rusu',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "3b01ddcf-38da-4d6e-93cd-ccabd05f8018",
  "expectedRevision": 1,
  "reason": "not_yet_posted",
  "note": "The invoice reached accounting on 2 October. It is posted with the October journal.",
  "explainedBy": "ana-rusu"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/46735209-a528-4647-ba66-da4a8e7373ee/explain');
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#

```csharp
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/differences/46735209-a528-4647-ba66-da4a8e7373ee/explain");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "3b01ddcf-38da-4d6e-93cd-ccabd05f8018",
  "expectedRevision": 1,
  "reason": "not_yet_posted",
  "note": "The invoice reached accounting on 2 October. It is posted with the October journal.",
  "explainedBy": "ana-rusu"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "3b01ddcf-38da-4d6e-93cd-ccabd05f8018",
  "status": "accepted",
  "aggregateId": "79509f60-565a-40eb-a4c3-709e5d49e517",
  "aggregateRevision": 2
}
```

## Reopen a difference

POST `/etva/v1/periods/{periodId}/differences/{differenceId}/reopen`

Withdraws the explanation of a difference. The rows it changes may go back to `to_review`. The period must be in the state `draft`.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `periodId` | path | `string (uuid)` | Yesrequired | The period. |
| `differenceId` | path | `string (uuid)` | Yesrequired | The difference. |

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

### 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` | `period_not_found`: The period does not exist in your account. `difference_not_found`: The period has no difference with this id. A difference disappears when the data it comes from changes. | `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. `not_explained`: The difference has no explanation to reopen. | `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

```bash
curl -X POST "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/50ad54ee-d206-4a82-a336-193ccffdc407/reopen" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "ef9b7a23-6ac3-4e46-a94c-38f914d98b26",
  "expectedRevision": 1
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/50ad54ee-d206-4a82-a336-193ccffdc407/reopen`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "ef9b7a23-6ac3-4e46-a94c-38f914d98b26",
    "expectedRevision": 1
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/50ad54ee-d206-4a82-a336-193ccffdc407/reopen',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'ef9b7a23-6ac3-4e46-a94c-38f914d98b26',
        'expectedRevision': 1,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "ef9b7a23-6ac3-4e46-a94c-38f914d98b26",
  "expectedRevision": 1
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/50ad54ee-d206-4a82-a336-193ccffdc407/reopen');
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#

```csharp
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/differences/50ad54ee-d206-4a82-a336-193ccffdc407/reopen");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "ef9b7a23-6ac3-4e46-a94c-38f914d98b26",
  "expectedRevision": 1
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "ef9b7a23-6ac3-4e46-a94c-38f914d98b26",
  "status": "accepted",
  "aggregateId": "79509f60-565a-40eb-a4c3-709e5d49e517",
  "aggregateRevision": 2
}
```
