Which documents go to KSeF
- Invoices to businesses: an order with a company, or with the customer’s company name or VAT number (NIP).
- Credit notes for those invoices. Foliant sends them as corrective invoices (faktura korygująca) that name the invoice and its KSeF number.
- Invoices to consumers are issued as before, without KSeF.
Foliant sends your invoices as your store records them. You remain responsible for your invoices and VAT filings: if you’re unsure how a sale should be invoiced, ask your accountant.
Before you start
- Your store’s details: in Settings › Tax & legal, your VAT number must be your Polish NIP (with or without
PL). KSeF only accepts invoices from the NIP the connection is for. - Locked invoices: KSeF works only with Locked invoices turned on, in Settings › Documents & printing. See Locked invoices.
- A KSeF token: create one in KSeF (Aplikacja Podatnika KSeF) for your NIP, with permission to issue invoices (wystawianie faktur). Copy it: KSeF shows it only once.
Connect KSeF
- In Foliant, go to Settings › Integrations.
- On KSeF (Poland), click Connect.
- Enter your NIP and paste your KSeF token.
- Click Connect.
What happens when an invoice is issued
- Foliant gives the invoice its number and sends it to KSeF.
- KSeF usually accepts it within seconds. Foliant then makes the PDF with the KSeF number and the QR code, and locks it like any issued invoice.
- Your customer gets that PDF, by email, download or in their account.
- Emails that include it wait and go out once KSeF has accepted it.
- Downloads and exports leave it out until then.
- The print page shows a notice in its place. Print it again once KSeF has accepted it: a printed invoice must show its KSeF number and QR code.
{{ document_clearance_qr }} and {{ document_clearance_number }}. Otherwise Foliant adds them at the end of the invoice.
If KSeF doesn’t accept an invoice
KSeF can refuse an invoice, for example when a customer’s NIP is wrong. The invoice isn’t issued, and you get an inbox message with KSeF’s reason.- Go to Issued invoices. The Waiting for KSeF card lists the invoice as Not accepted, with KSeF’s reason.
- Fix the cause: the customer’s details on the order in Shopify, or your details in Settings › Tax & legal.
- Click Send again.
Download what KSeF has
On Issued invoices, an invoice issued through KSeF shows KSeF: and its number under the invoice number. Its row has two more downloads:- Download KSeF invoice (XML): the invoice exactly as KSeF accepted it.
- Download KSeF receipt (UPO): KSeF’s official receipt for it (Urzędowe Poświadczenie Odbioru). KSeF makes it a few minutes after accepting the invoice.