KSeF offline modes
Ways to issue invoices when KSeF or your connection is down, then send them later, marked with QR codes.
KSeF offline modes are the legal procedures for issuing invoices when KSeF or your connection is unavailable: the invoice is issued outside the system, given to the buyer with QR codes, and sent to KSeF later within a set deadline.
In offline24 mode a company may issue an invoice without a connection and must send it to KSeF by the next business day. In emergency mode, announced by the Ministry of Finance during a KSeF failure, invoices are sent within 7 business days after the outage ends. Offline invoices given to buyers carry two QR codes: one to verify the invoice in KSeF and one confirming the issuer, signed with a KSeF certificate.
The Ministry’s page on special issuing modes lists three procedures: offline24 (art. 106nda of the VAT Act, used for example for internet problems or by the issuer’s choice), offline during KSeF unavailability for maintenance (art. 106nh) and emergency mode (art. 106nf, for a failure announced in the BIP and in the interface software); a total failure is described separately. Technically all three use one OFFLINE sending path, while deadlines, rules for giving the invoice to the buyer and QR codes differ. An integration therefore needs a resend queue, a runbook entry per mode and an alert on invoices still waiting for a UPO.
Sources
- Ministerstwo Finansów: Tryby szczególne wystawiania faktur ksef.podatki.gov.pl
Related terms
- UPO (KSeF receipt): The official confirmation KSeF issues for received invoices, with the KSeF number and the date the invoice entered the system.
- KSeF (Polish National e-Invoice System): Poland’s central system for structured e-invoices: invoices are sent as FA(3) XML and receive a KSeF number.
- Runbook: A short document that tells someone else how to run a system: where it lives, how to deploy, how to recover.
- Graceful degradation: Keeping the core of a product working when a dependency fails, by switching off or simplifying the parts that rely on it.
- Idempotency (idempotency key): An operation is idempotent if doing it twice has the same effect as doing it once. Retries become safe.
