KSeF Faktury
EN
Join the start list

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:

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:

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?

  1. 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)).
  2. 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).
  3. 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

On every platform it is worth going through the same checklist:

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

Legal status as of 23 October 2026. This article is general information and not tax advice.

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.