KSeF Faktury
EN
Join the start list

Connect PrestaShop to KSeF: module setup step by step

In short: to connect PrestaShop to KSeF (the Polish National e-Invoicing System), prepare a KSeF token or certificate, connect the module to the KSeF test environment, add the NIP (Polish tax identification number) to the Polish address format, set up invoices so that numbers never repeat, check the VAT rates of products and carriers, and decide which status triggers the invoice. Then test a refund, and only after that go to production. We give setting names as they appear in the English PrestaShop 8 documentation.

An overview of modules and software is in KSeF for PrestaShop. Here we describe the configuration itself.

Step 1. Prepare access to KSeF

The module logs in to KSeF with a KSeF token or certificate, which you create in the taxpayer app, Aplikacja Podatnika KSeF, in the context of your company's NIP.

  1. Token: limit it to issuing invoices. Give viewing invoices only if the vendor explains why it needs it. Guide: KSeF token.
  2. Certificate: generate it with the purpose "Uwierzytelnienie w systemie KSeF" (authentication in KSeF) and save the .key file with its password. Guide: how to generate a KSeF certificate.
  3. Do not give the module permission management. The minimum is described in KSeF permissions for a store app.

Step 2. Install the module and connect it to KSeF TEST

  1. Back up the files and database, check the module's compatibility with your PrestaShop and PHP versions, and upload it through the module manager.
  2. Choose the test environment and enter a token or certificate generated on that environment, because production credentials do not work there.
  3. Test the connection.
  4. If the module downloads statuses with a cron job, set it up with your hosting provider.

Step 3. Add the NIP to the address format

A PrestaShop address has fields for the company and the VAT number, but the customer sees only those that are in the address format of the given country. In the back office, go to the country settings, open Poland and check the "Address format" field and the option "Do you need a tax identification number?" (PrestaShop documentation, Countries).

  1. Add the company and NIP fields if they are missing.
  2. Point the module to the NIP field. If you use a one-page checkout module with its own NIP field, check that the KSeF module can read it.
  3. Place a test order with a wrong NIP and see whether the store stops it. KSeF does not check whether the NIP belongs to the buyer, and a mistake means a correction to zero: wrong NIP in KSeF (in Polish).

Step 4. Set up invoices and numbering

PrestaShop numbers invoices itself, so this is where duplicates happen most easily. The options are in the invoice settings (PrestaShop documentation, Invoices):

  1. "Enable invoices" must be on if the module sends the PrestaShop invoice number to KSeF.
  2. "Reset invoice progressive number at the beginning of the year": turn it on only together with "Add current year to invoice number". Without the year in the number, January will bring back last year's numbers, and KSeF will reject them as duplicates (code 440): rejected invoice in KSeF.
  3. "Invoice prefix": set one for all languages. Different prefixes for language versions give two series in one company.
  4. "Invoice number": change it only when continuing numbering from another program, without numbers overlapping.
  5. Credit slip prefix ("Credit slip prefix"): set it so that corrections have their own series, different from invoices.

In KSeF the issue date is the day the invoice is sent to the system, so the date on the PrestaShop invoice and the sending day must match: when to issue an invoice in a store (in Polish).

Step 5. Check VAT rates, shipping and rounding

  1. Product tax rules. Every product needs a rule with a Polish rate of 23%, 8%, 5% or 0%.
  2. Carrier tax. In the carrier settings, the "Tax" field sets which tax is added to delivery (PrestaShop documentation, Carriers). On the invoice, the shipping cost follows the rate of the goods, and with several rates it is split between them: shipping cost on the invoice (in Polish).
  3. Rounding. "Round type" rounds per item, per line or on the total (PrestaShop documentation, General parameters). The invoice in KSeF may then differ from the store's PDF by a few grosz, so compare both during testing: VAT rounding on the invoice (in Polish).

Step 6. Decide which status triggers the invoice

Order statuses in PrestaShop have the options "Consider the associated order as validated" and "Set the order as paid" (PrestaShop documentation, Statuses). Check at which status the store creates the invoice and whether the module then sends it to KSeF, separately for bank transfer and cash on delivery. If a status has "Attach invoice PDF to email" turned on, the customer gets the store's PDF without the KSeF number and QR code. Decide whether that PDF should still go out.

What happens on a refund

On the order page PrestaShop 8 has a partial refund ("Partial refund"), available once the order is paid, plus a standard refund and a return of products, which require returns to be enabled. During a refund you tick generating a credit slip and refunding shipping (PrestaShop documentation, Creating returns and refunds).

For KSeF you need a correction invoice (faktura korygująca) with the KSeF number of the original invoice (art. 106j(2) point 2a and (4) of the VAT Act). If the module creates it from the credit slip, tick generating the slip for every refund. A refund without a slip usually has to be corrected manually. Rules: correction invoice for returned goods.

When KSeF does not respond

Ask whether the module keeps the invoice in a queue until KSeF accepts it, or issues it offline. Offline requires tracking the deadline for sending it later (the next working day in offline24, 7 working days after an announced outage) and two QR codes on the PDF. Details: KSeF outage.

Testing on KSeF TEST and going to production

Go through an order with a NIP, an order without a NIP, a wrong NIP, two VAT rates with shipping, a cart rule with a discount, a partial refund with shipping and a full refund. Scenarios: KSeF test environment, and general preparation: KSeF online store checklist. Then generate a token or certificate on production, switch the module and check the first real invoice in Aplikacja Podatnika KSeF.

Checklist before launch

How it works in KSeF Faktury for PrestaShop

Our module works with PrestaShop from 1.7.8 to 9.x. It sends the invoice number assigned by PrestaShop to KSeF, so one sale has one number, and it turns a credit slip into a correction under that slip's number. The FA(3) invoice, sending to KSeF and the PDF with a QR code are handled by our server, and you upload the token or certificate in the KSeF Faktury panel, not in the store. It warns you about disabled invoices, a numbering reset without the year and different prefixes, and adds the NIP to the Polish address format with one button. It does not send orders without a NIP or with a wrong NIP to KSeF. A credit slip with an amount only, without quantities, needs a manual correction. We tested the module on KSeF TEST in versions 1.7.8, 8.2 and 9.0.

The module (Ksefshop Invoices, version 0.2.1) is free and available to download now (.zip). Installation, account sign-up, the API key and a first test order are described step by step in free KSeF module for PrestaShop. The account in the service is self-service: sign up at app.ksefshop.pl/panel/signup, no invite code needed.

Frequently asked questions

Do I have to turn off PrestaShop invoices?

No, if the module sends the number assigned by PrestaShop to KSeF. If the module numbers invoices itself, turn them off, because otherwise the customer gets two documents with different numbers.

By when do I need it?

Large companies (sales in 2024 over PLN 200 million) have issued invoices in KSeF since 1 February 2026, everyone else since 1 April 2026. Invoices for businesses up to PLN 10,000 gross a month can be issued outside KSeF until 31 December 2026 (art. 145m), and from 1 January 2027 KSeF applies to everyone. Under the current Act, the penalties in art. 106ni apply from 1 January 2027. Government draft UD477 from September 2026 moves them to 1 January 2028 and was sent to the Sejm on 20 October 2026 (print no. 3245), but it is still a draft and does not change the KSeF obligation itself.

This article is general information and is not tax advice.

Sources

Legal status as of 26 October 2026.

KSeF Faktury

Join the launch list

We will write once, on launch day in the Shopify App Store (December 2026), and help you set up.