Skip to content

KSeF in Polski PRO

KSeF 2.0 sending lives in the free Polski for WooCommerce since 1.56.0: the certificate, settings, sending, status, KSeF number, UPO, offline mode and technical correction are described in KSeF in Polski. Polski PRO 2.0 requires Polski 1.56.0 or later and plugs into that engine. Its invoices go to KSeF through it.

Settings stay where they were for PRO users: Polski > Settings > KSeF. Shops that sent to KSeF with an older PRO keep their certificates, settings and queued invoices, because the stored data did not move, only the code.

Capability Free Polski Polski PRO
Sending FA(3) invoices to KSeF 2.0, status, KSeF number, UPO, offline mode Yes Yes, through the free engine
Invoice PDF with the KSeF number, KOD I and, offline, KOD II QR codes on the invoice opened in the browser Yes, the PDF is regenerated once KSeF numbers the invoice
Correction invoices (KOR) from WooCommerce refunds Yes, since 1.57.0 Yes, on the PDF
Corrections without a refund: VAT rate at the same gross, buyer details, line names, date of supply, price or quantity No Yes
Invoice list with a KSeF column and an Offline: to send filter No Yes
KSeF number in customer order emails and My Account No Yes, production numbers only
REST routes for sending, status, UPO and corrections No Yes

With PRO active, the invoices PRO issues are the ones that go to KSeF. The free Invoices module's invoices are then not sent automatically, so one sale cannot end up with two invoices in KSeF.

Once KSeF accepts an invoice, PRO regenerates its PDF with the KSeF number and the KOD I QR code. An invoice issued offline gets its PDF with both codes before the invoice mail goes out: KOD I captioned OFFLINE until KSeF numbers it, and KOD II captioned CERTYFIKAT. Test invoices point at the Ministry's test verification host.

A correction invoice (KOR) is built from a WooCommerce refund and refers to the original invoice. The refund has to list refunded items. A refund entered as an amount only has no items to correct, so the order screen asks you to refund by item quantities instead.

The original invoice must be in KSeF first, because the correction cites its KSeF number. A correction sent automatically waits for the original to be numbered, and a production correction never cites an invoice that is only on Test.

A VAT invoice with a KSeF number can be corrected without a WooCommerce refund. Click Correct next to the invoice under Polski > Invoices, or in the order's KSeF box. Pick what changes:

Kind What it does
VAT rate (same gross) New rates on the lines; the gross stays and net and VAT are worked back. A rounding cent goes on the last line of that rate.
Buyer details Name, address, postcode and city of the buyer.
Description The name of goods or a service on the lines. Amounts stay.
Date of supply A new date of supply (P_6); the old one stays on the lines before.
Price or quantity New net prices or quantities, without a refund in WooCommerce. Stored as the difference, like a refund correction.

Every correction needs a reason of up to 256 characters. You can also choose the effect in the VAT register (TypKorekty): in the period of the original invoice, in the period of the correction, or another date. The live preview shows the lines before and after, the difference, the amount the buyer pays or gets back and the result of the FA(3) schema check. Issue and send to KSeF stays disabled until the preview of the current input is valid. A correction refused by the check takes no invoice number.

For a rate, buyer, description or date correction the FA(3) document lists the lines before (StanPrzed) and the lines after, and a buyer correction adds Podmiot2K. The PDF prints Before correction and After correction tables, and for a buyer correction the buyer before. Totals and the VAT summary are the difference.

Rules:

  • A wrong buyer NIP cannot be corrected. Correct the invoice to zero and issue a new one, as the FA(3) schema annotation of Podmiot2K says.
  • One correction per invoice. An invoice that already has a correction, with or without a refund, cannot get a correction without a refund, because its lines before would no longer be the invoice as issued.
  • No refund correction after one without a refund. Once an invoice has a correction without a refund, a WooCommerce refund on that order gets no automatic correction, and the order screen says so. Issue that correction by hand in KSeF.

All routes require manage_woocommerce:

  • POST /wp-json/polski-pro/v1/invoices/{id}/ksef queues the invoice
  • POST /wp-json/polski-pro/v1/invoices/{id}/ksef/refresh checks the status now
  • GET /wp-json/polski-pro/v1/invoices/{id}/upo returns the UPO XML
  • POST /wp-json/polski-pro/v1/invoices/{id}/corrections issues a correction without a refund, or previews it with dry_run

See PRO REST API.

Neither of these touches KSeF:

  • the PEPPOL / UBL (XML) meta box on the order screen downloads a single invoice as an EN 16931 / PEPPOL UBL file
  • the JPK_FA report admin page builds a JPK_FA(3) XML for all invoices issued in a chosen date range

See Accounting exports.

Do I need Polski PRO to send invoices to KSeF?

Section titled "Do I need Polski PRO to send invoices to KSeF?"

No. The free Polski plugin sends them since 1.56.0. The free plugin also issues correction invoices for refunds since 1.57.0. PRO adds PDF invoices, corrections without a refund and the invoice list on top.

Can I correct the buyer or the VAT rate without a refund?

Section titled "Can I correct the buyer or the VAT rate without a refund?"

Yes, with Correct on the invoice list or in the order's KSeF box. The buyer NIP is the exception: correct the invoice to zero and issue a new one.

What happens with an older free Polski?

Section titled "What happens with an older free Polski?"

Polski PRO needs Polski 1.58.0 or later. With an older free plugin PRO shows a notice and does not load. Update the free plugin first, then PRO.

This page is for informational purposes only and does not constitute legal advice. Consult a lawyer before implementation. Polski for WooCommerce is open source software (GPLv2) provided without warranty.