E-Invoicing
The E-Invoicing module in Flowtly enables organisations to send and receive electronic invoices in compliance with regulatory requirements. It integrates with the Polish National e-Invoice System (KSeF) to automate the exchange of structured invoice data between your organisation and its counterparties.
Outbound invoices created in Flowtly can be automatically converted to the required XML format and submitted to KSeF. The module tracks submission status, stores confirmation numbers, and flags any validation errors so that issues can be resolved before they affect compliance deadlines.
E-invoicing has no page of its own. The e-invoicing actions for an invoice open in a panel from that invoice, and the organisation-wide e-invoicing configuration is in Organisation settings, on the Invoicing settings page.
For an invoice that has not been sent yet, the header of its e-invoicing panel carries a Send to E-Invoicing button. It is the same send as the entry of that name in the panel's menu, which stays there. While the invoice's issue date is in the future the button is unavailable, and pointing at it says why. Once the invoice has been sent the button is no longer shown.
Inbound invoice synchronisation pulls invoices issued to your organisation from KSeF directly into Flowtly. Received invoices are matched against existing supplier records and can be routed through approval workflows, reducing manual data entry and the risk of processing errors.
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, so the series can have gaps: a draft that is deleted leaves its number unused, and that number is never given to another invoice, because a deleted invoice may already be on its way to ANAF. If another invoice, including a deleted one, carries the same number, the invoice is not sent until it is given a new number.
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.
The e-invoicing status, by provider. The invoice list has a column for each invoice's e-invoicing status, and an invoice's card on a phone shows the same status. The column heading names the provider when every invoice in the list that has an e-invoicing status was filed through the same one: ANAF status for ANAF, E-Invoicing status for KSeF. When the list mixes providers, or its invoices were filed through another provider such as Oblio or FGO, the heading reads E-invoicing. A card names the provider of its own invoice in the same way. 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 invoice's row in the invoice list, and its card on a phone, offers View ANAF messages. 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.
Invoice corrections are fully supported, including both corrective invoices and correction notes. The module maintains a clear audit trail linking original invoices to their corrections, ensuring that your records remain accurate and auditable at all times.
A correction document lists the positions twice: the original lines under before correction, then the corrected lines under after correction, each shown exactly as issued. The difference between the two appears in the totals rather than line by line, because a correction may split one position into two, merge two into one, rename a position or remove it — so a per-position difference is not always a meaningful number. Reading the two sections against each other shows what changed. The PDF and the document filed with KSeF present the same lines in the same order, so the two always agree.
Once a document has been submitted, its PDF comes from KSeF. Downloading the PDF of a submitted invoice or correction fetches the document the authority holds and renders that, so what you hand to an accountant or an inspector is what was actually filed. If Flowtly cannot retrieve it, it tells you which step failed and repeats what the authority said, rather than showing a PDF rebuilt from your own records — a document that looks right but differs from the filing would hide a problem worth knowing about. An invoice that has not been submitted yet still previews from your own records, because there is nothing filed for it to disagree with.
Tax rates on a KSeF PDF in English. On the PDF of a KSeF document in English, the rate column of the invoice lines is headed Tax rate, and the Polish rate codes are written out in words: the not-subject-to-VAT codes np, np I and np II read n/a, zw reads exempt and oo reads reverse charge. A numeric rate is shown as a percentage, such as 23%, and any other entry is shown as filed. In any other language the PDF shows the codes as they were filed. The filed document itself always holds the codes, so where the English PDF reads exempt, the document in KSeF reads zw.
A submitted invoice cannot be deleted. Once an invoice has been handed to KSeF, whether it is still being processed or has been sent or accepted, Flowtly refuses to delete it. The authority may already hold it, and deleting it would leave your records disagreeing with what was filed. Nothing is changed when the delete is refused. To change such an invoice, issue a correction; Invoice list and Creation gives the steps. An invoice still waiting in the queue to be submitted, and one that KSeF rejected, can still be deleted. An invoice handed to ANAF follows a stricter rule, described above.
Invoices to consumers. An invoice to a Polish buyer with no tax number is submitted to KSeF, with the buyer marked as having no tax identifier, only when the client is declared Private individual; Counterparties describes how to declare one. Any other Polish buyer without a tax number is not treated as a consumer, including a client whose identification type is None and a buyer whose identifier type is NIP but whose NIP is blank or contains no digits: the invoice is refused instead of being submitted, so a company without a NIP is refused rather than filed as a consumer. Enter the buyer's NIP on the client, or declare the client Private individual if the buyer is a person, and submit again. A client declared Private individual holds no tax number: if one is stored on it, the invoice is refused as having an invalid tax ID. Declaring the client does not change an invoice that keeps the buyer details it was issued with; that case is described below.
Buyer details on an invoice already issued. An invoice that has been issued keeps the buyer's details it was issued with, so editing the client afterwards does not change it. When KSeF cannot take such an invoice because of those details (a missing or invalid NIP, a missing identifier type, a missing street, city or postal code, or a country that is not a two-letter code), the message in the preview names the way out that works for that invoice:
- Undo mark as sent, correct the client, then send the invoice to KSeF, for an invoice that was only recorded as sent.
- Issue correction, for an invoice that already has a KSeF number.
- Neither, for an invoice that was e-mailed and never filed: editing the client does not change it, and a correction cannot be sent to KSeF because the invoice has no KSeF number.
In these cases the preview does not offer Edit client, because editing the client would not fix the invoice. It is offered as long as at least one of the refusals can still be fixed on the client.
Payment terms. When an invoice records a payment method but no due date, the submitted document carries the payment method and leaves the payment-term section out, instead of sending an empty due date that KSeF would reject. Add a due date to the invoice if you want a payment term to appear in the filed document.
When reviewing a received invoice, the net and gross amount fields accept negative values, so a corrective invoice that reduces or reverses the original charge can be entered exactly as issued. A negative net amount paired with a matching negative gross amount is accepted as valid and is not flagged as an error. Importing a correction already filed in KSeF. Documents your organisation has filed in KSeF can be imported into Flowtly, which is how records are caught up when invoices were filed outside Flowtly. A correction is imported as a correction and linked to the invoice it corrects, so the original's totals are brought up to date rather than left standing. That link is required: when the corrected invoice is not in Flowtly yet, the correction is reported as skipped, together with the reason, rather than arriving as a standalone document that would correct nothing — import the original first, then run the import again. A correction that states a quantity of zero on a line, which is how a price-only or value-only correction is issued, is imported normally.
Importing an advance invoice already filed in KSeF. An advance invoice (faktura zaliczkowa) filed in KSeF is imported as an advance invoice. In the invoice list it is marked Advance invoice, and the Type filter can list advance invoices on their own; see Invoice list and Creation. Its amounts are taken from the totals the advance states for each VAT rate, as one line per rate named Zaliczka, so its net, VAT and gross match the filed document. The order lines an advance describes are not booked, because they give the value of the whole order rather than the advance received. An advance that states an amount under the taxi flat rate, the OSS procedure or the margin scheme cannot be booked: it is not imported, and the import reports it with its number and the reason.
An advance and its final invoice are counted once. Each imported advance is linked to the final invoice (faktura rozliczeniowa) that names it, whichever of the two is imported first. The link is not shown on either invoice. What it changes is how the final is booked:
- A final whose lines state the whole order without deducting the advance gets one extra line for each line of the advance. The extra line is named Rozliczenie zaliczki followed by the advance invoice's number, and carries the same amount with the opposite sign, at the same VAT rate. The final's totals then match the remainder it states in KSeF.
- A final whose lines already deduct the advance, or state only the remainder, is left as filed.
Either way the advance counts in its own month and the final counts the remainder, so the order's value is counted once, in revenue and in the accounting export. A correction of such a final that states the final's new content gets the same Rozliczenie zaliczki lines. A correction that states less gross than the advances already deducted from its final is not imported, and its message says to book it by hand.
Some finals are not settled this way, and count their advance a second time when their lines state the whole order:
- A final invoice imported before advance invoices could be imported. It is not linked to its advance and carries no Rozliczenie zaliczki line, and a later import does not revisit it. It is linked, and the line added, only when it is re-imported from KSeF. That re-import is carried out by Flowtly, not from the app. Until it has been run for your organisation, a final that states the whole order and has neither a Rozliczenie zaliczki line nor a deduction of its own counts its advance twice.
- An advance invoice with its own line items, imported before advance invoices could be imported. It stays an ordinary invoice, without the Advance invoice mark, and is not linked to its final.
- A final whose lines exceed the remainder it states by less than the advance, or whose currency differs from the advance's. The advance is linked, but no line is added.
- A final that already has a correction stating less gross than the advance when the advance is imported. The advance is linked, but the final is not deducted. Book the settlement by hand.
How an imported invoice arrives. An invoice imported from KSeF arrives as issued and awaiting delivery, not as a draft — it is already filed with the authority, so its content can no longer be changed. Flowtly cannot tell whether it was also sent to the client, so it is not chased for payment until you record it as sent. The same applies when the import finds, already filed in KSeF, an invoice you drafted in Flowtly.
Example use cases
- Submit outbound sales invoices to KSeF automatically upon approval in Flowtly.
- Synchronise inbound purchase invoices from KSeF and route them for internal approval.
- 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.
- Send a storno of a Romanian invoice to ANAF that names the invoice it cancels, including one imported from another invoicing system.
- Generate and submit corrective invoices when billing errors are identified.
- Import an advance invoice and its final invoice from KSeF, and count the order's value once.
- Monitor the status of all submitted invoices and resolve XML validation errors promptly.
- Read the ANAF upload index and status of a Romanian company's filed invoice on its PDF.
- Maintain a complete audit trail of all electronic invoice exchanges for regulatory compliance.
- 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.