Skip to content

Your software sends and receives e‑Factura

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

Invoices by authority response
Company ProcessingAcceptedRejected
Brumar Distribuție SRL 161
Brumar Retail SRL 020
Both companies 1 8 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

Sent invoices
Actions
FCT-2026-00425Cofetăria Vălul Alb SRLRO3917261423 Nov 2026RON 661.01—
FCT-2026-00424Market Trei Brazi SRL3917285123 Nov 2026RON 1,518.80—
FCT-2026-00423Hanul Ozana SRLRO3917254123 Nov 2026RON 571.51—
FCT-2026-00422Market Trei Brazi SRLRO3917285120 Nov 2026RON 1,758.575012480173
FCT-2026-00421Silozurile Zănești SRLRO3917292420 Nov 2026RON 914.555012480169
FCT-2026-00420Pensiunea Stânca Corbului SRLRO3917279720 Nov 2026RON 1,788.385012480152
FCT-2026-00419Cofetăria Vălul Alb SRLRO3917261420 Nov 2026RON 746.485012480144
FCT-2026-00418Hanul Ozana SRLRO3917254119 Nov 2026RON 3,168.425012480131
FCT-2026-00416Brumar Retail SRLRO4829078316 Nov 2026RON 1,577.255012480088
FCT-2026-00412Credit noteMarket Trei Brazi SRLRO391728519 Nov 2026-RON 82.815012480011
FCT-2026-00409Market Trei Brazi SRLRO391728514 Nov 2026RON 2,218.755012479934
FCT-2026-00405Hanul Ozana SRLRO3917254128 Oct 2026RON 703.435012479881

Press Enter to open the record.

From your software to the authority’s answer

Step 1 of 7

  1. Your software
  2. e‑Factura Gateway, connector
  3. Tax authority, outside the company
  4. Buyer, outside the company

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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  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

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
  2. 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
  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
  4. e‑Factura Gateway, connector

    Check and queue

    The invoice passes every check and is queued.

    Invoice
    FCT-2026-00424
    Total
    RON 1,522.56
  5. 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
  6. 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

  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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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

  1. 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
  2. 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
  3. 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
  4. 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
  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
  6. 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

Accepted
StepRecord created or changed
1 Send the invoiceInvoice FCT-2026-00425 as a draft
2 Check and queueValidated, authorised and queued
3 UploadUpload index 5012480182
4 Wait for the answerStatus în prelucrare
5 The authority answers okStored file FCT-2026-00425.xml
6 The buyer receives itInvoice available to the buyer
7 Your software is toldEvent invoice.accepted, attempt 1
Stopped by a check
StepRecord created or changed
1 Send the invoiceInvoice FCT-2026-00424 as a draft
2 A check stops itChecks BR-CO-09, GW-01 fail
3 Correct itInvoice corrected, checks pass
4 Check and queueValidated, authorised and queued
5 UploadUpload index 5012480182
6 The authority answers okStored file FCT-2026-00424.xml
Rejected by the authority
StepRecord created or changed
1 Send the invoiceInvoice FCT-2026-00425 as a draft
2 Check and queueValidated, authorised and queued
3 UploadUpload index 5012480182
4 Wait for the answerStatus în prelucrare
5 The authority answers nokRejected: the message is stored on FCT-2026-00425
6 Create the correcting invoiceInvoice FCT-2026-00426, correction of FCT-2026-00425
7 The correction is acceptedStored file FCT-2026-00426.xml
Event endpoint down
StepRecord created or changed
1 Event delivery failsEvent attempt 1 failed
2 Try againEvent attempt 2 failed
3 Wait longer between attemptsEvent attempts 3 to 5 failed
4 The event is parkedEvent parked
5 Your endpoint answers againEndpoint answering
6 Replay the eventEvent replayed, attempt 7

The first invoice from your code

curl

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
}

What is checked before upload

The checks the gateway runs on every invoice before upload
RuleWhat it requiresWhere in the XMLIf it fails
BR-CO-10Line net amounts add up to the net total.cac:LegalMonetaryTotal/cbc:LineExtensionAmount (BT-106)Blocks sending
BR-S-09The VAT of each rate is its base times the rate.cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount (BT-117)Blocks sending
BR-CO-14The VAT total is the sum of the VAT of each rate.cac:TaxTotal/cbc:TaxAmount (BT-110)Blocks sending
BR-CO-15The total with VAT is the net total plus VAT.cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount (BT-112)Blocks sending
BR-CO-09The buyer’s VAT identifier starts with a country prefix.cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID (BT-48)Blocks sending
GW-01Every line carries a VAT rate in force.cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent (BT-152)Blocks sending
GW-02The invoice carries a buyer reference.cbc:BuyerReference (BT-10)Warns, the invoice is still sent

The authority’s answers, in its own words

StatusMeaning
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

Proposal for e‑Factura Gateway

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

Request a proposal