−15% on your first project

SiteFlow
KSEF · SHOPIFY

KSeF in Shopify: the invoice from a paid order reaches KSeF by itself

Shopify has no built-in KSeF support and no NIP field (the Polish tax ID of a company) in the standard checkout. I implement the whole flow, from the NIP in the cart to the KSeF number on the order, so that nobody in the company issues invoices by hand.

FIXED PRICE
from €350
IMPLEMENTATION
3–5 working days
NO SHOPIFY PLUS NEEDED
Any plan

Does Shopify support KSeF?

No. Shopify issues order confirmations, not VAT invoices in the FA(3) structure that KSeF, Poland's national e-invoicing system, requires. For invoices from the shop to reach KSeF, you need an extra layer: an app, accounting software or your own module connected to the KSeF API.

From when a Shopify shop must send invoices to KSeF

The obligation applies to shops just like other companies: large taxpayers from 1 February 2026, the rest from 1 April 2026, and the smallest (invoiced sales up to PLN 10,000 a month) from 1 January 2027. Details in the Ministry of Finance schedule. A shop run by a company without a fixed establishment in Poland may use KSeF voluntarily.

A small shop with the 1 January 2027 deadline still has time for the hardest part, the NIP field in the cart. Without it, no invoicing app gets the company data from the order.

The problem every shop trips over: no NIP field

The standard Shopify checkout has no separate NIP field, and editing it is only available on the Shopify Plus plan. Shops get by with the NIP typed into the “second address line”, and then someone pulls it out of the order by hand. That won't work with KSeF: a B2B invoice without the buyer's correct NIP reaches the system with an error or doesn't get there at all.

The solution works on any plan: an “I want an invoice for a company” switch and a NIP field in the cart, with checksum validation and a check of the company in the VAT taxpayer register. The NIP is saved as an order attribute and goes straight onto the invoice. I handle the express checkout buttons (Shop Pay, Apple Pay), which skip the cart, separately.

Three ways to KSeF in Shopify

  • An app from the Shopify App Store. The fastest. I check whether it sends FA(3), saves the KSeF number on the order and handles corrections; not every app does. You pay a monthly subscription.
  • Shopify → Base or accounting software → KSeF. When you already use Base (BaseLinker), Fakturownia or other software with KSeF. The invoice is created there, and Shopify only passes the orders. You have to make sure the NIP and discounts come through intact.
  • Shopify → KSeF API directly. Your own module: order paid → e-invoice → KSeF → KSeF number on the order. No intermediary subscription and full control. It makes sense with hundreds of invoices or unusual cases.
Which way to choose
App / Base / softwareOwn module on the KSeF API
For whomShopify shops with typical salesLarge volume, several sales channels, unusual invoices
Fixed costApp or software subscriptionOnly hosting for the module
FlexibilityAs much as the provider allowsFull: your rules and your log
Implementation pricefrom €350from €1,240
Lead time3–5 working days2–3 weeks

I don't push one path. At the start I check your Shopify plan, accounting software and number of invoices, and then propose the cheapest path that works. If an app for a small monthly fee is enough, I'll say so plainly.

A KSeF app from the Shopify App Store: when it's enough and when it isn't

The Shopify App Store has apps from invoicing software, for example Fakturownia, that issue the invoice in the software and send it to KSeF. iFirma also has its own Shopify integration. For a shop that sells mainly to consumers and issues a few dozen company invoices a month, such an app is usually enough.

  • Selling in several currencies. VAT on an invoice in euro is converted at the average NBP rate from the last working day before the tax point, not at the rate the payment gateway used. You have to check where the app takes the rate from.
  • Partial refunds and exchanges. Every refund made in the Shopify admin must produce a correction to the right invoice, with the KSeF number of the original invoice. A size exchange is often a correction and a new invoice at once.
  • Invoices from outside Shopify. If part of your sales goes through Allegro or wholesale to regular clients, numbering and bookkeeping must match across all channels.
  • The buyer's NIP. The invoicing app takes the NIP from the order data, so someone has to save it there correctly first. Without a field in the cart, it gets whatever the client typed into the second address line.

In those cases I leave the app where it works and add only the missing piece: the NIP field, the exchange-rate rule or the refund handling. Rewriting everything from scratch rarely pays off.

Where implementations fail

What I check before switching the shop to production
  1. 1

    Refunds and corrections

    A refund in Shopify must generate a corrective invoice, not stay only in the shop admin.

  2. 2

    Discounts and shipping

    Discount codes, free shipping and bundles must be correctly split into line items and VAT rates.

  3. 3

    Clients without a NIP

    An invoice for a consumer doesn't have to go to KSeF. The integration recognises an order without a NIP and e-mails the client a PDF.

  4. 4

    KSeF unavailability

    A queue and offline mode: the shop keeps selling, invoices go out when the system is back.

  5. 5

    Rejected invoices

    A notification and a log before the accountant notices, not a month later.

I describe the whole process from the technical side in the article KSeF integration step by step. If you're still choosing a platform, read Shopify, WooCommerce or your own shop.

What you get

  • Shop analysis: Shopify plan, accounting software, kinds of invoices
  • “Invoice for a company” switch and NIP in the cart, with validation
  • Invoice issued once the order is paid and sent to KSeF
  • KSeF number saved on the order
  • A correction on a refund made in the Shopify admin
  • Queue and offline mode, notifications about rejections
  • Tests on the Ministry's test environment, instructions for accounting

How I work

  1. 01

    Shop analysis

    Shopify plan, apps, accounting software, number and kinds of invoices. Free of charge.

  2. 02

    Path and price

    An app, Base or your own module, with the price and deadline in writing.

  3. 03

    Implementation and tests

    NIP in the cart, data mapping, trials on the Ministry's test environment.

  4. 04

    Launch

    Switch to production, checking the first invoices, handing over the documentation.

Frequently asked questions

›From when must a Shopify shop send invoices to KSeF?

From the date that applies to your company: 1 February 2026 for the largest, 1 April 2026 for the rest and 1 January 2027 for shops with invoices up to PLN 10,000 a month. The Shopify plan doesn't matter here.

›Does Shopify have a KSeF integration?

Not built in. Invoices are sent to KSeF by an extra layer: an app from the Shopify App Store, accounting software or Base connected to the shop, or your own module on the KSeF API. Which to choose depends on the number of invoices and the software you already use.

›How do I add a NIP field in Shopify?

On plans other than Plus you can't edit the checkout itself, but you can add an “Invoice for a company” switch and a NIP field in the cart. The NIP is saved as an order attribute and goes onto the invoice. You also have to handle the express checkout buttons that skip the cart.

›How much does implementing KSeF in Shopify cost?

Through an app, Base or accounting software: from €350, 3–5 working days. Own module on the KSeF API: from €1,240, 2–3 weeks. The price includes the NIP field in the cart, which none of these paths gives on its own.

›Which KSeF app for Shopify?

The Shopify App Store has apps from invoicing software, for example Fakturownia, that send invoices to KSeF. Before installing, check three things: whether the app saves the KSeF number on the order, whether it makes corrections from refunds and where it takes the buyer's NIP from. If the answer to any of them is “no”, the app alone won't be enough.

›Do I need Shopify Plus?

No. The NIP field in the cart, issuing invoices and sending them to KSeF work on every Shopify plan.

›What about invoices for clients without a NIP?

Invoices for consumers aren't covered by mandatory KSeF, and sending them to the system is voluntary. The integration recognises an order without a NIP and e-mails the client a PDF. We agree which option to choose with your accountant.

›What about orders during a KSeF outage?

Invoices wait in a queue and go out when the system is back, and in emergency mode they get the required QR code. The shop keeps selling.

CONTACT

Tell me what you want
to achieve

I reply within 24 hours on working days, in English. On the first call I don't sell: I ask about your business and tell you straight whether I can help.

Write directlykontakt@siteflow.digital

If you give an e-mail, I will send a link to a SiteFlow account where you can see the status of your request (the e-mail is in Polish).