E-invoicing in Poland (KSeF)
In Poland, the E-Invoicing module integrates with the Polish National e-Invoice System (KSeF) to automate the exchange of structured invoice data between your organisation and its counterparties. 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.
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.
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.
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 to KSeF, under the title This invoice can’t be sent to KSeF yet. 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: Send to e-invoicing is unavailable and the preview says that KSeF will reject it, so set the issue date to today or earlier first. While an invoice is being sent, the send action is unavailable, so a second click does not send it again.
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 in E-invoicing in Romania (ANAF).
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.
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.
- 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.
- Maintain a complete audit trail of all electronic invoice exchanges for regulatory compliance.