Corrections
A rejected invoice never changes. Read why it was rejected and send a new invoice that corrects it.
On this page
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.
{
"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
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
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
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
$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#
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(); {
"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 itscorrectionOfand work on it. - Only a
rejectedinvoice can be corrected. Any other status answersinvalid_status.
Fix it and send it
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.
Check
Read the checks until
canSendis true.Send
Send and follow the correction like any invoice. It gets its own upload index and its own answer.
What is not a correction
- An accepted invoice is credited with a credit note, not corrected. See Invoices and credit notes.
- An invoice in
manual_reviewis not rejected: send it again after you checked. See When the authority is unavailable.