Skip to main content

KSeF for Shopify: compliance and accounting reference

GoRoute: KSeF Faktury issues a structured FA(3) invoice in KSeF for every paid Shopify order from a business buyer, in the seller's name and with the seller's NIP, and keeps the evidence an accountant needs: the KSeF number, the UPO, the buyer's VAT-register check and an export for the books. This page is for accountants and tax teams. It says exactly what the app puts into each invoice, what it does not do, and who is responsible for what. The setup guide (in Polish) is KSeF w sklepie Shopify.

  • KSeF (Krajowy System e-Faktur) is the Ministry of Finance's system for structured invoices. Since 2026 invoices between businesses in Poland are issued in KSeF: from 1 February 2026 for taxpayers whose 2024 sales exceeded PLN 200 million, from 1 April 2026 for the others, with relief for the smallest taxpayers and for penalties until 1 January 2027. Official information: ksef.podatki.gov.pl.
  • Structure: FA(3), schema schemat_FA(3)_v1-0E.xsd (namespace http://crd.gov.pl/wzor/2025/06/25/13775/), the Ministry's own file. Every invoice is checked against it before it is sent. The mapping follows the Ministry's Broszura informacyjna dotycząca struktury logicznej FA(3).
  • Consumers: an invoice for a consumer is voluntary in KSeF. By default the app issues none; the store can switch consumer invoices on. A consumer sale still needs its fiscal receipt (kasa fiskalna) where the law requires one: an invoice does not replace it.

Which orders get an invoice, and when​

SituationWhat the app does
Paid order, buyer gave a valid NIPIssues a KSeF invoice (RodzajFaktury VAT)
Paid order, no NIP (consumer)Nothing by default; a consumer invoice (BrakID) when switched on
NIP with a wrong check digitNot accepted at the cart; no invoice is issued with it
Shopify test orderNo invoice; nothing reaches KSeF
Order cancelled before invoicingNo invoice
  • Trigger: when the order is paid (default) or when it is fulfilled (a setting).
  • One invoice per order. Its number is INV- and the Shopify order number (INV-1005). KSeF refuses a second invoice with the same number from the same seller, so numbers used by another invoicing system must not overlap.
  • Dates: P_1 (date of issue) is the order's date in Shopify. The sale date is the same day, so P_6 is left out (Broszura: P_6 only when it differs from the date of issue).

What the FA(3) invoice contains​

FA(3) elementFilled with
Podmiot1 (seller)The NIP and name connected with the KSeF token, the seller's address
Podmiot2 (buyer)NIP, name and address from the order; a consumer invoice carries BrakID = 1 with name and address
JST, GV2 (not a local-government unit, not a VAT group member)
KodWalutyThe order's currency
P_1, P_2Date of issue, invoice number
FaWierszOne row per order line and for shipping: P_7 name, P_8A unit, P_8B quantity, P_9A unit net price, P_11 net amount, P_12 rate
P_13_x / P_14_xNet and VAT per rate group; P_14_xW the VAT in PLN for a foreign-currency invoice
P_15Gross total
AdnotacjeP_16 = 2 (no cash method), P_17 = 2 (no self-billing), P_18 = 1 only for EU services where the buyer accounts for the VAT, P_18A = 1 when split payment applies, else 2 (see below), P_19N (no exemption), P_22N, P_23 = 2, P_PMarzyN
SystemInfoGoRoute

Amounts and rounding. Each line's net amount is rounded to the grosz; the VAT of each rate is charged on the sum of that rate's net amounts (the EN 16931 method). Prices that include VAT in Shopify are split into net and VAT this way.

VAT rates and categories​

Shopify saleFA(3)Notes
Domestic at 23 %, 8 % or 5 %P_13_1, P_13_2, P_13_3The rate Shopify charged on each line
Domestic at 0 %0 KR, P_13_6_1A 0 % line that is none of the cases below
Goods to a business with a VAT number in another EU state, delivered there0 WDT, P_13_6_2Buyer by KodUE and NrVatUE, seller with prefix PL
Goods at 0 % shipped to a country outside the EU0 EX, P_13_6_3Export of goods (art. 41 ust. 4); the shipping charge follows the goods. Read from the order's shipping address
Exempt sale, as the store declares itzw, P_13_7, P_19 = 1 with P_19A / P_19B / P_19CThe legal basis the store gives (see below)
Services to a business in another EU statenp II, P_13_9, P_18 = 1The buyer accounts for the VAT

Rates outside 23, 8, 5 and 0 % are refused with a reason. Not issued from Shopify: domestic reverse charge, margin schemes, taxi flat rate, self-billing and advance invoices.

Exempt sales (zw). Shopify charges no VAT on an exempt sale at a rate of 0 %, the same as a zero-rated one, so the store declares which 0 % lines are exempt on the KSeF page, under Sprzedaż zwolniona z VAT i eksport: none (the default), every 0 % line (for example a business exempt by turnover under art. 113), or the 0 % lines of the SKUs listed. The legal basis the store enters goes on the invoice: a provision of the VAT Act in P_19A (e.g. "art. 43 ust. 1 pkt 37 ustawy o VAT"), of Directive 2006/112/EC in P_19B, or another basis in P_19C. Without a basis nothing is sent as exempt. A declared exempt line stays exempt even when the order ships abroad. A line Shopify taxed is never changed.

Exports. A 0 % line of goods (a product that requires shipping) on an order whose shipping address is outside the EU is sent as an export (0 EX), with the shipping charge. The export evidence (customs confirmation of exit) is the seller's to keep, as for any export. A 0 % service to a buyer outside the EU is sent as 0 KR: tell us if you sell such services.

Split payment (MPP)​

Art. 106e ust. 1 pkt 18a and art. 108a ust. 1a of the VAT Act: an invoice whose gross amount exceeds PLN 15,000 (or its equivalent in a foreign currency) for goods or services listed in Annex 15, supplied to a taxable person, must carry the words "mechanizm podzielonej płatności".

  • The store says which products are Annex 15 goods. On the KSeF page, under Mechanizm podzielonej płatności (MPP): none (the default), every product, or the products whose SKUs are listed (an entry ending in * covers every SKU starting with it). Assigning products to Annex 15 is the seller's decision; products without an SKU are not marked when the list is used.
  • GoRoute decides each invoice. The annotation (P_18A = 1) is written when all of these hold: the buyer is identified by a Polish NIP; at least one line is a listed product taxed in Poland at a positive rate; and the invoice's gross amount (P_15, shipping included) is above PLN 15,000. A foreign-currency invoice is compared in złoty at the same NBP rate used for its VAT (art. 31a). Otherwise P_18A = 2. Exactly PLN 15,000.00 is not above the threshold.
  • Credit notes. A corrective invoice for an invoice that carried the annotation carries it too.
  • On the PDF. The words "Mechanizm podzielonej płatności" are printed in the KSeF block of the PDF the buyer receives, and KSeF's own view of the invoice shows the annotation.
  • Payment. The buyer must pay such an invoice through a split-payment transfer. If you take card payments for these orders in the shop, agree the settlement with your accountant.

Foreign currency​

Amounts stay in the order's currency. The VAT is also given in PLN, converted at the NBP average rate (table A; table B for currencies table A does not list) of the last working day before the date of issue (art. 31a of the VAT Act). The table number and date are recorded with the invoice. If the NBP rate cannot be read at that moment, the invoice is not issued: the order shows the reason and the app tries again.

Sending to KSeF​

  • Authorisation: a KSeF token the seller creates in the Ministry's KSeF application for its NIP, with the rights to issue (InvoiceWrite) and view (InvoiceRead) invoices. GoRoute encrypts it on receipt (AWS KMS); the seller can replace or revoke it at any time. Until a token is connected nothing is sent: invoices wait and go once it is.
  • KSeF number and UPO: when KSeF accepts an invoice, its KSeF number is shown on the invoice and on the order, and its UPO (Urzędowe Poświadczenie Odbioru) can be downloaded.
  • Statuses: Pending, Sent to KSeF, Accepted by KSeF (with the KSeF number), Rejected (with KSeF's reason), Held, Error. A rejected invoice is issued again under the same number once the order is put right; an accepted invoice is never issued twice.
  • KSeF unavailable: the invoice is kept and sent automatically when KSeF answers. The app does not use KSeF's offline modes.

Corrections​

EventDocumentHow it is built
Refund in ShopifyCorrective invoice CN-<order>-R<refund> (KOR)Amounts as differences (negative), at the rates of the invoice it corrects; DaneFaKorygowanej names the invoice, its date and its KSeF number
Refund before KSeF accepted the invoiceThe same, issued automatically once the invoice has its KSeF numberA correction always names the KSeF number of the corrected invoice
Cancellation of an invoiced orderCorrective invoice for the amount not yet credited
Wrong buyer NIP, name, address or VAT rate, no money returned ("Korekta")Corrective invoice to zero CN-<order>-K<n>, then a new invoice INV-<order>-<n> with the correct dataThe reason goes into PrzyczynaKorekty. The new invoice has today's date of issue, the amounts the customer paid, and replaces the old one: later refunds correct it, at its rates

Why a correction to zero: a corrective invoice may not change the buyer's NIP (Broszura FA(3), p. 68: "Korekcie nie podlegają błędne numery NIP identyfikujące nabywcę… wymagana jest korekta faktury do wartości zerowych"; KSeF FAQ, "Wystawianie i otrzymywanie faktur", question 23), and the buyer can no longer issue a nota korygująca. The same two documents correct a name, an address or a rate. TypKorekty is not filled (it is optional).

Buyer verification​

  • At the cart: the NIP must have ten digits with a valid check digit.
  • At issue: the NIP is checked in the Ministry of Finance's register of VAT taxpayers (biała lista) for that day, through the Ministry's API WL2 (API Wykazu podatników VAT). Kept with the invoice: the result (active VAT taxpayer, exempt, not registered, not in the register, invalid NIP) and the Ministry's query identifier, which the Ministry describes as the confirmation that the query was made. Anything but an active VAT taxpayer is highlighted. The check never stops an invoice: a business that is not an active VAT taxpayer is still invoiced, and if the register does not answer the invoice is issued and marked "could not check".

What the buyer receives​

KSeF delivers the invoice to a business buyer. As a copy, once KSeF has accepted the invoice, the buyer receives the PDF by email (a setting): it shows the KSeF number and the verification QR code (KOD I) linking to the invoice in KSeF. The PDF can also be downloaded from the order confirmation and order status pages. No email goes before KSeF accepts the invoice.

Records, retention and export​

  • Retention: GoRoute keeps issued invoices with their KSeF records (KSeF number and UPO) for ten years. KSeF also stores every invoice for ten years.
  • Export for the books: a CSV of every invoice and corrective invoice of a chosen period (by date of issue), with semicolons, a decimal comma and UTF-8, so it opens in Excel and imports into Polish accounting software.
ColumnContent
Rodzaj dokumentuFaktura or Faktura korygująca
Numer, Numer KSeFThe invoice number and its KSeF number
Data wystawienia, Data przyjęcia przez KSeFDate of issue; date KSeF accepted it
Faktura korygowanaFor a corrective invoice, the invoice it corrects
NIP nabywcy, NabywcaThe buyer
Waluta, Netto, VAT, BruttoTotals (negative for a corrective invoice)
Netto X%, VAT X%Net and VAT per rate; sales without VAT that are not domestic 0 % have their own columns: 0 WDT, 0 EX, zw, np II
StanThe status in KSeF
Biała listaThe register result on the day of issue, with the query identifier

The export is not a JPK_V7 file: the JPK is prepared by your accounting system from its records or from KSeF, where every invoice is available to software that works with KSeF.

Security and data protection​

  • GoRoute is operated by ClayDesk LLC, certified to ISO/IEC 27001:2022 and ISO 22301:2019.
  • The KSeF token is encrypted with AWS KMS; GoRoute's infrastructure runs on Amazon Web Services in the United States.
  • A data processing agreement is available; see the privacy policy.

Who is responsible for what​

GoRouteThe seller
Builds each FA(3) invoice from the order data, checks it against the Ministry's schema and sends it to KSeFIs the issuer of every invoice
Tracks each invoice until KSeF accepts or rejects it, and retries temporary failuresSets the correct VAT rates and product data in Shopify
Issues corrective invoices for refunds, cancellations and KorektaDecides on corrections and their reasons
Checks the buyer's NIP in the VAT register and keeps the evidenceDecides what to do with a buyer who is not an active VAT taxpayer
Keeps the records and provides the exportKeeps its accounting books and files its VAT returns