Rolling out KSeF in a WooCommerce store is seven steps in a fixed order, and most problems come from shuffling them. Below is KSeF WooCommerce step by step, the way I lay it out for clients: from deciding who issues the invoice to the first invoice from a real order. This is a how-to. If you first need to understand what KSeF is and what a store has to handle, start with the text on what your WooCommerce has to handle and come back here with a decision made. One caveat: I handle the technical side, so this is not legal or tax advice, and accounting doubts always go to your accountant. If you would rather hand the whole thing to me, the scope is on the page about a KSeF rollout in WooCommerce.
KSeF WooCommerce step by step - the order of work
KSeF, Poland’s National e-Invoicing System, has applied to the largest taxpayers since 1 February 2026 and to the remaining VAT taxpayers since 1 April 2026. For a store the point is simple: every invoice to a company issued from an order has to go through this system. Sales to consumers work as before.
The order I use:
- I decide who issues the invoice: the store, an invoicing program or an ERP.
- I pick the chain: WooCommerce, the invoicing system, KSeF.
- I prepare KSeF access and the token.
- I fix the checkout data that ends up on the invoice.
- I set what the store passes on, and when.
- I set the moment the invoice is issued.
- I test on the test environment, then on one real order.
Why this order? Steps 1 and 2 are decisions, not work. If you choose a plugin before you know who is meant to issue the invoice, you get the most common mess: two documents for one order, or none. Steps 3-6 are configuration and small changes in the store. Step 7 comes last, but it is the one that tells you whether the rest works.
Steps 1 and 2: who issues the invoice and which chain to pick
The answer to “who issues the invoice” is usually simpler than it looks: the system your accountant already works in. WooCommerce does not have to talk to KSeF itself. It talks to the program that handles your invoices anyway, and the store’s job is to hand it complete data without a person in the middle.
In practice the choice comes down to three routes:
- An invoicing or accounting program. The simplest setup for most stores. The store sends the order, the program issues the invoice and passes it to KSeF. How to connect the program itself is covered in the text on KSeF and accounting software.
- Baselinker as the order hub. It makes sense when you also sell on marketplaces. The invoice module settings are laid out in a separate text on Baselinker and KSeF.
- An ERP or a custom integration. For larger scale, your own warehouse or an unusual document flow. When a direct API connection pays off is covered in the text on KSeF through the API.
My rule: one source of numbering and one place that issues invoices. If the store starts issuing invoices itself while the accountant keeps doing it in the program, the numbers drift apart and closing the month turns into manual matching. I do not look for the plugin with the longest feature list. I look for the solution that uses the tools you already have and does not add one more system.
Step 3: KSeF access and the token
The integration needs permission to issue invoices on behalf of your company. Most often that is a token generated on the Ministry of Finance side, not in the store. The order is always the same: you log in to KSeF as the company, grant the issuing permission to a person or an integration, and generate the token. The token shows up once, so I copy it straight away to the place where I keep company passwords.
A few rules that save hours:
- A separate token per environment. A token from the test environment will not work in production and the other way round. The most common authentication error is simply mixed-up environments.
- Permissions for the right tax ID. If an accounting office issues the invoices, the permission has to be granted to whoever actually sends them.
- A token is not an ordinary key. Whoever has it can issue invoices in your name, so it does not go into an email or a notepad on the desktop.
The details of granting permissions depend on who issues invoices at your company, so confirm them with your accountant before you generate anything.
Step 4: the checkout data an invoice must receive
This is where the store itself works, and where there is most often something to fix. An invoice is a reflection of the order. If a field is missing from the order, the invoicing program has nowhere to get it from, and KSeF rejects a document with a broken structure.
I check in turn:
- Tax ID validation right in checkout. A typo in the tax ID means an invoice to correct, and a correction in KSeF is a separate document. The store should reject a bad number when the order is placed, not a week later.
- Company name and address in one consistent format. A name matching the registry, a full address, no abbreviations and no company name typed into the first-name field.
- A clear split between a private customer and a company. The “buying as a company” field decides whether the order goes down the KSeF path at all. Without it the store guesses.
- VAT rates assigned to every product group, including shipping and extra fees. Shipping is an invoice line too.
- Discounts and coupons shown on the line price, not as an odd negative line.
These changes usually need a small extension of checkout, not a rebuild of the store. If selling to companies is a separate channel for you, the setup from the text on automatic invoices in WooCommerce can help too.
Steps 5 and 6: what the store passes on and when the invoice is created
Once the data is complete, I set up passing the order to the invoicing system. Two decisions make the biggest difference here.
What triggers issuing. A good moment is the “paid” or “completed” status, not “new order”. An invoice for an order the customer cancels an hour later means a correction. For cash on delivery or a traditional bank transfer the moment differs from online payment, so I set those paths up separately.
What happens on a repeated send. The integration has to know that an invoice already exists for the given order. Otherwise a status flipped back and forth ends in a duplicate. I check that the invoice number comes back to the order in the store, because then you can see at once what has been issued.
I set aside separately the orders that should not go to KSeF: consumer sales, test orders and orders with an unusual flow. Everything about corrections, advance payments and foreign sales I leave to the accountant’s decision, because it is not a technical question.
When invoices also have to sync with the warehouse and an ERP, the whole thing grows into a separate project. I described it in the text on integrating WooCommerce with an ERP and KSeF.
Step 7: a test on the test environment and one real order
KSeF has a test environment and I always use it before anything reaches production. The test runs the whole path:
- I place an order “as a company” with a valid tax ID, a coupon and paid shipping.
- I pay for it and watch whether the invoice is created by itself, without a manual click.
- I check whether the document got a KSeF number and a UPO, the official confirmation of receipt. Until they exist, the invoice has formally not been issued.
- I check whether the invoice number came back to the order in the store and whether the customer gets the document by email.
- I place an order with a wrong or missing tax ID and watch what happens, because that has to be tested too.
- I switch the integration to the production environment with a separate token and repeat the test on one real order.
Only after that do I turn the automation on for the whole store. For the first week I look every day at the list of documents that have no KSeF number.
From my practice: what breaks after launch
After the rollouts I run, the same problems come back. None of them is a KSeF outage.
- Buyer data in the wrong shape. A tax ID with spaces and dashes, a missing country code, a company name in the first-name field. I fix the source in the store, not the invoice itself, because the next order will fail the same way.
- An expired or wrongly assigned token. Invoices suddenly stop going through although nothing changed in the store. That is why I monitor the number of documents without a KSeF number and keep an alert on it.
- A duplicate after a status change. Someone moved an order back by hand and restored it, and the integration issued a second invoice. A correction is a separate document, so it is easier to prevent this than to repair it.
- A plugin update without a test. After a WooCommerce or invoicing plugin update a field format changes and documents start getting rejected. That is one reason I treat the invoicing integration as part of ongoing store support, not a one-off project.
The rollout itself usually fits into development and optimization of the store: a review of the current flow, choosing the shortest chain, checkout changes and tests. Broader work on the store itself is WooCommerce stores.
Frequently asked questions
Where do I start a KSeF rollout in WooCommerce? With deciding who issues the invoice, because that determines the chain and the choice of tool. Only then do you generate the token and fix the checkout data. Reversing the order ends with a plugin that does not fit your accounting.
Does WooCommerce need a separate KSeF plugin? Not always. Often an invoicing program with KSeF support and a correct data handoff from the store is enough. A plugin or a custom integration makes sense when the document flow is unusual or when invoices have to sync with the warehouse.
Can I test KSeF first without legal consequences? Yes, KSeF offers a test environment. I use it at the start and only then switch the integration to production with a separate token. Testing an order with a wrong tax ID is as important as testing a correct one.
What do I do when an invoice stays without a KSeF number? First read the rejection message, because it points to a specific field. Most often it is buyer data, a VAT rate, a date or the token. Fix the data in the order and issue the document again, without issuing a second invoice just in case.
Does consumer sales also go through KSeF? No, sales to consumers work as before. Invoices to companies go through KSeF, and borderline cases you confirm with your accountant.
Sitting on this yourself and unsure where to start? I speed up and repair existing sites and stores - Core Web Vitals, outages, the features that are missing. See how I work on it: site and store optimization.