Just Site
HomeServicesProjectsBlogAboutContact
Become a client!

Cookie Policy

We use cookies in your browser to provide you with the best experience on our site. Additionally, your behavior on the site helps us improve our site so that future customers have even better experiences with it.

Privacy PolicyCookie Policy
Blog/KSeF integration with your own system: what changes on January 1, 2027, and how to prepare
Business15 min read3 December 2026

KSeF integration with your own system: what changes on January 1, 2027, and how to prepare

For companies that issue invoices from an online store, CRM, ERP, or custom-built system: what changes in Poland’s KSeF from 2027, where penalties and tokens stand, three ways to connect your system, offline modes, purchase invoices, and a plan for the last weeks of the year.

Wiktoria Jarmuszczak
Wiktoria Jarmuszczak
CCO
KSeF integration with your own system: what changes on January 1, 2027, and how to prepare
Table of contents
01Key takeaways02KSeF timeline as of late October 202603What exactly changes on January 1, 202704Three ways to connect your own system to KSeF05When each route makes sense06What a direct KSeF API integration has to handle07Authentication: tokens or certificates08When KSeF is down: invoicing modes09Offline mode in practice10Purchase invoices: the second half of the integration11The most common pitfalls in KSeF integration12Your plan for November and December13What a KSeF integration costs and what drives the price
Build it with us?
Let’s talk about your project.
Get in touch

Key takeaways

→

On January 1, 2027, two transitional exceptions end: the exemption for businesses whose invoices total no more than 10,000 PLN gross a month (about €2,300), and invoicing from fiscal cash registers.

→

Under current law, a penalty for an invoice issued outside KSeF (up to 100% of the VAT on it) can be imposed from January 1, 2027. A government bill would push that date to January 1, 2028, but as of late October 2026 it had not been passed.

→

Postponed penalties don’t suspend the obligation. The Ministry of Finance says tax authorities will respond to invoices issued outside KSeF.

→

You can reach KSeF three ways: by hand, through invoicing software, or directly via the API. Most small businesses only need the second; building your own API integration usually pays off at hundreds of invoices a month.

→

From 2027, the KSeF number also goes into bank transfers between active VAT payers, so the integration touches payments as well as sales.

Since April 2026, most companies in Poland have been issuing invoices in KSeF (Krajowy System e-Faktur), Poland’s National e-Invoicing System. In plenty of them, though, a person still sits in the middle: the online store creates the order, and someone in accounting retypes the data into the Ministry of Finance (MF) app or into invoicing software. At a few dozen invoices a month, you can live with that. At a few hundred, every vacation that person takes becomes a small crisis.

This article is for companies whose invoices are created in their own software: an online store, a CRM, an order management system, a subscription platform, a group-wide ERP, or a custom-built application. We write as a team that builds and maintains systems like these. None of this is tax advice. Leave the interpretation of the rules in your specific case to your accountant or tax adviser; verified information is available at ksef.podatki.gov.pl (in Polish).

If your company is registered for VAT in Poland but based elsewhere, start by checking whether the obligation applies to you at all. According to the Ministry of Finance, it doesn’t cover invoices issued by taxpayers that have neither their seat nor a fixed establishment in Poland, nor invoices issued by taxpayers whose Polish fixed establishment doesn’t take part in the supply. Both groups may still use KSeF voluntarily. Invoices to consumers are outside the obligation as well (KSeF, in Polish). Whether you have a fixed establishment in Poland, and whether it takes part in a given supply, depends on the facts of your case, so confirm it with a tax adviser. The Ministry published explanations on this question on January 28, 2026.

KSeF timeline as of late October 2026

The key dates for companies that issue and receive invoices from their own systems:

Feb 1, 2026
KSeF mandatory for companies with 2024 sales above 200 million PLN gross, incl. VAT (≈ €46 million); from this date, all taxpayers receive invoices via KSeF
Apr 1, 2026
KSeF mandatory for all other companies
Jan 1, 2027
end of the 10,000 PLN gross monthly exemption and of cash-register invoices; KSeF number in bank transfers
Jan 1, 2028
penalties start under the government bill (Sejm print no. 3245); current law says Jan 1, 2027

What exactly changes on January 1, 2027

The 10,000 PLN exemption ends. Until December 31, 2026, a business may issue invoices outside KSeF as long as their total gross value in a given month doesn’t exceed 10,000 PLN (roughly €2,300 at the National Bank of Poland rate of October 23, 2026). The limit is counted by issue date. Once you go over it, the invoice that crossed the limit and every invoice after it must go through KSeF, even if sales drop again the following month (KSeF, in Polish). From 2027, this exception is gone.

Cash-register invoices end. Invoices to businesses that are issued today from a fiscal cash register must be issued in KSeF from January 1, 2027 (KSeF, in Polish). This mostly affects stores with a physical location or in-person pickup that serve business customers. Invoices to consumers stay as they are: issuing them in KSeF is voluntary (KSeF, in Polish).

The KSeF number in bank transfers. From 2027, an active VAT payer that pays another active VAT payer by bank transfer for invoices issued in KSeF must include the KSeF numbers of those invoices, or a collective identifier, in the transfer (Act of August 5, 2025, in Polish). If your system prepares supplier payments, it has to store that number and pass it on to the bank.

Penalties: a big question mark. Current law says that from January 1, 2027, the head of the tax office may impose a penalty of up to 100% of the VAT on an invoice issued outside KSeF, or up to 18.7% of the amount due if the invoice carries no VAT. On September 16, 2026, the Ministry of Finance announced that penalties would not be imposed until the end of 2027 (Ministry of Finance, in Polish). On October 20, the government sent the Sejm, the lower house of Poland’s parliament, a bill that sets the start of penalties at January 1, 2028 (Sejm print no. 3245, in Polish). As of late October 2026, the bill had passed its first reading but had not yet been enacted. Check where it stands before you make any decisions.

The Ministry stresses, however, that postponing penalties doesn’t lift the obligation to use KSeF, and that tax authorities will respond to invoices issued outside the system. Planning your integration “for 2028” is a bad strategy.

Three ways to connect your own system to KSeF

Each route makes sense in a different situation. The choice depends mostly on how many invoices you handle and where the invoice data comes from today:

By hand in the MF app

The Ministry’s free taxpayer app, Aplikacja Podatnika KSeF. Works for a few dozen invoices a month. It means retyping data, so as volume grows, so do errors and delays, and all the know-how sits with one person.

Through invoicing software

Your system passes data to invoicing or accounting software that connects to KSeF on its own. Often the cheapest route, provided the software has a good API. The downsides: you depend on the vendor, and the same data lives in two places.

Directly via the KSeF API

Your system creates the invoice, sends it to KSeF, stores the KSeF number, and downloads purchase invoices. Full automation and control, but the highest upfront cost and ongoing work every time the API changes.

When each route makes sense

Before you order an API integration, answer three questions.

How many invoices do you issue and receive each month? At a few dozen, automation rarely pays for itself. At a few hundred, handling them by hand costs more than an integration within a few months. Assume 3 minutes per invoice, and 300 invoices come to 15 hours of work a month, before anyone fixes a single mistake.

Does your system already talk to your accounting software? If your store already sends data to invoicing software that supports KSeF, a direct API integration often isn’t worth it. You just need to make sure the data goes across complete and the KSeF number comes back into your system.

Do you need purchase invoices in your system? If you want supplier invoices matched automatically to orders, costs, or projects, you need to download invoices from KSeF. That’s the second half of the integration, and many companies only remember it after outgoing invoices are already live.

Let’s be straight about it, even though we build API integrations ourselves: most small businesses only need the middle route. A direct integration makes sense with a high invoice volume, unusual invoice data, or when the system is being custom-developed anyway.

What a direct KSeF API integration has to handle

A checklist based on the official KSeF API 2.0 documentation. If a vendor is quoting your integration, ask which of these points the quote covers:

01

Build the invoice in the FA(3) structure. Since February 1, 2026, the required format has been FA(3), the XML schema for structured invoices that replaced FA(2). Each invoice should be validated against the XSD schema before it’s sent.

02

Authenticate with a token or a certificate. The regulation still says tokens can be used until December 31, 2026, but the Ministry has announced they’ll be kept indefinitely. A KSeF certificate is valid for two years at most, so someone has to keep track of renewals.

03

Send invoices in a session and collect the UPO. Invoices are encrypted and sent in an interactive or batch session. Once the session closes, KSeF issues a UPO, the official confirmation of receipt, which you should keep.

04

Store the KSeF number with the order. You’ll need it for corrections and when sending a copy to the customer. From 2027, you’ll also need it to match incoming payments, because customers who are active VAT payers will put it in the payment reference.

05

Handle rejections and rate limits. The API has request limits. Go over them and it responds with a 429 error that tells you when to try again. The integration needs a queue and a retry mechanism that doesn’t create duplicates.

06

Keep working when KSeF is down. Offline modes require a separate certificate (type 2), two QR codes on the invoice visualization (the human-readable copy), and sending the invoice to KSeF within a set deadline.

07

Download purchase invoices. Incremental downloads from KSeF, deduplication by KSeF number, and matching invoices to orders or costs.

08

Generate a visualization with a QR code. An invoice for a foreign customer is also issued in KSeF, but the customer receives it some other way, for example as a PDF. That copy must carry a QR code for verifying the invoice, along with the KSeF number.

Authentication: tokens or certificates

No part of KSeF has more outdated information floating around online. Under the regulation, KSeF tokens can be used for authentication until December 31, 2026, and plenty of guides still warn that they’re about to expire. Meanwhile, in its KSeF 2.0 manual from August 2026 and on its certificates page, the Ministry of Finance announced that tokens will be kept indefinitely and that the regulation will be amended (KSeF, in Polish).

What does that mean for your integration? If your system logs in with a token, there’s no need to rush a rewrite of authentication. Until the amendment is actually published, though, prepare a type 1 KSeF certificate as a fallback, so the system doesn’t lose access after New Year’s. Tokens aside, you’ll need a type 2 KSeF certificate anyway if you want to issue invoices in offline modes. The login certificate (type 1) and the offline certificate (type 2) are two separate certificates. You can’t generate one that does both.

Every certificate is tied to a specific person or company and has an expiry date. Write down who generated it, where the key is stored, and when it expires. A certificate that expires on a Friday afternoon means invoices sitting in the queue until Monday.

When KSeF is down: invoicing modes

Based on the Ministry of Finance’s table. In every mode except a total failure, your system has to be able to issue the invoice and get it into KSeF by the deadline:

Offline24

Available at any time, with no reason required, for example when your own system has trouble connecting. The invoice must be sent to KSeF no later than the next business day after the issue date.

Offline: KSeF unavailable

Applies when the Ministry announces that the system is unavailable. You send the invoice within one business day after the unavailability ends.

Emergency mode

Applies when a KSeF failure is announced. You have 7 business days from the end of the failure to send the invoice.

Total failure

Announced in the media. Invoices are issued on paper or electronically and are not sent to KSeF afterward.

Offline mode in practice

As far as your system is concerned, offline mode is just a queue of invoices waiting to be sent, with a deadline someone has to watch. The invoice gets its issue date, the customer receives its visualization with two QR codes (one to verify the invoice, labeled OFFLINE, and one to verify the issuer, labeled CERTYFIKAT, Polish for “certificate”), and the system keeps trying to send it until KSeF accepts it (MF table of invoicing modes, in Polish).

Online stores tend to fall into a specific trap here. An invoice sent to KSeF later than the issue date stated on it is treated as an offline24 invoice. So if your system issues invoices during the day and sends them in bulk after midnight, every one of them is an offline24 invoice: any PDF handed to the customer before KSeF accepts the invoice must carry both QR codes, and the system needs a type 2 certificate. If the overnight batch fails, you have until the end of the next business day after the issue date. That’s why someone should get a daily report of invoices that weren’t accepted, and know what to do with them.

Purchase invoices: the second half of the integration

Since February 1, 2026, all taxpayers receive invoices through KSeF (KSeF, in Polish), and an invoice counts as received on the day it’s assigned a KSeF number. For systems that handle purchasing, costs, or supplier accounts, that means pulling invoices from KSeF on a regular schedule.

The official documentation recommends incremental downloads: exporting invoice packages at intervals of at least 15 minutes and removing duplicates by KSeF number (API documentation, in Polish). Assume this part of the system will sometimes fail too. On October 13, 2026, the Ministry warned of possible disruptions to invoice downloads on the night of October 16–17, while sending kept working (KSeF, in Polish). Your integration should ride that out without anyone having to “pull in” missing invoices by hand.

The biggest time savings come from what happens after the download: matching the invoice to an order, project, or contract, checking that the amounts agree, and passing the KSeF number on to the payment. Design that part together with the person who matches invoices to orders by hand today. They know best where the exceptions are.

The most common pitfalls in KSeF integration

Problems that rarely show up when you test with a handful of invoices, then surface in your first month in production:

Duplicates after a retry

The system didn’t get a response in time, so it sent the invoice again. Before you resend, check the status of the previous attempt.

Consumers and foreign customers

An invoice for a foreign customer is also issued in KSeF, but the customer receives it some other way, e.g., as a PDF with a QR code. Invoices for consumers can be issued in KSeF or outside it. Your system has to know what goes to KSeF, and what it hands to the customer and how.

Corrections to old invoices

A correction refers to the KSeF number of the original invoice. Invoices from before your switch to KSeF, and those issued in offline mode, need separate handling.

Expiring certificates and departing staff

A certificate generated by an employee who has since left, or a token nobody can recover. Permissions and credentials have to be documented.

An API that keeps changing

According to the API changelog, the Ministry published four API updates between September 23 and October 15, 2026. An integration needs a maintenance budget as well as a rollout budget.

Your plan for November and December

If your system isn’t connected to KSeF yet, this is what usually needs doing before January 1, 2027:

1

Map your invoice sources

Check where invoices leave the company: the online store, ERP, CRM, cash registers, subscription billing, invoices issued by hand. There often turn out to be more sources than anyone thought.

2

Choose a route for each source

By hand, through invoicing software, or via the API. Not every source has to take the same route.

3

Permissions and authentication

Decide who in the company grants KSeF permissions, how the system will log in, and whether you need a certificate for offline mode.

4

Test in the test and Demo environments

The Ministry provides a test environment and a pre-production environment (Demo). Run full scenarios there: an invoice, a correction, a rejection, and offline mode.

5

Fallback procedure and monitoring

A daily report of invoices KSeF hasn’t accepted, a person responsible for sorting them out, and a written procedure for when the system is unavailable.

Is your system still issuing invoices outside KSeF?

We’ll map where invoices leave your company and suggest the simplest route into KSeF, even if it turns out that well-connected invoicing software is all you need.

Let’s talk about your integration

What a KSeF integration costs and what drives the price

We won’t quote a single number, because the spread is huge: from a few days of work to pass data to invoicing software, up to several weeks for a full API integration with offline mode, purchase invoices, and payment reconciliation. Instead of asking for the price of “a KSeF integration,” ask the vendor for a quote broken down into the items from the checklist above. You’ll see at a glance what’s included and what isn’t.

Don’t forget the running costs. The KSeF API changes regularly, as the API changelog (in Polish) shows; request limits get adjusted too (limits documentation, in Polish), and certificates need renewing. Budget for these the same way you would for any custom software.

We build integrations with KSeF, accounting systems, and ERPs as part of our custom software development work. If you’re still choosing a vendor, see also how to choose a software house and what belongs in the contract.

Legal and technical status described in this article: as of late October 2026. Documentation for integrators is available on the KSeF website (in Polish), and the FA(3) structure is described on the logical structure page (in Polish).

Frequently asked questions

Can my online store send invoices directly to KSeF?+
Technically, yes. The store can connect to KSeF via the API and send invoices in the FA(3) structure itself, or pass the data to invoicing software that does it on the store’s behalf. With a smaller number of invoices, the second option is usually cheaper.
Will KSeF tokens stop working on January 1, 2027?+
The regulation allows tokens to be used until December 31, 2026, but the Ministry of Finance has announced that tokens will be kept indefinitely and the regulation will be amended. Check whether the amendment has been published; until it is, keep a type 1 certificate ready as a fallback. To issue invoices in offline modes, you need a type 2 KSeF certificate regardless.
When do penalties for invoices issued outside KSeF start?+
Under current law, from January 1, 2027. The penalty can be up to 100% of the VAT on the invoice, or up to 18.7% of the amount due on an invoice without VAT. A government bill (Sejm print no. 3245) moves the start of penalties to January 1, 2028, but as of late October 2026 it had not been passed. The obligation to issue invoices in KSeF applies regardless of when penalties begin.
What should I do when KSeF is down?+
According to the Ministry of Finance’s table of invoicing modes, you issue the invoice in one of the modes and send it to KSeF by the deadline. Offline24: no later than the next business day after the issue date. Announced KSeF unavailability: within one business day after it ends. Emergency mode: within 7 business days after the failure ends. In a total failure, invoices are not sent to KSeF afterward.
Do invoices to consumers have to go through KSeF?+
According to the Ministry of Finance, no: you may issue consumer invoices in KSeF, but you don’t have to (as of October 2026). If you do issue them in KSeF and deliver them to the customer outside the system, for example as a PDF, the copy should carry a QR code for verifying the invoice and the KSeF number.
Do I have to include the KSeF number in bank transfers from 2027?+
Under the Act of August 5, 2025, yes, for payments by bank transfer between active VAT payers for invoices issued in KSeF. The transfer includes the invoice’s KSeF number or a collective identifier. Systems that prepare supplier payments need to store that number.
How can I test a KSeF integration before go-live?+
The Ministry of Finance provides a test environment and a pre-production environment (Demo). Invoices in either have no legal effect. Run full scenarios there: issuing, correction, rejection, offline mode, and downloading purchase invoices.

Have a project in mind?

We’ll help you design and deliver it, from strategy to a finished solution.

Let’s talk

Read also

How to prepare your online store for Black Friday — the technical side

How to prepare your online store for Black Friday — the technical side

DevOps

How to choose a software house? A practical guide

How to choose a software house? A practical guide

Business

White label for agencies — how IT subcontracting works

White label for agencies — how IT subcontracting works

Business

Just Site

A software house from Poznań, we build modern, scalable software for growing companies across Poland.

Company
HomeServicesProjectsBlogAboutContact
Services
Software developmentAIDevOpsDesignMarketing
Contact
Just Site sp. z o.o.
62-070 Dąbrówka
ul. Widok 9/5
NIP: 7773412524
KRS: 0001058511
+48 573 996 246[email protected]
We also cover
Software house in PoznańMobile team in PoznańOur office near PoznańMobile apps
Privacy Policy© 2026 Just Site sp. z o.o. · All rights reserved.
Wiktoria Jarmuszczak
Author
Wiktoria Jarmuszczak
CCO

Współzałożyciel spółki Just Site, specjalizująca się w kreatywnych rozwiązaniach i w pełni oddana marketingowi.

Let's talk about your project

We reply within 24 hours.

Become a client
ovh.webp
gcloud.webp
aws.webp
vercel.webp

Technologies we build on