---
title: "e-Factura Gateway by R&D Copilot: send and receive e-Factura from your own software"
description: "e-Factura Gateway sends your invoices and credit notes to RO e-Factura, checks each one before upload, follows the answer of the authority and keeps the files."
canonical: "https://efactura.rdcopilot.com/"
language: en
updated: 2026-11-22
---

# Your software sends and receives e-Factura

Each invoice is checked, uploaded and followed until the authority answers.

[Request a proposal](https://rdcopilot.com/contact/?product=efactura) [Read the docs](https://efactura.rdcopilot.com/docs/)

| Company | Processingîn prelucrare | Acceptedok | Rejectednok |
| --- | --- | --- | --- |
| Brumar Distribuție SRL | 1 | 6 | 1 |
| Brumar Retail SRL | 0 | 2 | 0 |
| Both companies | Processing (în prelucrare) 1 | Accepted (ok) 8 | Rejected (nok) 1 |

What the animation shows:

1.  Your software hands over invoice FCT-2026-00418 for Hanul Ozana SRL.
2.  The gateway reads the buyer, the date and the total, RON 3,168.42, into the register.
3.  7 checks run before upload and all 7 pass.
4.  The file FCT-2026-00418.xml goes to the authority.
5.  The authority has the file and answers în prelucrare. The upload index 5012480131 comes back.
6.  The authority answers ok. The file is kept with its hash.
7.  Answer ok: invoice FCT-2026-00418 is accepted, your software is told invoice.accepted.
8.  The next invoice starts the same way.

## Every invoice of every company, in one register

Brumar Distribuție SRL

### Invoices

12 of 12 invoices

| Number | Buyer | Issued | Total | Upload index | Status |
| --- | --- | --- | --- | --- | --- |
| FCT-2026-00425 | Cofetăria Vălul Alb SRL, RO39172614 | 23 Nov 2026 | RON 661.01 | — | Draft |
| FCT-2026-00424 | Market Trei Brazi SRL, 39172851 | 23 Nov 2026 | RON 1,518.80 | — | Draft |
| FCT-2026-00423 | Hanul Ozana SRL, RO39172541 | 23 Nov 2026 | RON 571.51 | — | Manual review |
| FCT-2026-00422 | Market Trei Brazi SRL, RO39172851 | 20 Nov 2026 | RON 1,758.57 | 5012480173 | Uploaded |
| FCT-2026-00421 | Silozurile Zănești SRL, RO39172924 | 20 Nov 2026 | RON 914.55 | 5012480169 | în prelucrare |
| FCT-2026-00420 | Pensiunea Stânca Corbului SRL, RO39172797 | 20 Nov 2026 | RON 1,788.38 | 5012480152 | nok |
| FCT-2026-00419 | Cofetăria Vălul Alb SRL, RO39172614 | 20 Nov 2026 | RON 746.48 | 5012480144 | ok |
| FCT-2026-00418 | Hanul Ozana SRL, RO39172541 | 19 Nov 2026 | RON 3,168.42 | 5012480131 | ok |
| FCT-2026-00416 | Brumar Retail SRL, RO48290783 | 16 Nov 2026 | RON 1,577.25 | 5012480088 | ok |
| FCT-2026-00412, Credit note | Market Trei Brazi SRL, RO39172851 | 9 Nov 2026 | \-RON 82.81 | 5012480011 | ok |
| FCT-2026-00409 | Market Trei Brazi SRL, RO39172851 | 4 Nov 2026 | RON 2,218.75 | 5012479934 | ok |
| FCT-2026-00405 | Hanul Ozana SRL, RO39172541 | 28 Oct 2026 | RON 703.43 | 5012479881 | ok |

### FCT-2026-00424

Market Trei Brazi SRL

39172851

Draft

Issued

23 Nov 2026

Due

23 Dec 2026

Total

RON 1,518.80

Upload index

—

Fix 2 checks before sending.

#### Checks

Buyer CIF

With the country prefix.

2 checks block sending.

1.  BR-CO-09, Blocking, failed, The buyer’s VAT identifier 39172851 has no country prefix. Start it with RO., cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID (BT-48)
2.  GW-01, Blocking, failed, A line carries VAT rate 19%, which is not in force. Use 21% or 11%., cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent (BT-152)
3.  GW-02, Warning, failed, The buyer reference is empty. Buyers use it to match the invoice., cbc:BuyerReference (BT-10)
4.  BR-CO-10, Blocking, passed, Line net amounts add up to the net total.
5.  BR-S-09, Blocking, passed, The VAT of each rate is its base times the rate.
6.  BR-CO-14, Blocking, passed, The VAT total is the sum of the VAT of each rate.
7.  BR-CO-15, Blocking, passed, The total with VAT is the net total plus VAT.

#### Lines

| Item | Qty | VAT | Net |
| --- | --- | --- | --- |
| White flour, 10 kg bag, FA-0010 | 30 | 11%, | RON 1,167.00 |
| Dishwashing liquid, 5 l, DT-0412 | 8 | 19%, | RON 187.76 |
| Net total | RON 1,354.76 |  |  |
| VAT 19% on RON 187.76 | RON 35.67 |  |  |
| VAT 11% on RON 1,167.00 | RON 128.37 |  |  |
| Total | RON 1,518.80 |  |  |

#### Activity

1.  Received from your software
    
    23 Nov 2026, 08:48
    

### API

## From your software to the authority’s answer

1.  Your software
2.  e-Factura Gateway
3.  Tax authority
4.  Buyer

Accepted

1.  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
    
    Draft
    
2.  e-Factura Gateway
    
    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
    
    Queued
    
3.  Tax authority
    
    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
    
    Uploaded
    
4.  Tax authority
    
    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
    
    în prelucrare
    
5.  Tax authority
    
    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
    
    ok
    
6.  Buyer
    
    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
    
    ok
    
7.  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
    
    HTTP 200
    

Stopped by a check

1.  Your software
    
    Send the invoice
    
    Your software sends the invoice to the gateway.
    
    Invoice
    
    FCT-2026-00424
    
    Total
    
    RON 1,518.80
    
    Draft
    
2.  e-Factura Gateway
    
    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
    
    Draft
    
3.  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
    
    Draft
    
4.  e-Factura Gateway
    
    Check and queue
    
    The invoice passes every check and is queued.
    
    Invoice
    
    FCT-2026-00424
    
    Total
    
    RON 1,522.56
    
    Queued
    
5.  Tax authority
    
    Upload
    
    The authority returns an upload index.
    
    Romania: ANAF, RO e-Factura
    
    Invoice
    
    FCT-2026-00424
    
    Total
    
    RON 1,522.56
    
    Upload index
    
    5012480182
    
    Uploaded
    
6.  Tax authority
    
    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
    
    ok
    

Rejected by the authority

1.  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
    
    Draft
    
2.  e-Factura Gateway
    
    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
    
    Queued
    
3.  Tax authority
    
    Upload
    
    The authority returns an upload index.
    
    Romania: ANAF, RO e-Factura
    
    Invoice
    
    FCT-2026-00425
    
    Total
    
    RON 661.01
    
    Upload index
    
    5012480182
    
    Uploaded
    
4.  Tax authority
    
    Wait for the answer
    
    The upload is în prelucrare.
    
    Invoice
    
    FCT-2026-00425
    
    Total
    
    RON 661.01
    
    Upload index
    
    5012480182
    
    în prelucrare
    
5.  Tax authority
    
    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
    
    nok
    
6.  e-Factura Gateway
    
    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
    
    Draft
    
7.  Tax authority
    
    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
    
    ok
    

Event endpoint down

1.  e-Factura Gateway
    
    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
    
    HTTP 503
    
2.  e-Factura Gateway
    
    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
    
    HTTP 503
    
3.  e-Factura Gateway
    
    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
    
    HTTP 503
    
4.  e-Factura Gateway
    
    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
    
    HTTP 503
    
5.  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
    
    HTTP 200
    
6.  e-Factura Gateway
    
    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
    
    HTTP 200
    

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

curlJavaScriptPythonPHPC#

curl

Copy

```
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"
    }
  ]
}'
```

Response202 Accepted

```
{
  "operationId": "536fa351-86fd-4acf-b8e1-af4817d6617b",
  "status": "accepted",
  "aggregateId": "5081abd5-935d-4688-b961-0715c149fbd1",
  "aggregateRevision": 1
}
```

[Quickstart](https://efactura.rdcopilot.com/docs/get-started/quickstart/)[API reference](https://efactura.rdcopilot.com/docs/api-reference/invoices/)[Events](https://efactura.rdcopilot.com/docs/events/event-envelope/)

## 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 |
| --- | --- |
| în prelucrare `processing` | The authority has the file and has not finished. The invoice waits here and is not uploaded again. |
| ok `accepted` | The authority accepted the invoice. The gateway keeps the file with its hash and tells your software. |
| nok `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 `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](https://efactura.rdcopilot.com/?view=companies&open=brumar#register)
    
-   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](https://efactura.rdcopilot.com/?view=companies&open=brumar-retail#register)
    
-   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](https://rdcopilot.com/insights/efactura-multi-company-access/)
    
-   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](https://rdcopilot.com/insights/efactura-status-receipts-workflow/)
    
-   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](https://rdcopilot.com/insights/efactura-validation-before-submission/)
    

## Proposal for e-Factura Gateway

Tell us about your software and your companies. We reply with a proposal.

[Request a proposal](https://rdcopilot.com/contact/?product=efactura)
