---
title: "Resolve a duplicate | Docs | e-TVA Check by R&D Copilot"
description: "Confirm that the pre-filled return lists an invoice twice, explain the difference as a duplicate at the authority and read the rows after."
canonical: "https://etva.rdcopilot.com/docs/guides/resolve-a-duplicate/"
language: en
updated: 2026-11-22
---

# Resolve a duplicate

Confirm that the pre-filled return lists an invoice twice, explain the difference as a duplicate at the authority and read the rows after.

A difference of kind `duplicate` appears when the pre-filled return lists the same document twice, with the same number and the same partner. The ledger holds the invoice once, so your side of the row is lower than the pre-filled side by the VAT of the second copy. In the September period of Brumar Distribuție SRL this is the invoice `BRD-2026-00372` to Silozurile Zănești SRL, dated 13 September 2026.

1.  Read the open duplicate
    
    Filter `listDifferences` by `kind=duplicate` and `state=open`.
    
2.  Confirm the two copies
    
    List the documents of the row with `listDocuments` and compare numbers and `authorityId` values.
    
3.  Explain it
    
    Send `explainDifference` with the reason `duplicate_at_authority` and a note.
    
4.  Read the rows
    
    The row `sales-standard` is `explained`.
    

## Read the duplicate

Open duplicates

curl

```bash
curl "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences?kind=duplicate&state=open" \
  -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?kind=duplicate&state=open`, {
  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?kind=duplicate&state=open',
    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?kind=duplicate&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#

```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?kind=duplicate&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

```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
    }
  ],
  "nextCursor": null
}
```

The difference touches the single row `sales-standard` with an effect of `-5442.40` base and `-1142.90` VAT. `documentId` is the second copy. `reasons` holds one reason, `duplicate_at_authority`.

## Confirm that the return lists it twice

Do not explain a duplicate before you have seen both copies. List the documents of the pre-filled side that carry the match state `duplicate`, then the documents of the row: the same `number`, the same partner and date, two different `authorityId` values.

The second copy

curl

```bash
curl "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/documents?side=prefilled&rowId=sales-standard&match=duplicate" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/documents?side=prefilled&rowId=sales-standard&match=duplicate`, {
  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/documents?side=prefilled&rowId=sales-standard&match=duplicate',
    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/documents?side=prefilled&rowId=sales-standard&match=duplicate');
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/documents?side=prefilled&rowId=sales-standard&match=duplicate");
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": "b205d17f-01f7-4ccc-9a90-37cf7c1709f2",
      "periodId": "79509f60-565a-40eb-a4c3-709e5d49e517",
      "side": "prefilled",
      "source": "e-factura",
      "direction": "sales",
      "number": "BRD-2026-00372",
      "partnerCif": "RO39172924",
      "partnerName": "Silozurile Zănești SRL",
      "date": "2026-09-13",
      "authorityId": "5012300114",
      "parts": [
        {
          "rate": "21",
          "base": "5442.40",
          "vat": "1142.90"
        }
      ],
      "base": "5442.40",
      "vat": "1142.90",
      "currency": "RON",
      "rowIds": [
        "sales-standard"
      ],
      "match": {
        "state": "duplicate",
        "differenceId": "351aa9b7-3fd2-4e48-b723-6babb3e16fae",
        "counterpartId": null
      }
    }
  ],
  "nextCursor": null
}
```

Run the same request without `match` to see the first copy, `authorityId` `5012300113`, beside this one, `5012300114`. The first copy is matched with your posting; the second has nothing to match and counts only on the pre-filled side. If the numbers differ, or the posting is in your ledger twice, the case is not a duplicate at the authority: read the difference again.

## Explain the duplicate

Send the reason, a note of 8 to 500 characters and the name of the person who explains, with the revision you read. `duplicate_at_authority` is the only reason that fits this kind: another reason is refused with `422` `reason_not_allowed`.

Explain the duplicate

curl

```bash
curl -X POST "$RDC_BASE_URL/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/351aa9b7-3fd2-4e48-b723-6babb3e16fae/explain" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "34ee2032-73de-4a41-9e96-afb9693b828b",
  "expectedRevision": 2,
  "reason": "duplicate_at_authority",
  "note": "The authority lists BRD-2026-00372 twice; the ledger holds it once.",
  "explainedBy": "ana-rusu"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/351aa9b7-3fd2-4e48-b723-6babb3e16fae/explain`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "34ee2032-73de-4a41-9e96-afb9693b828b",
    "expectedRevision": 2,
    "reason": "duplicate_at_authority",
    "note": "The authority lists BRD-2026-00372 twice; the ledger holds it once.",
    "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/351aa9b7-3fd2-4e48-b723-6babb3e16fae/explain',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '34ee2032-73de-4a41-9e96-afb9693b828b',
        'expectedRevision': 2,
        'reason': 'duplicate_at_authority',
        'note': 'The authority lists BRD-2026-00372 twice; the ledger holds it once.',
        'explainedBy': 'ana-rusu',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "34ee2032-73de-4a41-9e96-afb9693b828b",
  "expectedRevision": 2,
  "reason": "duplicate_at_authority",
  "note": "The authority lists BRD-2026-00372 twice; the ledger holds it once.",
  "explainedBy": "ana-rusu"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/etva/v1/periods/79509f60-565a-40eb-a4c3-709e5d49e517/differences/351aa9b7-3fd2-4e48-b723-6babb3e16fae/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/351aa9b7-3fd2-4e48-b723-6babb3e16fae/explain");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "34ee2032-73de-4a41-9e96-afb9693b828b",
  "expectedRevision": 2,
  "reason": "duplicate_at_authority",
  "note": "The authority lists BRD-2026-00372 twice; the ledger holds it once.",
  "explainedBy": "ana-rusu"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 202

```json
{
  "operationId": "34ee2032-73de-4a41-9e96-afb9693b828b",
  "status": "accepted",
  "aggregateId": "79509f60-565a-40eb-a4c3-709e5d49e517",
  "aggregateRevision": 2
}
```

The answer is `202` with the next revision of the period. Read the result with `getOperation` or read the period.

## The rows after

The difference is `explained`. The row `sales-standard` held two differences: this duplicate and `BRD-2026-00391`, which was already explained. With both explained the row moves from `to_review` to `explained`. Its VAT difference stays `-725.86`, because an explanation records a reason and changes no amount.

-   `sales-standard`: `explained`.
-   `sales-reduced`: `aligned`.
-   `purchases-standard`: `to_review`, until the missing invoice `AC-004563` is linked or explained.
-   `purchases-reduced`: `explained`.

Changed your mind? `reopenDifference` withdraws the explanation and the row returns to `to_review`. A new pre-filled import that no longer lists the second copy removes the difference, and its explanation is dropped with it. The next case is [Resolve a missing invoice](https://etva.rdcopilot.com/docs/guides/resolve-a-missing-invoice/).
