Your software sends and receives e‑Factura
Each invoice is checked, uploaded and followed until the authority answers.
| Company | Processing | Accepted | Rejected |
|---|---|---|---|
| Brumar Distribuție SRL | 1 | 6 | 1 |
| Brumar Retail SRL | 0 | 2 | 0 |
| Both companies | 1 | 8 | 1 |
- Your software hands over invoice FCT-2026-00418 for Hanul Ozana SRL.
- The gateway reads the buyer, the date and the total, RON 3,168.42, into the register.
- 7 checks run before upload and all 7 pass.
- The file FCT-2026-00418.xml goes to the authority.
- The authority has the file and answers în prelucrare. The upload index 5012480131 comes back.
- The authority answers ok. The file is kept with its hash.
- Answer ok: invoice FCT-2026-00418 is accepted, your software is told invoice.accepted.
- The next invoice starts the same way.
Every invoice of every company, in one register
Invoices
| Actions | ||||||
|---|---|---|---|---|---|---|
| FCT-2026-00425 | Cofetăria Vălul Alb SRLRO39172614 | 23 Nov 2026 | RON 661.01 | — | ||
| FCT-2026-00424 | Market Trei Brazi SRL39172851 | 23 Nov 2026 | RON 1,518.80 | — | ||
| FCT-2026-00423 | Hanul Ozana SRLRO39172541 | 23 Nov 2026 | RON 571.51 | — | ||
| FCT-2026-00422 | Market Trei Brazi SRLRO39172851 | 20 Nov 2026 | RON 1,758.57 | 5012480173 | ||
| FCT-2026-00421 | Silozurile Zănești SRLRO39172924 | 20 Nov 2026 | RON 914.55 | 5012480169 | ||
| FCT-2026-00420 | Pensiunea Stânca Corbului SRLRO39172797 | 20 Nov 2026 | RON 1,788.38 | 5012480152 | ||
| FCT-2026-00419 | Cofetăria Vălul Alb SRLRO39172614 | 20 Nov 2026 | RON 746.48 | 5012480144 | ||
| FCT-2026-00418 | Hanul Ozana SRLRO39172541 | 19 Nov 2026 | RON 3,168.42 | 5012480131 | ||
| FCT-2026-00416 | Brumar Retail SRLRO48290783 | 16 Nov 2026 | RON 1,577.25 | 5012480088 | ||
| FCT-2026-00412Credit note | Market Trei Brazi SRLRO39172851 | 9 Nov 2026 | -RON 82.81 | 5012480011 | ||
| FCT-2026-00409 | Market Trei Brazi SRLRO39172851 | 4 Nov 2026 | RON 2,218.75 | 5012479934 | ||
| FCT-2026-00405 | Hanul Ozana SRLRO39172541 | 28 Oct 2026 | RON 703.43 | 5012479881 |
Press Enter to open the record.
Companies
| Brumar Distribuție SRLRO48290619 | 12 Mar 2027 | Send and receive | 0 | ||
|---|---|---|---|---|---|
| Brumar Retail SRLRO48290783 | 3 Dec 2026 | Send and receive | 0 |
Press Enter to open the record.
From your software to the authority’s answer
- Your software
- e‑Factura Gateway, connector
- Tax authority, outside the company
- Buyer, outside the company
Accepted
Your software
Send the invoice
Your software sends the invoice to the gateway: the lines, the buyer and the VAT.
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
e‑Factura Gateway, connector
Check and queue
Every check passes, the authorisation of the company is in force, and the invoice is queued.
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
Tax authority, outside the company
Upload
The gateway uploads the invoice and the authority returns an upload index.
Romania: ANAF, RO e‑Factura
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
- Upload index
- 5012480182
Tax authority, outside the company
Wait for the answer
The authority lists the upload as în prelucrare until it has checked the file.
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
- Upload index
- 5012480182
Tax authority, outside the company
The authority answers ok
The invoice is accepted. The gateway stores the file with its hash.
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
- Upload index
- 5012480182
Buyer, outside the company
The buyer receives it
The invoice is now in the list of received invoices of the buyer.
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
- Upload index
- 5012480182
Your software
Your software is told
The gateway sends an event to your endpoint. It answers and the event is delivered.
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
- Upload index
- 5012480182
Stopped by a check
Your software
Send the invoice
Your software sends the invoice to the gateway.
- Invoice
- FCT-2026-00424
- Total
- RON 1,518.80
e‑Factura Gateway, connector
A check stops it
BR-CO-09 and GW-01 fail: the buyer CIF has no country prefix and a line carries a VAT rate that is not in force. Nothing is uploaded.
- Invoice
- FCT-2026-00424
- Total
- RON 1,518.80
Your software
Correct it
The CIF gets its RO prefix and the line gets the VAT rate in force. The checks run again and none blocks.
- Invoice
- FCT-2026-00424
- Total
- RON 1,522.56
e‑Factura Gateway, connector
Check and queue
The invoice passes every check and is queued.
- Invoice
- FCT-2026-00424
- Total
- RON 1,522.56
Tax authority, outside the company
Upload
The authority returns an upload index.
Romania: ANAF, RO e‑Factura
- Invoice
- FCT-2026-00424
- Total
- RON 1,522.56
- Upload index
- 5012480182
Tax authority, outside the company
The authority answers ok
The invoice is accepted and the file is stored.
- Invoice
- FCT-2026-00424
- Total
- RON 1,522.56
- Upload index
- 5012480182
Rejected by the authority
Your software
Send the invoice
Your software sends the invoice. The buyer CIF on it is not the buyer’s.
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
e‑Factura Gateway, connector
Check and queue
The CIF has its country prefix, so every check passes. The gateway cannot know whether the buyer exists: the authority does.
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
Tax authority, outside the company
Upload
The authority returns an upload index.
Romania: ANAF, RO e‑Factura
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
- Upload index
- 5012480182
Tax authority, outside the company
Wait for the answer
The upload is în prelucrare.
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
- Upload index
- 5012480182
Tax authority, outside the company
The authority answers nok
The invoice is rejected. The message of the authority:
CIF-ul cumpărătorului (BT-48) nu a fost găsit în registrul contribuabililor.
- Invoice
- FCT-2026-00425
- Total
- RON 661.01
- Upload index
- 5012480182
e‑Factura Gateway, connector
Create the correcting invoice
A rejected invoice stays as it is. The correction is a new document, FCT-2026-00426, that points back to FCT-2026-00425.
- Invoice
- FCT-2026-00426
- Total
- RON 661.01
Tax authority, outside the company
The correction is accepted
The correct buyer CIF is on FCT-2026-00426, and the authority answers ok.
Romania: ANAF, RO e‑Factura
- Invoice
- FCT-2026-00426
- Total
- RON 661.01
- Upload index
- 5012480183
Event endpoint down
e‑Factura Gateway, connector
Event delivery fails
The invoice is uploaded and the gateway sends the event invoice.submitted. Your endpoint answers 503.
- Invoice
- BRT-2026-00064
- Total
- RON 272.47
- Upload index
- 5012480182
e‑Factura Gateway, connector
Try again
Attempt 2 of 6, a minute later: the endpoint still answers 503.
- Invoice
- BRT-2026-00064
- Total
- RON 272.47
- Upload index
- 5012480182
e‑Factura Gateway, connector
Wait longer between attempts
Attempts 3 to 5 follow after 5 minutes, 30 minutes and 2 hours. The endpoint answers 503 each time.
- Invoice
- BRT-2026-00064
- Total
- RON 272.47
- Upload index
- 5012480182
e‑Factura Gateway, connector
The event is parked
Attempt 6 fails too, 12 hours after the fifth. The gateway stops trying and keeps the event for a replay. The invoice itself is not affected.
- Invoice
- BRT-2026-00064
- Total
- RON 272.47
- Upload index
- 5012480182
Your software
Your endpoint answers again
You fix the endpoint. The gateway checks it and it answers.
- Invoice
- BRT-2026-00064
- Total
- RON 272.47
- Upload index
- 5012480182
e‑Factura Gateway, connector
Replay the event
The parked event is sent again and your software receives it.
- Invoice
- BRT-2026-00064
- Total
- RON 272.47
- Upload index
- 5012480182
What each step writes
| Step | Record created or changed |
|---|---|
| 1 Send the invoice | Invoice FCT-2026-00425 as a draft |
| 2 Check and queue | Validated, authorised and queued |
| 3 Upload | Upload index 5012480182 |
| 4 Wait for the answer | Status în prelucrare |
| 5 The authority answers ok | Stored file FCT-2026-00425.xml |
| 6 The buyer receives it | Invoice available to the buyer |
| 7 Your software is told | Event invoice.accepted, attempt 1 |
| Step | Record created or changed |
|---|---|
| 1 Send the invoice | Invoice FCT-2026-00424 as a draft |
| 2 A check stops it | Checks BR-CO-09, GW-01 fail |
| 3 Correct it | Invoice corrected, checks pass |
| 4 Check and queue | Validated, authorised and queued |
| 5 Upload | Upload index 5012480182 |
| 6 The authority answers ok | Stored file FCT-2026-00424.xml |
| Step | Record created or changed |
|---|---|
| 1 Send the invoice | Invoice FCT-2026-00425 as a draft |
| 2 Check and queue | Validated, authorised and queued |
| 3 Upload | Upload index 5012480182 |
| 4 Wait for the answer | Status în prelucrare |
| 5 The authority answers nok | Rejected: the message is stored on FCT-2026-00425 |
| 6 Create the correcting invoice | Invoice FCT-2026-00426, correction of FCT-2026-00425 |
| 7 The correction is accepted | Stored file FCT-2026-00426.xml |
| Step | Record created or changed |
|---|---|
| 1 Event delivery fails | Event attempt 1 failed |
| 2 Try again | Event attempt 2 failed |
| 3 Wait longer between attempts | Event attempts 3 to 5 failed |
| 4 The event is parked | Event parked |
| 5 Your endpoint answers again | Endpoint answering |
| 6 Replay the event | Event replayed, attempt 7 |
The first invoice from your code
curl -X POST "$RDC_BASE_URL/efactura/v1/invoices" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
"companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
"number": "FCT-2026-00425",
"type": "invoice",
"partnerCif": "RO39172614",
"issueDate": "2026-11-23",
"reference": "CV-1048",
"lines": [
{
"code": "FA-0010",
"name": "White flour, 10 kg bag",
"quantity": "12",
"unitPrice": "38.90",
"vatRate": "11"
},
{
"code": "ZA-0201",
"name": "Sugar, 1 kg",
"quantity": "30",
"unitPrice": "4.29",
"vatRate": "11"
}
]
}'const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/invoices`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
"companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
"number": "FCT-2026-00425",
"type": "invoice",
"partnerCif": "RO39172614",
"issueDate": "2026-11-23",
"reference": "CV-1048",
"lines": [
{
"code": "FA-0010",
"name": "White flour, 10 kg bag",
"quantity": "12",
"unitPrice": "38.90",
"vatRate": "11"
},
{
"code": "ZA-0201",
"name": "Sugar, 1 kg",
"quantity": "30",
"unitPrice": "4.29",
"vatRate": "11"
}
]
}),
});
const result = await response.json();import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/efactura/v1/invoices',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '536fa351-86fd-4acf-b8e1-af4817d6617b',
'companyId': 'c6a26b8c-3323-4e7a-8611-f5a92f5e1a42',
'number': 'FCT-2026-00425',
'type': 'invoice',
'partnerCif': 'RO39172614',
'issueDate': '2026-11-23',
'reference': 'CV-1048',
'lines': [
{
'code': 'FA-0010',
'name': 'White flour, 10 kg bag',
'quantity': '12',
'unitPrice': '38.90',
'vatRate': '11',
},
{
'code': 'ZA-0201',
'name': 'Sugar, 1 kg',
'quantity': '30',
'unitPrice': '4.29',
'vatRate': '11',
},
],
},
)
result = response.json()<?php
$body = <<<'JSON'
{
"operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
"companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
"number": "FCT-2026-00425",
"type": "invoice",
"partnerCif": "RO39172614",
"issueDate": "2026-11-23",
"reference": "CV-1048",
"lines": [
{
"code": "FA-0010",
"name": "White flour, 10 kg bag",
"quantity": "12",
"unitPrice": "38.90",
"vatRate": "11"
},
{
"code": "ZA-0201",
"name": "Sugar, 1 kg",
"quantity": "30",
"unitPrice": "4.29",
"vatRate": "11"
}
]
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/invoices');
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);using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/efactura/v1/invoices");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
"companyId": "c6a26b8c-3323-4e7a-8611-f5a92f5e1a42",
"number": "FCT-2026-00425",
"type": "invoice",
"partnerCif": "RO39172614",
"issueDate": "2026-11-23",
"reference": "CV-1048",
"lines": [
{
"code": "FA-0010",
"name": "White flour, 10 kg bag",
"quantity": "12",
"unitPrice": "38.90",
"vatRate": "11"
},
{
"code": "ZA-0201",
"name": "Sugar, 1 kg",
"quantity": "30",
"unitPrice": "4.29",
"vatRate": "11"
}
]
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response202 Accepted
{
"operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
"status": "accepted",
"aggregateId": "5081abd5-935d-4688-b961-0715c149fbd1",
"aggregateRevision": 1
} What is checked before upload
| Rule | What it requires | Where in the XML | If it fails |
|---|---|---|---|
| BR-CO-10 | Line net amounts add up to the net total. | cac:LegalMonetaryTotal/cbc:LineExtensionAmount (BT-106) | Blocks sending |
| BR-S-09 | The VAT of each rate is its base times the rate. | cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount (BT-117) | Blocks sending |
| BR-CO-14 | The VAT total is the sum of the VAT of each rate. | cac:TaxTotal/cbc:TaxAmount (BT-110) | Blocks sending |
| BR-CO-15 | The total with VAT is the net total plus VAT. | cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount (BT-112) | Blocks sending |
| BR-CO-09 | The buyer’s VAT identifier starts with a country prefix. | cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID (BT-48) | Blocks sending |
| GW-01 | Every line carries a VAT rate in force. | cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent (BT-152) | Blocks sending |
| GW-02 | The invoice carries a buyer reference. | cbc:BuyerReference (BT-10) | Warns, the invoice is still sent |
The authority’s answers, in its own words
| Status | Meaning |
|---|---|
processing | The authority has the file and has not finished. The invoice waits here and is not uploaded again. |
accepted | The authority accepted the invoice. The gateway keeps the file with its hash and tells your software. |
rejected | The authority refused the invoice and said why. The gateway keeps the message as the authority wrote it and tells your software; the correction is a new invoice. |
manual_review | The upload timed out and the gateway cannot tell whether the file arrived. The invoice stops here until you have checked it and send it again. |
One account, many companies
-
Each company has its own authorisation
The gateway sends and receives for a company once its representative has confirmed access at the authority. The register shows who authorised it and what the gateway may do for it.
Show it: Each company has its own authorisation -
Renewal before the end date
A company whose authorisation ends soon is marked ahead of the day, and the others carry on. The gateway prepares the renewal, the representative confirms it at the authority, and the gateway sees the result.
Show it: Renewal before the end date -
An accounting firm works for its clients from one account
Each client is a company of the account, with its own CIF, authorisation, invoices and event endpoint. Pausing or renewing one does not change another.
Questions about sending and receiving
What happens if my software sends the same invoice twice?
Each change carries an operation id that your software chooses. The same request sent again gets the first outcome and changes nothing, so a retry after a timeout cannot upload an invoice twice.
What happens when the authority rejects an invoice?
The invoice shows nok with the message of the authority and stays as it is. The correction is a new document that points back to it, so the history of both is kept.
What if the authority does not answer?
The invoice goes to manual review, because the gateway cannot tell whether the file arrived. You check and send it again.
Does the gateway also receive invoices?
Yes. It downloads the invoices that suppliers sent to each company, stores them with their hash, and shows the messages that buyers send about your invoices.
What if my event endpoint is down?
The gateway makes six attempts over about 15 hours: at once, then after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. Then it parks the event. When your endpoint answers again, you replay it and nothing is lost.
How does my endpoint tell that an event comes from the gateway?
Each delivery is signed with the secret of the subscription, which is returned once, when you create the subscription. Your endpoint checks the signature on the raw body and refuses what does not match.
Related guides
-
Scope e‑Factura access and responsibilities for several companies
Organize multi-company e‑Factura around taxpayer context, action permissions, authorized connections and access removal that includes background operations.
Read the guide: Scope e‑Factura access and responsibilities for several companies -
Follow e‑Factura from upload to the official response
Track e‑Factura attempts, official identifiers, processing states and downloaded responses, with recovery that separates upload success from the final outcome.
Read the guide: Follow e‑Factura from upload to the official response -
Validate e‑Factura data before it reaches the submission queue
Connect e‑Factura source data, XML preparation and validation errors in a reviewable queue, with field ownership and version checks before authorized submission.
Read the guide: Validate e‑Factura data before it reaches the submission queue
Proposal for e‑Factura Gateway
Tell us about your software and your companies. We reply with a proposal.