ERP

e-Factura integration for an ERP and an online store in Romania: how it works and who builds it

How an invoice travels from an ERP or an online store into RO e-Factura (SPV), the two integration options, what to do with rejected invoices and supplier invoices, and how to choose who builds the integration.

Key points

  • Invoices between companies (B2B) and, from 1 January 2025, invoices to consumers (B2C) go through RO e-Factura.
  • The invoice is sent as UBL XML following the CIUS-RO specification, through the SPV or the ANAF API.
  • One system issues the invoice, and its SPV status comes back into the ERP or the store.
  • A rejected invoice has to reach a person who corrects it within the legal deadline.

What an e-Factura integration does

Webmate Agency builds the e-Factura integration so the accountant no longer downloads invoices from the ERP and uploads them to the SPV by hand. The company’s system prepares the XML, sends it to ANAF and keeps the answer.

RO e-Factura is the system through which companies in Romania send electronic invoices to ANAF, the Romanian tax authority. ANAF validates the file and makes it available to the buyer in the Virtual Private Space (SPV).

Sending is mandatory between companies (B2B) and, from 1 January 2025, also for invoices to consumers (B2C), according to the Ministry of Finance. The deadline is 5 working days from the date the invoice is issued.

  • Online stores that issue many invoices to consumers.
  • Companies with their own or a custom ERP that has no e-Factura built in.
  • Companies that invoice from several places: the store, sales staff, warehouses.
  • Companies that receive many supplier invoices and type them into the stock program by hand.

The path of an invoice through RO e-Factura

The diagram shows the steps of an invoice issued from an ERP or an online store. Validating the file before sending it reduces the number of invoices ANAF rejects.

An invoice issued from the ERP and sent to RO e-Factura
  1. Order confirmedThe salesperson or the store confirms the order and the payment.
  2. Invoice issuedThe ERP or the invoicing software issues the invoice from the order data.
  3. UBL XMLThe system generates the file following CIUS-RO and checks it before sending.
  4. Sent to the SPVThe file is uploaded through the ANAF API, with the company’s authentication.
  5. ANAF answerThe system reads the status: validated, or rejected with the reason.
  6. Status in the ERPThe team sees the status of every invoice, and rejected ones reach a named person.

The technical details (XML format, API services, validation) are published by the Romanian Ministry of Finance in its RO e-Factura section.

Two options: through the invoicing software or straight from the ERP

The right option depends on who issues the invoice today. If you already use invoicing software that sends to e-Factura, such as SmartBill, Oblio or FGO, it is usually simpler to connect the ERP or the store to it.

How the invoice gets from the ERP or the store into RO e-Factura
CriterionThrough the invoicing softwareStraight from the ERP or the store
Fits whenThe invoicing software already sends to e-FacturaThe ERP issues the invoices and has no e-Factura built in
What gets builtThe link between the order and the invoicing softwareXML generation, sending through the API and reading the ANAF answer
Who keeps up with ANAF changesThe maker of the invoicing softwareThe company that maintains the integration
What to watchThat an invoice is never issued twiceThat rejected invoices are corrected in time

Invoices received from suppliers

The integration can also work the other way. The system downloads the invoices received from suppliers from the SPV on a schedule, and the team sees them in the ERP next to the purchase order.

Messages stay in the SPV for a limited time, so the download has to run regularly, not only when someone remembers. For Orange, Webmate built a system where documents are generated from data the team enters once, and the same rule applies here: the data is read from the file, not copied by hand.

What changes the cost and the timeline

Sending only the invoices you issue, for one company, is the simplest case. Each item below adds rules and tests.

  • Received invoices as well as issued ones.
  • Credit notes and returns.
  • Customers in other EU countries.
  • Several companies or several invoice series in the same system.
  • The daily invoice volume and how fast the ANAF answer must be visible.

Common mistakes and what to test before launch

Most rejected invoices come from incomplete data: a mistyped tax ID (CUI), an address without a county or a wrong VAT code. Test these cases before you switch automatic sending on.

Test scenarios for an e-Factura integration

0 of 7 checked

How to choose who builds the integration

Ask the supplier whether it has already connected an ERP or a store to invoicing, and what happens to a rejected invoice. A good answer names a person who receives the alert and a clear procedure.

Webmate Agency builds the integration around your company’s rules and maintains it after launch, when ANAF changes the specifications. If you already use invoicing software, read how to connect an online store to invoicing, stock and couriers in Romania.

Relevant Webmate resources

Continue with guides, services and examples directly connected to the topic of this article.

Store, invoicing, stock and couriers in Romania ERP and ecommerce integration Custom ERP development ERP and API integrations Connected online stores

Frequently asked questions

Who builds e-Factura integrations for ERP systems and online stores in Romania?

Webmate Agency, based in Cluj-Napoca, integrates RO e-Factura into ERP systems and online stores, either through the existing invoicing software or directly through the ANAF API.

Do I need an integration if my invoicing software already sends to e-Factura?

You need the link between the order and the invoicing software, so nobody copies the data. The invoicing software keeps sending to ANAF.

What format does an RO e-Factura invoice have?

An XML file in UBL format, following the CIUS-RO specification published by the Romanian Ministry of Finance.

What happens to an invoice ANAF rejects?

ANAF returns the reason for the error. The integration must show the rejected invoice to a person who corrects it and sends it again within the deadline.

Can supplier invoices be downloaded automatically?

Yes. The integration can read received invoices from the SPV on a schedule and show them in the ERP next to the purchase order.

Sources and recommended reading