Offline Invoices
Offline invoices (emergency mode) are a mechanism for issuing invoices when KSeF is unavailable β for example, due to a KSeF environment outage or a planned downtime simulation.
When to Use Offline Modeβ
Offline mode is available when:
- β KSeF is unavailable β an environment outage (test, demo, or production).
- π§ Downtime simulation β the administrator has enabled simulation mode for testing.
- β
You have a signing certificate (type:
signing) β required to sign an offline invoice.
If you see a red message on the invoice screen indicating no connection to KSeF and you possess a signing certificate, you can issue invoices in offline mode. More information can be found in the KSeF Access Outage section.
Offline Invoice Issuance Processβ
- The Invoice Creator (steps 1β4) works exactly the same as in online mode.
- In the Submission step, the application automatically detects the lack of connection to KSeF.
- The invoice is digitally signed with a signing certificate (XAdES-BES).
- QR Codes are generated:
- CODE I (OFFLINE) β identifies the invoice.
- CODE II (CERTIFICATE) β confirms the certificate signature.
- The invoice is moved to the offline queue with the status "Signed."
Offline Invoice Listβ
The Offline Invoices section in the side menu displays all invoices issued in offline mode.
Invoice Statusesβ
| Status | Description |
|---|---|
| β³ Pending | The invoice is waiting to be signed. |
| π΅ Signed | The invoice is signed and ready to be sent to KSeF. |
| π’ Sent | The invoice has been sent to KSeF in a batch. |
| π΄ Error | The invoice was rejected by KSeF. |
| π Processing | The batch is currently being processed by KSeF. |
Actionsβ
- Refresh β update the offline invoice list.
- Send Batch β send all signed/pending invoices to KSeF as a batch (Batch session).
- Preview β preview the invoice (eye icon).
- QR Code β display the invoice's QR codes (if signed).
- Delete β remove an invoice that has an error.
Sending a Batch to KSeFβ
Once the connection to KSeF is restored:
- Click the Send Batch button.
- Confirm the submission β all signed invoices will be sent in a single Batch session.
- The application monitors the processing status in the background.
- Upon completion β successfully sent invoices are removed from the queue, while rejected ones are marked with an error.
Offline invoices must be sent to KSeF within 7 days of the issuance date. After this deadline, the system will not accept them.
Tracking Batch Statusβ
After sending a batch, you can track its status:
- Click the reference number of the batch in the "Batch Ref No." column.
- This will take you to the Session Status view with the batch details automatically expanded.
- There, you can see the status of every invoice within the batch.
QR Codesβ
Every signed offline invoice has two QR codes:
- CODE I β invoice verification link (
qr.ksef.mf.gov.pl/invoice/...). - CODE II β certificate verification link (
qr.ksef.mf.gov.pl/certificate/...).
QR codes can be viewed by clicking the QR Code option in the invoice's context menu.