−15% on your first project

SiteFlow
KSEF INTEGRATION

KSeF integration: the invoice from your shop or CRM reaches the system by itself

If invoices are created in your online shop, CRM, ERP or order system, that system has to be able to talk to KSeF, Poland's national e-invoicing system. I connect it to the KSeF API so that nobody retypes invoices by hand, and an outage on the Ministry of Finance side doesn't stop your sales.

DIRECT
KSeF API 2.0
INVOICE SOURCE
Shop / CRM / ERP
MINISTRY ENVIRONMENTS
Test → prod

Do you need a KSeF integration?

KSeF (Krajowy System e-Faktur) is mandatory for large companies from 1 February 2026, for the rest from 1 April 2026, and for the smallest (invoiced sales up to PLN 10,000 a month) from 1 January 2027, according to the Ministry of Finance schedule. Whether you need an integration depends on where your invoices are created:

Accounting software or an integration?
Accounting software is enoughYou need an integration
Where the invoice is createdIn the software (wFirma, inFakt, Fakturownia…)In a shop, CRM, ERP or order system
Number of invoicesA few to a few dozen a month, by handDozens and hundreds, automatically
What you doSwitch KSeF on in the softwareI connect your system to the KSeF API or to the software

If you issue all invoices in accounting software that already has KSeF, you probably don't need anything more. An integration is needed when invoices are born somewhere else and today someone retypes or exports them by hand.

Company based outside Poland? A foreign company without a fixed establishment in Poland is not obliged to issue invoices in KSeF, even with a Polish VAT number; it may use KSeF voluntarily. The obligation applies to your Polish company or branch, and to software that issues invoices for Polish clients. The integration itself is the same in each case; we confirm the obligation with your tax adviser first.

KSeF in an online shop

The most common case: a shop on WooCommerce, Shopify, PrestaShop, sales through Allegro and BaseLinker, or a custom shop that has to issue an invoice once an order is paid. There are two ways:

  • Shop → accounting software → KSeF. The shop passes the order data to software with a ready KSeF integration. Less code, but you depend on what the software can accept.
  • Shop → KSeF API directly. The shop builds the e-invoice in the FA(3) structure itself, sends it and saves the KSeF number with the order. Full control and a log of every submission.

Which way to choose depends on your accounting, the number of sales channels and whether you invoice consumers. I settle this at the start, together with your accountant.

A safe KSeF integration: where the traps are

Sending the invoice is the smallest part of the work. Whether the integration runs smoothly is decided by the edge cases:

What a good integration must handle
  1. 1

    Permissions and tokens

    Access credentials stored securely, never in the code or in a spreadsheet.

  2. 2

    Data mapping

    Buyer, line items, VAT rates, payment, currencies: correct in the e-invoice structure.

  3. 3

    Corrections and advances

    Corrective, advance and final invoices, not only “ordinary” sales.

  4. 4

    KSeF unavailability

    A queue, retries, offline mode: sales don't stop when the system doesn't respond.

  5. 5

    Rejections and log

    A notification when an invoice fails validation, and a full history of submissions.

I test every integration on the test environment provided by the Ministry of Finance first, and only then switch to production. I describe the whole process in more detail in the article KSeF integration step by step.

How I work

  1. 01

    A short description of your invoices

    Where they are created, how many there are, which kinds (corrections, advances, consumers).

  2. 02

    Choosing the path

    Directly through the KSeF API or through accounting software, with a concrete quote.

  3. 03

    Build and tests

    The integration on the Ministry's test environment, trials on real cases.

  4. 04

    Production and monitoring

    Switch-over, watching the first submissions, handing over the documentation.

Frequently asked questions

›How much does a KSeF integration cost?

It depends on how many places in the company issue invoices and of which kinds. Connecting one shop to accounting software is usually a small module; a direct API integration with corrections and downloading purchase invoices is a separate project. I quote after a short description of your invoices.

›Can WooCommerce and Shopify be integrated with KSeF?

Yes. In both cases orders can be passed to accounting software with KSeF, or invoices can be sent directly. For Shopify the path through the software is usually more convenient (details and price: KSeF in Shopify), for WooCommerce and custom shops both are possible.

›Does my company outside Poland have to use KSeF?

Not if it has no fixed establishment in Poland: then KSeF is voluntary, even with a Polish VAT number. The obligation applies to companies and branches established in Poland. Your tax adviser confirms which case you are; I build the integration either way.

›What happens when KSeF is down?

The regulations provide for emergency and offline modes. A good integration puts invoices in a queue and sends them when the system is back, while sales in the shop continue normally.

›Can you download purchase invoices too?

Yes. The integration can automatically download purchase invoices from KSeF and pass them to accounting or assign them to projects and orders.

›I already have software with KSeF. Is that enough?

If you issue all invoices in it, probably yes. An integration makes sense when invoices are created outside the software and today someone retypes them by hand.

CONTACT

Tell me what you want
to achieve

I reply within 24 hours on working days, in English. On the first call I don't sell: I ask about your business and tell you straight whether I can help.

Write directlykontakt@siteflow.digital

If you give an e-mail, I will send a link to a SiteFlow account where you can see the status of your request (the e-mail is in Polish).