E-invoicing in Romania (ANAF)
A Romanian company files its invoices through the provider chosen for it under Romanian e-invoicing in the organisation's invoicing settings. This article covers ANAF (RO e-Factura) as that provider. What holds for every country, such as where the e-invoicing actions are and how the invoice list shows an invoice's status, is in E-Invoicing.
Authorizing a Romanian company with ANAF. A Romanian company whose provider under Romanian e-invoicing in the organisation's invoicing settings is ANAF must authorise Flowtly with ANAF before Flowtly can reach ANAF for it. Each saved company with that provider shows its authorisation state and an Authorize with ANAF button. The button opens ANAF's authorisation page in a new browser tab (if the browser blocks the new tab, the page opens in the current one). Approve the access there, close that tab, and return to Flowtly: the state updates when you come back. The state reads:
- Not authorized with ANAF: the company has not been authorised yet.
- Authorization started, not yet approved at ANAF: the ANAF page was opened, but the access has not been approved there yet.
- Authorized until a date: the company is authorised, and the date is when the authorisation runs out.
- Expires a date**, authorize again**: the authorisation is about to run out. Authorise again before that date.
- Needs re-authorization: the authorisation has run out. Authorise again.
A company whose invoices are filed by another Romanian provider shows a line saying that provider files its invoices, so it needs no ANAF authorisation, and has no button. A company you have just added or changed shows its authorisation line once the list is saved. If the state cannot be read, a message on the card says so; try again in a few minutes. If the authorisation page cannot be opened, a message appears on that company's row. Either way the companies stay editable.
Supplier invoices from ANAF for a Romanian company. A Romanian company whose provider under Romanian e-invoicing in the organisation's invoicing settings is ANAF receives its supplier invoices from ANAF (RO e-Factura) rather than from KSeF. Flowtly fetches them on a schedule, and the incoming invoices page also offers Sync supplier invoices from ANAF, one button per such company, to users who manage invoices. Companies that file through another Romanian provider have no such button, and an organisation with no Romanian company sees the page unchanged.
A sync runs for one company at a time and can take a few minutes; while it runs, the sync buttons are unavailable. When it finishes, the button's company shows the time of that sync and what it found: how many invoices were found, how many were new, how many were sent to Flowtly, how many were skipped and how many failed. When the page opens, each such company also shows when it was last synced (Last synced with the date and time), or Never synced if it has not been synced yet; after a sync from the button, the time of that sync is shown instead. Every user who sees the sync buttons also sees the last-sync time. When a run could not load every invoice, the result says so, and the rest is fetched automatically. Each company keeps its own result while another company is synced.
A sync can be refused, and the result then says why in one sentence:
- The company is not authorized with ANAF, or its authorization has expired. Authorise it with ANAF under Romanian e-invoicing in the organisation's invoicing settings, then sync again.
- A sync for the company is already running. Wait for it to finish, then try again.
- The sync did not complete. It is retried automatically, and you can also try again in a few minutes.
A supplier invoice from ANAF that is already in Flowtly. When ANAF delivers an invoice you had already recorded in Flowtly before its document arrived, for example from an imported list of past invoices, the document is attached to that invoice and it becomes an e-invoice, instead of a second copy being created. What was recorded on it stays as it was: its supplier, invoice number, amounts, categories and payment match. Flowtly first looks for an invoice from the same supplier with the same invoice number. Because the number recorded by hand often differs from the one ANAF carries (ANAF may add the supplier's series letters and leading zeros, so "531916" appears as "FAR0 531916"), it then looks for the one invoice from the same supplier, dated the invoice's issue date, with the same net or the same gross amount. If several invoices fit, the number with its series letters and leading zeros left out decides between them. An invoice that already carries its own e-invoice document is never used. When several invoices still fit, the ANAF document is not attached to any of them, because they may be separate real invoices: set the correct invoice number on the one it belongs to, and the document is attached on the next sync. When no recorded invoice fits, the document arrives as a new invoice.
Sending a Romanian company's invoices to ANAF. Filing with ANAF's production system (RO e-Factura) is switched on for each organisation during a managed rollout, not from the settings, and it applies to all of the organisation's Romanian companies at once. Until it is switched on, Flowtly works with ANAF's test system for that organisation: an invoice sent then is not filed with ANAF, although it shows ANAF's answer, so ANAF stays a separate step. Neither choosing ANAF as a company's provider nor authorising it with ANAF switches it on. The invoice list offers the send only while Enable E-Invoicing is on in the organisation's invoicing settings.
Turning on e-invoicing for a company that files with ANAF. When the organisation's own company, the one whose tax ID is in its billing data, is a Romanian company whose provider under Romanian e-invoicing is ANAF, Enable E-Invoicing needs no KSeF connection: it can be turned on once the company's tax ID, billing name, street, postal code, city and country are filled in. For such a company the invoicing settings do not show E-Invoicing auth status, because that status is the state of the KSeF connection only, and the Fetch sales invoices from KSeF card does not ask it to connect KSeF. While Flowtly is still reading which provider the company uses, or cannot read it, the status is not shown either, and the switch needs the KSeF connection, as it does for every other company.
Once filing is switched on, for a Romanian company whose provider under Romanian e-invoicing is ANAF, sending an invoice files it with ANAF (RO e-Factura) instead of KSeF, and the other Polish e-invoicing settings do not apply to it. The company must be authorised with ANAF first. Before anything is sent, Flowtly checks the invoice and, when something is missing, refuses with a message that names what to fix and sends nothing:
- The invoice is numbered in the company's series, is in RON, has at least one row, and every row is at 21% or 11% VAT.
- Its stored gross total matches, within 0.01, the total ANAF computes from the rows with VAT rounded per rate.
- The client has a company tax ID (CUI) with its RO prefix and an address with a street. Its city is written as "<city>, judet <county>", or "Bucuresti, Sector <n>" in Bucharest, because ANAF requires the county, and the sector for Bucharest.
- The company's billing name, street and city in the organisation settings are filled in, with the city written the same way.
An invoice to a private person, whose tax ID is a personal identification number (CNP), is not sent. When ANAF has processed the invoice, Flowtly records whether it was accepted or rejected, together with ANAF's messages. Once ANAF has accepted it, the invoice can be sent to the client by email with Send via e-mail in the menu of its e-invoicing drawer.
Sending a storno or correction to ANAF. A storno or other correction issued in Flowtly for such a company is sent to ANAF like any other invoice, after the same checks. The filed document names the invoice it cancels or corrects by its number and issue date, and the correction's PDF prints them too. ANAF receives it as an invoice whose rows carry the difference from the cancelled invoice, negative where an amount is taken back, not as a separate credit note. To name the cancelled invoice, issue the storno as a correction of it: a negative invoice issued on its own is filed without naming any invoice.
The cancelled invoice must be either an invoice Flowtly filed with ANAF and ANAF accepted, or an invoice issued in another invoicing system (for example Oblio) and imported into Flowtly as issued. Otherwise the correction is refused with a message that says why, and nothing is sent:
- The cancelled invoice was filed with ANAF but ANAF has not accepted it. Send that invoice first, or wait for ANAF to accept it.
- The cancelled invoice was neither filed with ANAF from Flowtly nor imported into Flowtly from another invoicing system, for example one issued in Flowtly and never sent, or one filed with KSeF.
- The cancelled invoice has no number. Give it its number first, because the correction names it by number and issue date.
When a correction states the invoice's new content, the cancelled invoice's rows are sent with it, with the opposite sign, so they must also be at 21% or 11% VAT. An imported invoice issued at another rate, such as 19%, cannot be cancelled this way, and the message names the row.
Invoice numbers in a Romanian series. For such a company Flowtly numbers invoices in the company's series, for example FSPA-0716, continuing from the highest number already used. The number is given when the invoice is created. An invoice that was issued keeps its number after it is deleted, because it may already be on its way to ANAF: Flowtly never gives that number to another invoice on its own, so the series can have gaps. A deleted draft that was never issued, as described below, does not keep its number. When such drafts carried the last numbers of the series, the next invoice takes the first of those numbers again, so the series has no gap. A number freed lower in the series, below an invoice that still keeps its number, stays unused.
A number another invoice already carries. When you save an invoice of such a company with a new or changed number, Flowtly compares the number with every other invoice in the series, deleted ones included, with the one exception below. If one carries the same number, the save is refused with a message that names that invoice and says whether it is deleted; choose a different number. The dash, upper or lower case and leading zeros make no difference: FSPA-0752, FSPA0752 and fspa-752 are the same number. In a series that ends in a digit, only numbers written with the dash are compared. An invoice that already shares its number with another one can still be edited as long as its number stays as it is, but the number is checked again at every send: the send is refused with a message that names the other invoice, and nothing is sent, until the invoice is given a new number.
A deleted invoice keeps its number if it was issued, or if it was handed to ANAF, even when ANAF rejected it. The exception is a deleted draft that was never issued: it never left the Draft status, no email of it to the client was ever attempted, and it was never handed to ANAF or KSeF. Its number is free, so you can type it on another invoice, then save and send that invoice.
The same check applies when an invoice issued in another invoicing system is imported into Flowtly as issued. The import is refused when another invoice carries the number in a different spelling, for example without the dash, or when a deleted invoice that was issued carries it. An invoice whose number is already there in exactly the same spelling is skipped instead. An imported invoice counts as issued, so an invoice that was imported and then deleted cannot be imported again under the same number. A trial run of the import does not check this.
An invoice ANAF has accepted, in the invoice list. While an invoice filed with ANAF has been accepted but not yet sent to the client, its status in the invoice list and on its card reads Accepted by ANAF rather than "Not sent". This changes the wording only: the invoice still counts as not sent to the client, so the "Not sent" status filter still lists it. If the invoice email failed, the status reads "Sending failed" instead.
For an invoice filed with ANAF, the status reads Queued for ANAF while it waits to be handed over and Sent to ANAF once it has been, and while ANAF has not answered yet, the invoice's status in the list reads Processing at ANAF rather than Processing. Accepted, Rejected and Failed read the same for every provider.
Reading why ANAF rejected an invoice. When ANAF rejects an invoice and returns its messages, the Delivery section of the invoice's side panel offers View ANAF messages. Clicking the invoice's Delivery circle in the list opens that side panel. It opens a panel headed Rejected by ANAF with ANAF's summary followed by each of its messages. Where a message names one of ANAF's validation rules, such as BR-CO-16, the rule code is shown above it. Opening the panel does not open the invoice. When ANAF refused the invoice because the company's authorisation with ANAF was withdrawn, the panel also offers Authorize with ANAF to Admins. It opens the organisation's invoicing settings, where the company can be authorised again. Some older rejections for that reason do not carry it, and show ANAF's message without the button; authorise the company from the invoicing settings in the same way. A rejected invoice can be corrected and sent again. An invoice rejected by KSeF does not offer this button.
The PDF of an invoice filed with ANAF. When an invoice is sent to ANAF, Flowtly draws its PDF from the e-Factura document as filed and stores that copy with the invoice, so the PDF shows the invoice as it was sent, together with details the filed document does not carry, such as the ANAF status and the invoice's notes. The stored copy is what opens and downloads from the invoice's e-invoicing actions, what Send via e-mail attaches once ANAF has accepted the invoice, and what Download selected PDFs puts in the archive. A payment reminder attaches the standard invoice PDF instead, which has no ANAF details.
The PDF differs from the standard invoice PDF in these ways:
- ANAF details in the header. The header shows the ANAF upload index (Index de încărcare ANAF), which is ANAF's reference number for the filing, and the ANAF status (Stare ANAF). Until ANAF has given the index, it reads Awaiting assignment (În așteptarea alocării).
- CUI for Romanian parties. The seller and a Romanian buyer are shown with their CUI and RO prefix. A foreign buyer keeps its VAT ID.
- Romanian legal details in the footer. The footer gives the seller's registered office, its CUI and, when one is set for the organisation, its share capital. A trade-register number (Reg. Com.) is printed only when the filed document carries one, and invoices filed from Flowtly do not carry one, so expect none on them.
- No Polish details. There is no KSeF number, KSeF QR code, Polish payment QR code, REGON, KRS or BDO.
- The invoice's notes. Notes written on the invoice are printed under a heading in the PDF's language. They are not part of the filed document, so ANAF's copy does not carry them. A bulk lease invoice converted from EUR states its rate this way: Curs valutar: 5.3416 (BNR EUR/RON, 2026-11-03).
The PDF is in the client's documents language when that is Romanian, English, Polish or Ukrainian, and in Romanian for any other language.
When the PDF shows the upload index. The index does not exist yet when the invoice is sent, so the first stored PDF reads Awaiting assignment and shows the status at that moment, such as Being sent to ANAF. When ANAF accepts the invoice, Flowtly stores the PDF once more with the index and Validated by ANAF (Validată de ANAF), and that becomes the invoice's latest PDF. This happens once, and only while the awaiting PDF is still the latest one. If it fails, the invoice is still recorded as accepted, but its PDF keeps reading Awaiting assignment, and that is the PDF Send via e-mail attaches. Flowtly does not retry it.
If the filed document cannot be reached or read when the invoice is sent, Flowtly stores the standard invoice PDF instead, and acceptance does not replace it. While an invoice is rejected, the PDF you open is the standard one, drawn from the invoice as it reads at that moment, because a rejected invoice can still be edited. Sending it again creates a new filing, with a new PDF that starts from Awaiting assignment. Flowtly does not redraw a stored PDF on its own in any other case, so an invoice that already has a PDF in the standard layout, as older ANAF filings do, keeps it.
Emailing an invoice filed with ANAF. Once ANAF has accepted the invoice, Send via e-mail attaches the stored copy and leaves it as it is, whether you send from the invoice list, the invoice preview or the e-invoicing drawer. If the invoice has no stored copy, Flowtly draws the PDF at that moment, attaches it and stores it. If a stored copy exists but cannot be read, the email carries a PDF drawn at that moment, which can differ from the filed document, and the stored copy stays in place.
While ANAF's answer is still pending, Send via e-mail in the invoice list or the invoice preview attaches the stored copy too and stores nothing, so acceptance still stores the PDF with its index. If the invoice has no stored copy at that point, or it cannot be read, the email carries a PDF drawn at that moment.
An invoice handed to ANAF cannot be deleted. Once an invoice has been handed to ANAF, Flowtly refuses to delete it, even while it is still waiting in the queue: ANAF receives it whether or not it is deleted in Flowtly. Nothing is changed when the delete is refused. Only an invoice that ANAF rejected can still be deleted.
When a send to ANAF ends without an answer. If the first send of an invoice to ANAF times out or ends in a server error, Flowtly cannot tell whether the invoice was handed over, so it treats it as handed over. The invoice's e-invoicing status reads Sending, its content can no longer be changed, and it cannot be deleted. If the invoice did reach ANAF, the status changes when ANAF's answer arrives. While the status reads Sending, automatic filing leaves the invoice out, but its e-invoicing panel still offers Send to E-Invoicing, with the note The earlier send may already have reached ANAF. Sending again is safe: ANAF returns the document it already holds. Editing and deleting the invoice stay unavailable. If the status still does not change after you send it again, contact support.
Checking an invoice before it is sent. The e-invoicing preview of an invoice that has not been sent yet lists what still stands in the way of sending it. For a Romanian company whose provider is ANAF, the list is titled This invoice can’t be sent to ANAF yet and holds what the ANAF send itself would refuse, each item naming what to fix: for example the client's tax ID or address, the invoice's series, currency or rows, the company's billing details, or the company's authorisation with ANAF. The checks of the invoice's content stop at the first problem, so after fixing one, open the preview again to see whether another remains. When nothing is missing, the preview shows the invoice. The list is there to inform you: Send to e-invoicing stays available, and the send checks the invoice again and, if something is still missing, refuses with a message naming what to fix.
An issue date in the future. An invoice dated in the future cannot be sent to KSeF. The rule does not apply when the organisation's own company is a Romanian company whose provider is ANAF: its invoice can be sent to ANAF with a future issue date. A Romanian company that files through another provider keeps the rule. While an invoice is being sent, the send action is unavailable, so a second click does not send it again.
Example use cases
- Authorise a Romanian company with ANAF, and see when that authorisation runs out.
- Pull a Romanian company's supplier invoices from ANAF on demand, and check how many arrived.
- Receive the ANAF document for an invoice already entered by hand, without creating a duplicate.
- Turn on e-invoicing for a Romanian company that files with ANAF, without connecting KSeF.
- Send a Romanian company's invoice to ANAF, and fix the client address or tax ID the refusal names first.
- See which invoice, deleted or not, already carries a number in a Romanian series, and choose another one.
- Send a storno of a Romanian invoice to ANAF that names the invoice it cancels, including one imported from another invoicing system.
- Open the preview of a Romanian company's unsent invoice to see what ANAF still needs before you send it.
- Read the ANAF upload index and status of a Romanian company's filed invoice on its PDF.
- Open ANAF's messages on a rejected Romanian invoice, find the rule it breaks, and correct the invoice before sending it again.
- Follow a Romanian invoice from Queued for ANAF to Sent to ANAF and ANAF's answer in the invoice list.