---
title: "Corrections | Docs | e-Factura Gateway by R&D Copilot"
description: "A rejected invoice never changes. Read why it was rejected and send a new invoice that corrects it."
canonical: "https://efactura.rdcopilot.com/docs/send/corrections/"
language: en
updated: 2026-11-22
---

# Corrections

A rejected invoice never changes. Read why it was rejected and send a new invoice that corrects it.

When the authority rejects an invoice, the invoice stays as it is, with the answer it got. The correction is a new document with its own number, linked to the rejected one by `correctionOf`. The same holds in the product window: the rejected row stays, and the correction appears as a new draft.

## Read why it was rejected

The history of a `rejected` invoice carries the message of the authority. The gateway shows it exactly as the authority wrote it, in the authority’s language, and does not translate or shorten it.

The last entry of the history

```json
{
  "status": "rejected",
  "at": "2026-11-20T09:20:00Z",
  "message": "CIF-ul cumpărătorului (BT-48) nu a fost găsit în registrul contribuabililor.",
  "code": "authority-message"
}
```

## Create the correction

Ask the gateway to make the correction from the rejected invoice. It creates a draft with the next number of the series, today’s issue date and the lines of the rejected invoice. `aggregateId` of the answer is the new draft.

curl

```bash
curl -X POST "$RDC_BASE_URL/efactura/v1/invoices/b394e5da-e8fb-44dc-85ef-358e2e775692/correction" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "a1367765-b7a2-4d88-be3b-0ab14849c713",
  "expectedRevision": 7
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices/b394e5da-e8fb-44dc-85ef-358e2e775692/correction`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "a1367765-b7a2-4d88-be3b-0ab14849c713",
    "expectedRevision": 7
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/efactura/v1/invoices/b394e5da-e8fb-44dc-85ef-358e2e775692/correction',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'a1367765-b7a2-4d88-be3b-0ab14849c713',
        'expectedRevision': 7,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "a1367765-b7a2-4d88-be3b-0ab14849c713",
  "expectedRevision": 7
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices/b394e5da-e8fb-44dc-85ef-358e2e775692/correction');
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")}/efactura/v1/invoices/b394e5da-e8fb-44dc-85ef-358e2e775692/correction");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "a1367765-b7a2-4d88-be3b-0ab14849c713",
  "expectedRevision": 7
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 202

```json
{
  "operationId": "a1367765-b7a2-4d88-be3b-0ab14849c713",
  "status": "accepted",
  "aggregateId": "1f35d06f-5f09-4cbb-a834-1feaa6ac845e",
  "aggregateRevision": 1
}
```

-   A rejected invoice has one correction. Asking again answers `already_corrected`: read the correction through its `correctionOf` and work on it.
-   Only a `rejected` invoice can be corrected. Any other status answers `invalid_status`.

## Fix it and send it

1.  Fix the cause
    
    Compare the new draft with the message of the authority, for example the buyer identifier, and change what still needs it. See [Validate before sending](https://efactura.rdcopilot.com/docs/send/validate-before-sending/).
    
2.  Check
    
    Read the checks until `canSend` is true.
    
3.  Send
    
    [Send and follow](https://efactura.rdcopilot.com/docs/send/send-and-follow/) the correction like any invoice. It gets its own upload index and its own answer.
    

The draft that was made for the example above is FCT-2026-00426, with `correctionOf` FCT-2026-00420.

## What is not a correction

-   An accepted invoice is credited with a credit note, not corrected. See [Invoices and credit notes](https://efactura.rdcopilot.com/docs/send/invoices-and-credit-notes/).
-   An invoice in `manual_review` is not rejected: send it again after you checked. See [When the authority is unavailable](https://efactura.rdcopilot.com/docs/statuses-and-errors/authority-unavailable/).
