NIP field in checkout: collect and check the tax ID for KSeF
In short: the NIP (Polish tax identification number) in an online store decides who receives the invoice. In KSeF the invoice goes to the company whose NIP you put on it, and the system does not check whether that is the right customer. So you need to collect the NIP before payment, in the cart or at checkout, and immediately check at least the checksum. A mistake found after the invoice is issued means a correction to zero and a new invoice.
Why the NIP in an online store matters more now than before
Before KSeF, an invoice with a typo in the NIP was a nuisance, but you could fix it with a correction note or by swapping the PDF. In KSeF it is different:
- The invoice goes to the owner of the NIP. The buyer does not get the invoice by e-mail but finds it in KSeF under their NIP. If the NIP is wrong, the invoice appears at a stranger's company, if such a number exists (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 23).
- KSeF does not check the buyer. The system only checks that the file matches the schema and that the sender has permissions (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 15). It accepts an invoice on the wrong NIP without warning (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 21).
- There are no correction notes. From 1 February 2026 the provision on correction notes (noty korygujące, art. 106k of the VAT Act) is repealed. A wrong NIP is fixed by the seller: with a correction to zero and a new invoice. Details in our article on a wrong NIP on a KSeF invoice (in Polish).
On top of that there is a rule many stores do not know about: a business that wants an invoice must give its NIP if it uses it for the transaction (art. 106ba of the VAT Act). So the store can simply ask for the NIP with the order and does not have to guess it from the company name.
Where to ask for the NIP: cart, checkout or customer account
| Place | Advantages | Risk |
|---|---|---|
| Cart (before going to payment) | The NIP is known before the order is paid; you can block the next step if the number is wrong | The field must work in your theme and on mobile |
| Checkout | The buyer enters invoice details there anyway | On many platforms it is hard to add your own field with validation |
| Customer account | A regular customer enters the NIP once | Does not work for guest checkout |
| E-mail after purchase | Nothing to implement | Delays, typos, manual retyping |
What works best is a simple "I want a company invoice" toggle in the cart. Only after it is ticked do the NIP and company name fields appear. A private customer sees and enters nothing, so the form does not put off people buying for themselves.
What to check before accepting a NIP
1. Checksum
A Polish NIP has 10 digits, and the last one is a check digit. You multiply the first 9 digits by the weights 6, 5, 7, 2, 3, 4, 5, 6, 7, add them up and divide by 11. The remainder must equal the last digit (a remainder of 10 means the number is invalid).
Example for NIP 526-025-02-74: 5·6 + 2·5 + 6·7 + 0·2 + 2·3 + 5·4 + 0·5 + 2·6 + 7·7 = 169, and 169 mod 11 = 4. The last digit is 4, so the number is mathematically valid.
This check catches most typos and swapped digits. It will not catch a customer entering a valid NIP of another company, for example from a previous job or from a supplier's invoice.
Before saving the number, remove spaces, hyphens and the "PL" prefix. Customers paste the NIP in different formats, and the invoice needs 10 digits.
2. The White List of VAT taxpayers
The VAT taxpayer register (Biała lista, the White List) shows the company's name, address and VAT status. It is worth comparing the name in the register with the name entered in the cart, especially for large orders. You can do it quickly with our NIP checker.
Note: if a company is not on the White List, that does not mean it is a consumer. The register only includes taxpayers registered as active VAT payers or VAT-exempt, and some small VAT-exempt businesses do not register. The MF points this out in its FAQ (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 27 and 28). You issue such a business an invoice in KSeF as well.
3. VIES for businesses from other EU countries
When a company from Germany or Czechia buys, it gives an EU VAT number with a country prefix. You can check it in the European Commission's VIES system. This is a separate topic (rate, reverse charge), so do not mix it with the field for a Polish NIP.
Business or consumer: one toggle instead of guessing
Who is buying decides where the invoice is created:
- Business with a Polish NIP: an invoice in KSeF is mandatory (art. 106ga(1) of the VAT Act; until 31 December 2026 the PLN 10,000 monthly limit still applies).
- Consumer: an invoice in KSeF is optional (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 5). More in KSeF invoices for consumers.
- Business owner buying privately: also optional (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 8).
That is why the buyer should make the decision by ticking "I want a company invoice". Do not guess from the name in the address or from the "Company" field in the shipping address, because customers put there the name of the office where they collect the parcel.
The customer gave the NIP after purchase
It happens that a business writes a few days after the order: "please issue an invoice to NIP...". What then?
- The invoice has not been created yet. Check the NIP (checksum and White List) and issue the invoice in KSeF. The business is entitled to an invoice, and for a sale to another taxpayer the seller must issue one (art. 106b(1)(1) of the VAT Act), at the latest on the 15th day of the month after the month of sale (art. 106i(1)).
- The sale was recorded on a cash register. You can issue a business invoice for such a sale only if the receipt shows the buyer's NIP (art. 106b(5)). One more reason to ask for the NIP before payment. The rules for 2027 are in invoices for receipts in KSeF from 2027 (in Polish).
- The invoice is already in KSeF, but on the wrong NIP. Then only a correction to zero and a new invoice.
How it looks on store platforms
- WooCommerce has a "Company name" field in the form, but no separate NIP field with validation. Stores add one with a plugin. Which KSeF plugins also add the NIP field to the block checkout is in our comparison of KSeF plugins for WooCommerce.
- PrestaShop has company and VAT number fields in the address, which you can turn on in the settings. A check of the Polish checksum is usually added with a module.
- Shopify has an optional business VAT number field in the checkout settings, but it serves EU VAT handling within Shopify Tax (reverse charge when selling to another country). It sends nothing to KSeF. Polish stores usually collect the NIP with a cart field from an app. We describe this in Does Shopify support KSeF?.
On every platform it is worth going through the same checklist:
- The NIP field appears only after "I want a company invoice" is ticked.
- The number is cleaned of spaces, hyphens and the PL prefix.
- A wrong checksum blocks the next step and shows a clear message.
- The NIP and company name are saved on the order, not only in an e-mail.
- Someone in the store knows what to do when a customer gives the NIP after purchase.
- For large orders, someone compares the name with the White List.
How the KSeF Faktury app does it
In our Shopify app you turn on the "Chcę fakturę na firmę (VAT)" (I want a company VAT invoice) field, with NIP and company name, in the theme editor, without changing code. The field checks the checksum immediately: for a wrong number it shows the message "Ten NIP jest nieprawidłowy. Sprawdź cyfry." (This NIP is invalid. Check the digits.) and blocks the checkout button in the cart until the customer fixes the number or unticks the field. Once the order is paid, the app issues an FA(3) invoice and sends it to KSeF. How other apps describe the NIP field and sending to KSeF is compared in KSeF apps for Shopify compared.
To be honest about the limits: the cart field checks the checksum, not the White List. A valid number of another company will pass, just as it passes in KSeF. So for larger amounts it is worth looking at the White List. The field works in the cart, so a customer who pays with an express payment button on the product page and skips the cart will not see it. See how the app works.
FAQ
Do I have to have a NIP field in the cart?
The law does not say where you must collect the NIP. But you must know it before you issue a business invoice, and for a sale recorded on a cash register the NIP must already be on the receipt. A cart field is simply the most reliable way.
Is the checksum enough?
It catches typos, but not a swap for another company's NIP. For large orders, compare the company name with the White List.
The customer is not on the White List. Should I issue a KSeF invoice?
Yes, if it is a business. Some VAT-exempt taxpayers are not in the register, and they also receive invoices in KSeF.
What if the customer enters the NIP with the PL prefix?
Remove the prefix and save the 10 digits. The PL prefix matters for an EU VAT number; in the buyer field of a domestic invoice you enter the NIP alone.
Sources
- Pytania i odpowiedzi KSeF 2.0, Ministerstwo Finansów: category "Wystawianie i otrzymywanie faktur", q. 5, 8, 15, 21, 23, 27, 28
- Ustawa o podatku od towarów i usług, tekst jednolity Dz.U. 2026 poz. 1263: art. 106b(1) and (5), art. 106ba, art. 106ga, art. 106i(1), art. 106k (repealed)
- Wykaz podatników VAT (Biała lista)
- VIES, Komisja Europejska
- Shopify Changelog: walidacja numeru VAT w kasie, 25.02.2026
Legal status as of 23 October 2026. This article is general information and not tax advice.