KSeF Faktury
EN
Join the start list

KSeF Magento 2 and Adobe Commerce: invoices, credit memos

In short: Magento 2 and Adobe Commerce create their own invoices and refund documents (credit memos), but they do not send them to KSeF, the Polish National e-Invoicing System (Krajowy System e-Faktur). You need a KSeF extension, an invoicing program or an ERP connected to the store. Three mistakes are common in Magento: the NIP (Polish tax ID) sits in a field the integration does not read, the same invoice ends up with two different numbers, and a credit memo never becomes a correction in KSeF.

KSeF and Magento: what the standard install is missing

A Magento invoice is a document created for an order: manually with the Invoice button, or automatically at payment with the "Authorize and Capture" action. One order can have several partial invoices, and each invoice has its own number, different from the order number (Adobe Commerce, Invoices). Refunds are handled by a credit memo, full or partial, with the "Adjustment Refund" and "Adjustment Fee" fields (Adobe Commerce, Credit memos).

These are store documents. From 2026, an invoice for a business is an XML file in the FA(3) structure, sent to KSeF and given a KSeF number (Article 106ga(1) of the Polish VAT Act, ustawa o VAT). The deadlines are the same as for any store:

Situation Invoice for a business
Large companies (sales in 2024 above PLN 200 million) in KSeF from 1 February 2026
All other sellers in KSeF from 1 April 2026
Invoices for businesses up to PLN 10,000 gross per month may stay outside KSeF until 31 December 2026; from the invoice that crosses the limit, in KSeF
Everyone from 1 January 2027 only in KSeF

Under the current Act, the penalties in Article 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. Invoices for consumers may be issued outside KSeF (Article 106ga(2)(4)), so in a B2C store usually only some invoices go to KSeF: KSeF invoice for consumers.

Ways to connect Magento 2 to KSeF

Route How it works What to watch
KSeF extension in Magento the module builds FA(3) from the Magento invoice and sends it to KSeF where the certificate or token is stored, credit memo support, a working cron
Invoicing program with a Magento integration orders go to the program, which issues the invoice in KSeF two numbering series: Magento's and the program's
ERP or accounting system a connector moves orders to the ERP, and the ERP sends invoices to KSeF cost of building the connector, sync delays
Multichannel system e.g. Base collects orders from Magento and other channels makes sense if you sell in several channels

A general comparison of architectures: online store KSeF integration.

KSeF extensions

Adobe Commerce Marketplace lists a "KSeF Connector" extension (9bits). According to its listing, it sends Magento invoices to KSeF in the FA(3) structure, validates the XML against the XSD schema, has a send button on the invoice page, a mass action in Sales, Invoices and a console command, shows the sending status in the invoice grid, and sends only invoices with a company name and a VAT number in the billing address (listing on Adobe Commerce Marketplace). We found nothing in the description about corrections from credit memos, so ask about them before you buy.

A module inside the store means your KSeF access credentials sit on your server, and sending and status checks depend on the Magento cron. When the cron stops, invoices wait, but the deadline for sending keeps running.

Invoicing programs and ERP

iFirma describes a Magento 2 integration in which orders reach iFirma as documents to invoice; the invoice can be created automatically when the order is placed or when a condition is met (e.g. payment), buyer data is checked in the GUS register (Statistics Poland), and the invoice goes to KSeF (iFirma, Magento 2 integration). Base supports Magento 1.x and 2.x and Adobe Commerce and can issue invoices and corrections or pass data to accounting programs (Base, Magento integration); we describe the KSeF settings in BaseLinker and KSeF.

Larger stores often go through an ERP. The agency SISL describes a setup where the accounting system or ERP (e.g. Comarch Optima, Subiekt, Fakturownia, inFakt, wFirma) issues the invoice and sends it to KSeF, and Magento only passes on the order data (SISL, Magento modules, August 2026). In that case the invoice is the ERP document, and Magento invoices are best switched off or treated as internal.

NIP: the VAT Number field in Magento

Magento has two places for a tax number: VAT Number in the address (billing address) and Tax/VAT Number on the customer account. Whether the customer sees the VAT field in the address book depends on the "Show VAT Number on Storefront" setting in Stores, Configuration, Customers, Customer Configuration (Adobe Commerce, VAT). Pick one field for the NIP, preferably VAT Number in the billing address, because it belongs to a specific order, and check that your integration reads exactly that field.

KSeF does not check the buyer's NIP (Ministry of Finance FAQ, category "Issuing and receiving invoices" (Wystawianie i otrzymywanie faktur), question 21), and a wrong NIP is fixed with a correction to zero and a new invoice (same source, question 23). Magento's built-in VAT ID validation, if you turn it on, checks the number in the European Commission database (VIES), which holds only businesses registered for EU VAT. That is why it is worth validating a Polish NIP with its checksum separately, already at checkout: NIP field in checkout, wrong NIP in KSeF (in Polish).

Numbering, partial invoices and currencies

Credit memo vs correction in KSeF

A credit memo is not a correction invoice (faktura korygująca). You issue the correction of a KSeF invoice in KSeF, with the KSeF number of the original invoice (Article 106j(2)(2a) and (4)). A good integration turns the credit memo into a correction: returned items and shipping become correction lines. The "Adjustment Refund" and "Adjustment Fee" fields cause trouble because they are amounts without an item or VAT rate. Such refunds often have to be corrected by hand. The rules: KSeF corrections and refunds.

Offline mode and KSeF outages

Magento takes orders regardless of KSeF. When KSeF does not respond, the invoice can be issued in offline24 mode and must reach KSeF no later than the next business day after issue (Article 106nda(2)). The integration should retry sending on its own and show stuck invoices in the admin panel. An announced outage has different deadlines: KSeF outage, KSeF offline24 mode.

Checklist for a Magento store

  1. Choose one route: extension, invoicing program or ERP. The invoice for an order is created in one place only.
  2. Turn on "Show VAT Number on Storefront" and decide that the NIP comes from VAT Number in the billing address.
  3. Add Polish NIP validation at checkout.
  4. Decide whether the KSeF number follows the Magento invoice number, and set a prefix for corrections.
  5. Check that the Magento cron runs and that the integration retries failed sends.
  6. Test a full and a partial credit memo, and a credit memo with "Adjustment Refund".
  7. Check the customer PDF: KSeF number and QR code.
  8. Give your accountant access to invoices in KSeF: KSeF permissions for an accountant.

KSeF Faktury for Magento

We are preparing a KSeF Faktury module for Magento 2 and Adobe Commerce. It is meant to work like this: the invoice for a paid order with a NIP goes to KSeF automatically as FA(3), the NIP is checked at checkout, a credit memo produces a correction in KSeF, and the customer can get a PDF with a QR code. The module is not publicly available yet: we connect the first stores by invitation. Leave your e-mail in the pricing section on the home page, and we will write when access is ready for you.

Frequently asked questions

Does Magento 2 have built-in KSeF support?

No. Neither Magento Open Source nor Adobe Commerce creates FA(3) or sends invoices to KSeF. You need an extension, an invoicing program or an ERP.

Is a Magento credit memo enough as a correction?

No, if the invoice was in KSeF. The correction must also be in KSeF and refer to the KSeF number of the original invoice.

Do invoices for private customers also have to go to KSeF?

They do not have to. Invoices for consumers may be issued outside KSeF, although you can send them voluntarily.

This article is general information and 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.