For Shopify
Ksefly: KSeF invoices for Shopify
A paid Shopify order with the buyer's NIP becomes an FA(3) VAT invoice and goes straight to KSeF 2.0. No accounting software account needed.
| Number | Gross | Status | KSeF number |
|---|---|---|---|
| FV/2026/12/8 | 1,249.00 PLN | Accepted | 7712471159-20261218... |
| FV/2026/12/7 | 940.89 PLN | Accepted | 7712471159-20261217... |
| KOR/FV/2026/12/3 | -151.29 PLN | Accepted | 7712471159-20261216... |
From order to KSeF without copying
A B2B buyer adds the NIP, pays, and the invoice is on its way to KSeF before you open the admin. You do not retype the order into another tool or export a file at the end of the day.
How it works
- 1
Paste a KSeF token from the KSeF app, fill in your company data and pick test or production.
- 2
A business buyer ticks "I am buying for a company" in the cart, types the NIP and pays.
- 3
Ksefly numbers the invoice, builds the FA(3) document and sends it to KSeF. The list in your Shopify admin shows the status and, once accepted, the KSeF number.
What you get
- A NIP field for the cart page, added in the theme editor. It checks the NIP checksum as the buyer types and saves it with the order.
- Statuses at a glance: Not sent, Queued, Processing, Accepted, Rejected, Failed.
- A refund in Shopify becomes a correction invoice (KOR) linked to the original.
- Numbering without gaps, on your own pattern, for example FV/{YYYY}/{MM}/{N}. A number is drawn only when the invoice is issued and kept if KSeF has to be retried.
- PLN orders only for now. An order in another currency is flagged on the list, not invoiced.
- Admin in Polish and English, following each staff member's Shopify language.
Screens



Try it before you have KSeF access
In Settings, "Use a KSeF test company" creates a made-up company with a valid test NIP, a test seal and a KSeF token on the KSeF test environment. Place a test order and watch the invoice get accepted. Invoices there have no legal effect. When you are ready, enter your own NIP and token and switch to production. The button never replaces a token you already saved.
Refunds become corrections
When you refund an invoiced order in Shopify, Ksefly issues a correction invoice (KOR) that points to the original invoice and its KSeF number, and sends it to KSeF the same way. It shows on the same list with the type KOR and a negative amount.
When KSeF is slow or down
A KSeF outage or rate limit does not lose the invoice. Ksefly keeps its number and tries again later, waiting longer each time, up to 8 attempts. If the attempts run out, the row shows Failed with the reason and a Send button to try again once the cause is fixed. An invoice KSeF refuses shows Rejected with KSeF's reason.
Three everyday cases
A design studio orders office chairs on a Sunday evening: the buyer ticks the company box, types the NIP and pays, and the invoice is accepted by KSeF before anyone at the store is at work. On Tuesday the studio returns one chair: you refund it in Shopify as usual and the correction for that one line goes to KSeF with a reference to the first invoice. On Friday afternoon KSeF answers slowly: the invoices of the day keep their numbers, Ksefly tries again later, and the list shows where each one stands, so nobody has to resend anything by hand.
Who it is for
Shopify stores that sell in PLN and have business buyers who ask for a VAT invoice with their NIP. If most of your buyers are consumers, the free 5 invoices a month may be all you need.
The NIP field in the cart
The field is a theme app block. On the Ksefly home screen, "Add the NIP field" opens your theme editor on the cart template with the block ready to place; you move it where you want it and click Save. Buyers see one checkbox, "I am buying for a company (VAT invoice)". Ticking it reveals the NIP input. As soon as ten digits with a valid checksum are typed, the NIP is saved to the cart and the buyer sees "NIP saved. The invoice will be issued to this NIP." A typo gets a clear message instead, so it never reaches an invoice. The labels follow the store language, Polish or English. If your theme or another app already saves the NIP to the cart under a name such as NIP, VAT ID or Tax ID, Ksefly reads that too.
Plans without surprises
Free covers 5 VAT invoices a month. Unlimited costs 3.99 USD a month and Shopify bills it with your store subscription, so there is no separate card to enter. Ksefly never stops issuing silently. The first month you pass 5, invoices keep going and a banner in the app tells you. From the next month, invoices above 5 wait in the list without a number. When you choose Unlimited, they go out oldest first, each with the next number in sequence.
What goes on the invoice
Ksefly reads the paid order and fills the FA(3) invoice from it. The buyer is the company name from the billing address, or the person's name when there is no company, with the NIP and the address; the shipping address is used when there is no billing address. Every product line keeps its variant name, quantity, net price after discounts, VAT rate and VAT amount, taken from the taxes Shopify calculated. It works whether your prices include tax or not. Paid shipping becomes its own line. The issue date is the day of payment in Polish time and the sale date is the day the order was placed. The NIP can be typed with spaces, dashes or a PL prefix: Ksefly keeps the ten digits and checks the checksum.
Numbering you control
You set the number pattern once in Settings. It must contain {YYYY} for the year, {MM} for the month and {N} for the number within the month, so FV/{YYYY}/{MM}/{N} gives FV/2026/12/1, FV/2026/12/2 and so on, starting again each month. Corrections use the same pattern with a KOR/ prefix and their own counter. A number is taken only at the moment an invoice is issued, so cancelled orders and orders without a NIP never leave gaps.
Connecting your company to KSeF
Ksefly signs in to KSeF with a KSeF token, the same kind of token any invoicing tool uses. You generate it yourself in the KSeF taxpayer app, with permission to issue and view invoices, and paste it into Settings together with your NIP, company name and address. Ksefly never sees your login to KSeF and cannot do more than the token allows. You can remove the token or generate a new one in KSeF at any time.
Your data
Ksefly asks Shopify only for what an invoice needs: the buyer's name and address. It does not request customer emails or phone numbers. Invoice data is stored in a database created under the EU jurisdiction, the KSeF token is encrypted with AES-GCM before it is saved, and all traffic runs over HTTPS. When Shopify sends its GDPR requests, Ksefly clears the buyer's data from the stored invoices; when you uninstall, the shop's data is removed.
What it does not do yet
Ksefly invoices PLN orders only; an order in another currency is marked on the list and gets no invoice. It does not make a PDF of the invoice yet and has no offline mode for long KSeF outages: it retries instead. The NIP field sits on the cart page, so buyers who pay with an express checkout button that skips the cart will not see it. For orders you create in the admin, put the NIP in the order note.
See the whole flow
A 4-minute recording on a test store: the one-click test company, the NIP field in the cart, a paid order, the invoice accepted by KSeF TEST, and a refund turning into a correction.
Frequently asked
- Do I need an account in an invoicing or accounting service?
- No. Ksefly builds the FA(3) invoice itself and sends it to KSeF with your KSeF token. Your Shopify store and the token are all it needs.
- Which orders get an invoice?
- Paid PLN orders that carry the buyer's NIP. The buyer ticks "I am buying for a company" in the cart and types the NIP, which is checked on the spot. For orders you create yourself, a line such as "NIP: 1234563218" in the order note works too.
- How much does it cost?
- Free up to 5 invoices a month. Unlimited costs 3.99 USD a month, billed by Shopify. The month you first pass 5, invoices keep going with a banner in the app. In later months, invoices above 5 wait until you choose the plan and are then issued oldest first.
- Can I try it without sending real invoices?
- Yes. Pick the KSeF test environment in Settings and use a test token. Switch to production when you are ready.
- Where is my data stored?
- Invoice and shop data sit in a Cloudflare D1 database created under the EU jurisdiction. Your KSeF token is encrypted with AES-GCM. Shopify's GDPR webhooks (customers/redact, shop/redact) remove the data.
- Does the buyer get a PDF?
- Not from Ksefly yet. The invoice is sent to KSeF and the list in your admin shows its KSeF number. A PDF with the verification QR code is planned.
- Can I send an invoice again?
- Yes, for invoices in the Not sent or Failed status: the row has a Send button. Accepted invoices are final; a change goes through a correction.
- Which languages does the admin use?
- Polish or English, picked from each staff member's Shopify language and remembered for them.