KSeF Setup Guide
KSeF (Krajowy System e-Faktur) is the Polish mandatory national e-invoicing system. It requires invoices issued in Poland to be transmitted and stored electronically through the government-run platform, except, among others, invoices to a private person not carrying on a business (art. 106ga ust. 2 pkt 4 of the VAT act).
Follow the steps below to obtain the credentials needed to connect Invoicerr to KSeF.
1. Obtain your NIP number​
Your company must have a Polish NIP (Numer Identyfikacji Podatkowej) tax identification number.
- If you are already registered for tax purposes in Poland, your NIP is your tax ID.
- If you are a foreign company, you may need to register for a Polish NIP through your local tax office or appoint a Polish fiscal representative.
2. Obtain KSeF access tokens via the Ministry API​
KSeF uses an API-based authentication model. To send invoices you need:
- NIP — your Polish tax ID
- Invoice token or authorisation certificate (depending on the integration method)
Get a KSeF token​
Invoicerr's own KSeF channel only ever authenticates with a token — its connection form has no certificate upload at all, so a qualified electronic signature / authorisation certificate (an option KSeF itself offers for other integrations) is not something you can use here.
- Log in to the Polish e-Tax portal (podatki.gov.pl).
- Navigate to KSeF → Token management.
- Generate a new API token for invoice submission.
- Set the appropriate permissions (at minimum:
invoice:send,invoice:read). - Copy and store the token securely.
3. Configure the KSeF environment​
KSeF has two environments:
| Environment | URL | Purpose |
|---|---|---|
| Test | https://ksef-test.mf.gov.pl | Development and testing |
| Production | https://ksef.mf.gov.pl | Live invoice submission |
Start with the Test environment, validate your integration, then switch to Production.
4. Connect Invoicerr to KSeF​
Once you have your credentials, configure the KSeF channel in Invoicerr:
-
Go to Settings → E-invoicing. The screen shows legal channels on the left and, for the selected one, the operators that implement it on the right. For a Polish company, KSeF is the country's own legal channel; it carries a "Recommended for your country" badge, not yet a "Mandatory" one (see the note below on why).
-
Select KSeF on the left, then find KSeF (Krajowy System e-Faktur), the direct operator and Poland's own platform, in the operator list on the right and click Connect:
-
In the side sheet that opens, fill in the two fields this channel actually asks for:
- NIP — your Polish tax ID
- KSeF token — the API token from step 2 above
- Environment —
TESTorPRODUCTION(the same selector every channel offers)
-
Click Connect at the bottom of the side sheet.
KSeF is already the law (art. 106ga of the Polish VAT act): large taxpayers (over 200,000,000 PLN in 2024 sales) have been bound since 1 February 2026, and every other business since 1 April 2026. But the law also keeps a standing exception until 31 December 2026: a taxpayer may still issue an ordinary invoice for a given month as long as that month's KSeF-eligible sales stay at or under 10,000 PLN. Invoicerr's own mandate check compares a single date against an invoice's issue date; it cannot also weigh a rolling monthly sales total, so marking KSeF "Mandatory" today would block some invoices that are still genuinely lawful. The badge stays "Recommended" until the exception itself expires, which is a deliberate, sourced choice, not a gap in Poland's own data file.
Invoicerr will use these credentials to authenticate with the KSeF API and transmit invoices on your behalf.