KSeF in 2026: how to connect Polish e-invoices with the rest of the company

In short

KSeF is Poland's national system that structured invoices pass through. Since every invoice is already in one place and one format, you can automatically fetch purchase invoices, send them for approval and to accounting, and match them with payments. The key is managing API access securely.

Key points
  • An invoice in KSeF is an XML file in one official format, which makes automation easier.
  • Automatically fetching purchase invoices and the approval flow save the most time.
  • API access to KSeF requires authentication: treat it like the key to a bank account.
  • The schedule of the obligation has changed, so check current dates on the Polish Ministry of Finance website.

What KSeF changes from an automation point of view

Before KSeF, invoices arrived by email as PDFs in dozens of layouts, so someone had to retype them or a program had to guess what was where. A structured invoice has a fixed XML format: the number, the counterparty, the line items and the amounts are always in the same fields. For automation that's a huge difference.

According to the schedule announced by the Polish Ministry of Finance, the obligation to issue invoices in KSeF covered the largest companies from 1 February 2026, other taxpayers from 1 April 2026, and is to cover the smallest businesses from 2027. The rules have changed several times, so always check current dates and exceptions at ksef.podatki.gov.pl.

Caution

This is a technical description, not tax advice. Discuss your company's obligations with your accountant.

What can be automated

AreaAutomationEffect
Purchase invoicesRegularly fetching new invoices from KSeFNo more searching for invoices in emails
ApprovalThe invoice goes to the person who approves the expense, with a reminder after the deadlineNo more invoices lost in the inbox
AccountingPassing approved invoices to the accounting software or the accounting firmLess retyping and fewer questions
PaymentsMatching invoices to transfers on the bank statementYou see what is paid and what is overdue
SalesIssuing invoices from the order system instead of typing them by handThe same data entered once
ReportsCost summaries by category and supplierA faster picture of the finances

How it works technically

  1. Authentication

    The system connects to KSeF on the company's behalf. The authentication method is defined by the Ministry of Finance in the API documentation.

  2. Fetching the list of invoices

    The automation regularly asks KSeF for new invoices, for example every hour.

  3. Reading the XML

    The counterparty, line items, amounts and due dates are read from the file. No guessing, because the format is fixed.

  4. The onward flow

    The invoice goes to approval, to accounting and to matching with payments, and if something fails, the automation sends a notification.

Tip

Many accounting and invoicing programs already have a built-in KSeF integration. Before ordering your own solution, check what your current program can do. Your own integration makes sense when invoices should go into your order system, warehouse or an unusual approval flow.

Securing access

Checklist0 of 6

Terms from this guide

KSeF

Krajowy System e-Faktur, Poland's national e-invoicing system, through which structured invoices in XML format are issued and received.

Questions and answers

Do I need my own KSeF integration?

No. Many invoicing and accounting programs have it built in. Your own integration makes sense when invoices should flow into your systems or the approval process in the company is unusual.

Can the automation approve invoices by itself?

Technically yes, but it's wiser for the automation to prepare the invoice for approval and leave the decision to a person, at least for new suppliers and larger amounts.

Where can I find current information about KSeF?

On ksef.podatki.gov.pl and in the Ministry of Finance's announcements. The rules and dates have changed, so don't rely on old articles.

Sources and documentation

The service related to this guide

Business process automation

Describe the problem

Question 1 of 5

What would you most like to improve?

Pick the closest one. It doesn't have to fit perfectly.

First summary

This is a first suggestion based on a few answers, not a diagnosis. Nothing is saved until you send the message.