KSeF & e-Invoices

What is KSeF and How to Use it in the cairo.ERP System?

The National e-Invoicing System (KSeF) is a central database managed by the Ministry of Finance, to which companies are obligated to submit information about their sales (invoices, returns). This article explains how KSeF is integrated with the cairo.ERP system and how to configure it for use.


What is KSeF?

KSeF is an ICT system used for issuing and receiving structured invoices. Its main goal is to digitize and automate invoicing processes in Poland. More information can be found on the official KSeF website: https://ksef.mf.gov.pl/.


Key Aspects of KSeF for Companies

The implementation of KSeF involves several important aspects to consider:


Benefits of KSeF Implementation

Implementing the National e-Invoicing System brings a number of benefits for entrepreneurs:


How does KSeF integration with cairo.ERP work?

In the cairo.ERP system, integration with KSeF is achieved through two independent modules:

The introduction of the KSeF module to cairo.ERP necessitated a change in the document approval logic. Approval now takes place before printing, right after selecting the payment method.


Abbreviated Scheme for Sending Documents to KSeF from cairo.ERP

Below is the sequence of steps when sending a document to KSeF:

  1. Print document: Start the process by printing the document in cairo.ERP (using the TAB key).

  2. Define data: Set print data, payment method, etc.

  3. KSeF validation: The system performs KSeF validation. If validation fails, you will return to step 2.

  4. Approve cairo.ERP document: After successful validation, the document is approved in cairo.ERP.

  5. Send to KSeF: The document is sent to KSeF. After this stage, the document cannot be recreated.

  6. Print document: The final document print occurs.

A document that has not been sent receives an "awaiting" status. You can view it in the appropriate cairo.ERP window, check the reason for non-delivery, resend it, or examine its structure.


KSeF Implementation and Configuration in cairo.ERP

To implement and configure the KSeF module in cairo.ERP, the following parameters must be completed in ERP > ADMINISTRATION > PARAMETERS > KSEF > PARAMETERS:

Full implementation should occur well in advance of the planned KSeF start date.


How to Generate a New cairo.KSEF WS Token?

The token currently has no time limit, so there's usually no need to generate a new one. However, if security reasons require it, you can do so as follows:

  1. Contact Helpdesk (+48 89 533 95 07); we will remove the previous token.

  2. Generate a new key. Generate the key again in cairo.ERP, as described in the "Generating a token and testing the connection in cairo.ERP" section.
  3. Restart Falcons. A restart of Falcons is required for the changes to take effect.


What Data Does the Client Need to Provide for ksef.ini Configuration?

For us to correctly configure communication for your company, please prepare and provide the following information:

Please provide this data to allow us to quickly and correctly launch KSeF integration in your system.

In the test and pre-production KSeF environments, anonymized data should be used. This data should not contain real accounting information. Although the pre-production environment operates similarly to the production environment and requires real authentication data, it is always recommended to use test data to avoid accidentally entering actual accounting data into non-production environments.