The LangLion Platform can also be integrated with the National e-Invoice System (KSeF) – the Ministry of Finance's nationwide platform for issuing, sending, receiving and storing structured invoices, i.e. invoices in a uniform XML format.
For the integration you will need data that you can find in KSeF. You can get access to KSeF through:
- Trusted Profile (Profil Zaufany), e-ID card (e‑Dowód), a qualified signature or the mObywatel app (in the future),
- granting permissions to employees and the accounting office directly in the system.
Remember that the basic permissions held by the person generating the certificate should cover the following actions:
- issuing invoices
- viewing invoices
- viewing permissions
- viewing session history (generating UPO)
This guide is also available as a video.
To generate a certificate for the production environment, go to the KSeF website and choose your preferred login method. There are 3 options on the website:
- Log in with Trusted Profile,
- Log in with a qualified certificate
- Download the qualified certificate fingerprint
For the test environment, use this link to generate certificates: KSeF test
For the pre-production environment, use this link to generate certificates: KSeF demo

Once you have logged in, go to the "Certificates" tab and select "Request a certificate".

A form will appear. The first step is the "Certificate name" field – it is best to enter a name that clearly shows which system the certificate will be used for.

When naming the certificate intended for Signature, we suggest adding the word "offline" to the name, and for the certificate intended for Authentication, adding the word "online".
The next step is to set a password that meets the requirements, then repeat the newly created password and click "Generate".

The generated key has now been downloaded to your computer.

Next, specify the purpose of the certificate:
- Signing the issuer verification link
- Authentication in the KSeF system
and enter the date from which it should be valid – the certificate will be valid for two years from the date entered in this field. Then click the "Send certificate request" button, followed by the "Refresh" button. You can now download the certificate.
The configuration requires two certificates – authentication in the KSeF system and signing the issuer verification link – so you need to complete this process twice.

You will find all generated certificates in the "Certificate list" tab.

Now that you have the necessary data, you can move on to the integration with the LangLion Platform. To do this, go to the Finance ----> Settings ---> KSeF module

Then, in the Configurations list tab, click the "Add" button.

Here, complete the following steps:
- Entity – if you have more than one set of data in the Issuer's details tab, choose the one used to generate the certificates; if you have only one, the system will load it automatically
- Environment – you can choose the test, pre-production or production environment.
- KSeF authentication (online) – upload the Certificate and Private key of this certificate and enter the Password you set when generating them
- KSeF signing (offline) – upload the Certificate and Private key of this certificate and enter the Password you set when generating them
and click the "Save" button.
Remember to choose the option in the Environment field that matches the environment in which the certificates were generated. The test and pre-production environments let you test the invoice sending process. If you want the actual connection to KSeF, choose the production environment.

After saving, you will see the configuration you entered, which is not active yet. To activate it, click the "Activate" button under the star icon.


After activation, you can check the connection with the plug icon (Test Configuration) and, with the paperclip icon (Check attachments permission), whether the entity is allowed to send attachments to KSeF. The configuration list also shows the validity period of the online and offline certificates and the number of days until they expire.
Once the configuration is active, go to the Integration preferences tab and then, in Settings:
- Enable integration with the KSeF system
- Send automatically invoices issued to business customers (B2B) to the KSeF system – select this if you want invoices with a NIP number to be sent automatically once they are created, without any manual action
- Send automatically invoices issued to non-business customers (B2C) to the KSeF system – select this if you want invoices without a NIP number to be sent automatically once they are created, without any manual action
- Payment forms mapping – make sure each payment method is mapped to the corresponding value in KSeF – you can use the "Assign automatically" button; where a field remains empty, fill it in manually using the options available on the list
- VAT rates mapping – here you can also use the "Assign automatically" button; if a field remains empty, fill it in with the appropriate item from the list, using the Legend.


Done – KSeF has been integrated with the LangLion Platform.
If you do not want the system to send invoices created in LangLion automatically, do not select the options "Send automatically invoices issued to business customers (B2B) to the KSeF system" and "Send automatically invoices issued to non-business customers (B2C) to the KSeF system".

How to check which invoices have been sent to KSeF?
Go to the Invoices tab, click the gear icon (List settings) above the list and tick the KSeF number and KSeF status columns. The change applies immediately, without saving. These columns are available when the KSeF integration is enabled. You can also filter the list by KSeF status and number.


You can now monitor which invoices have already been sent to KSeF and which are waiting to be sent.

If you do not use automatic sending of invoices to KSeF, you can select an invoice with the "pending" status and send it individually using the "Send invoice to KSeF" button, or use the "Download KSeF invoice" button to upload the invoice manually on the KSeF website.
You can download the invoice XML file (FA(3) format) with the "Download KSeF invoice" button even if you do not yet have an active configuration with certificates – the button is shown for an invoice with the "pending" status when the KSeF integration is turned on. An invoice attachment is included in the file only when the invoice is assigned to a configuration with attachments enabled (the "Attachments" column in the configuration list).

If you have several invoices to send to KSeF, click "Export ----> Send pending Invoices to KSeF" at the top of the invoice list – all invoices with the "Pending" status will be sent. The Send all Invoices to KSeF option in the same menu additionally marks all B2C invoices as pending and sends them.
After an invoice has been sent, you can download the confirmation of receipt with the Download KSeF UPO button in the invoice details.

You can find more information about KSeF on our blog.
Additional customer details
When adding or editing a customer, you can fill in additional information that will be used when issuing invoices and sending them to KSeF.If the customer is a local government unit, e.g. a municipality, you can tick the relevant option in their details.
If the customer belongs to a VAT group, you can also indicate this in their profile. This information will then be included when the invoice is sent to KSeF.
Third party on the invoice
For invoices that include a third party, you can also specify its role. The selected role will then be included when the invoice is sent to KSeF.