KSeF: National System of e-Invoices in Poland

Comarch EDI Ready for Obligatory
e-Invoicing in Poland!

Learn how you can send & receive structured invoices to/from the National System of e-Invoices (KSeF) using our platform

Who is obliged to use e-invoicing

E-Invoicing mandatory in Poland. Is your company ready?

Soon, Poland will become another European Union country to change the model of electronic invoice processing from the post-audit model to the clearance model. From January 1, 2022, the KSeF (National System of E-Invoices) has been in operation in Poland and since then it has been possible to voluntarily exchange structured invoices. KSeF was introduced to enable data exchange, issuing, receiving and storing structured invoices in the area of ​​B2B invoicing.

During a press briefing on January 19th 2024 Poland’s Minister of Finance announced a postponement of the National e-Invoice System (Krajowy System e-Faktur, KSeF) obligation introduction. Initially, a nationwide mandate was set to come into force on July 1st 2024. From the moment it is finally implemented, the obligation to issue structured invoices using KSeF will apply to taxpayers carrying out activities subject to the obligation to invoice in accordance with Polish VAT regulations.

As a rule, these will be domestic and foreign deliveries of goods and the provision of services between entrepreneurs (B2B) and for public authorities (B2G). It will also apply to foreign taxpayers performing activities subject to the invoicing requirement according to Polish VAT regulations, who have their registered office or permanent place of business in Poland. As a result of public consultations, invoices issued to natural persons not conducting business activity (B2C) were excluded from e-invoicing.

Infographic about KSEF

Who and when will be subject to mandatory e-invoicing in Poland?

As of now, electronic invoice exchange is not yet mandatory for B2G or B2B transaction in Poland. However, public institutions have been obliged to receive e-invoices from their suppliers on demand since 2019. 

With the progress of digitization in mind, The Ministry of Finance wants KSeF to implement a mandatory solution covering almost all transactions. The entry into force of the electronic invoicing obligation, after announcing the change in the original implementation date from July 1, 2024, has not yet been announced.

Mandatory e-invoicing in Poland

KSeF Implementation Timeline

In 2019, a special e-invoicing platform was made available for issuing invoices to government organizations: Electronic Invoicing Platform - PEF. In the area of ​​B2B invoicing, the National e-Invoice System (KSeF) was introduced on an optional basis in 2022 enabling the issuance, receipt and storage of structured invoices. It is also used to mark invoices with an identification number, and to check the compliance of invoices with a specific template. Both systems, KSeF and PEF, currently operate independently.

However, the implementation of KSeF will affect the current system of handling electronic invoicing in public procurement using PEF. The legislator provides a solution ensuring interoperability of PEF and KSeF systems. Invoices issued in PEF, after positive validation, should receive a KSeF/UPO number and should be made available to the issuer of such an invoice in PEF.

Prepare your company for the National System of e-Invoices (KSeF)

E-invoicing process description

How to access KSeF?

Based on the act passed by the Sejm of the Republic of Poland, a structured invoice should be issued and received via the KSeF, using interface software. It has an electronic form and is created in accordance with the provided template. The e-invoice must be presented in XML format in accordance with the logical structure of e-Invoices (FA_VAT). It is therefore the third type of invoice next to paper and electronic invoices that are in force in Poland. After e-invoices are delivered to KSeF, they will be provided with a time stamp and a unique identification number (KSeF ID), and the official receipt (UPO) will be returned to the invoice issuer.

Access to the National System of E-invoices may be obtained by a taxpayer, an authorized person, an authorized entity or one of the entities referred to in Art. 106c of the Act, as long as they are authorized to issue (or make available) structured invoices. The legislator is to ensure the possibility of issuing a structured invoice via a dedicated platform for micro-enterprises (directly in the system via a web interface). Another option is to prepare invoices in the taxpayers' ERP systems accordingly to the published template. In the case of issuing invoices using an in-house financial and accounting system, the documents should be delivered to KSeF via a defined link, for example, via Comarch EDI to KSeF API.

Step-by-step process of sending an invoice

  • A structured invoice should be issued and received via the KSeF, using interface software.
  • It should be in electronic format and created in accordance with the provided template.
  • E-invoices must be presented in XML format consistently with the logical structure of e-invoices (FA_VAT).

Step-by-step process of sending an invoice

How Comarch can help

How Comarch Can Help Your Company 

As an operator of electronic document exchange (including e-invoices), Comarch monitors legislative changes in Polish law on an ongoing basis. We are very involved in the KSeF pilot project, and our specialists are present at meetings during which technical details of the system, structural invoice specification and API documentation are discussed.

The API of the National System of E-invoices is to enable integration with Comarch EDI (used by thousands of customers in Poland and abroad). This means that all users of our platform will be able to send and receive e-invoices to/from KSeF. Comarch EDI will also ensure full compliance with the latest regulations and transparency of the circulation of all invoices (and their statuses).

 

Choose One of Comarch EDI operating models

Comarch EDI clients have 2 integration and communication models to choose from for the interaction with the government KSeF system.

Standard Model

This process involves the exchange of e-invoices with basic technical validation, ensuring full compliance of invoices with the requirements of the KSeF scheme.

KSEF - A Scheme of the General Model

Step 1: Invoice submission to Comarch EDI

  • Sending an invoice created in a native format to Comarch EDI.
  • Performing technical validation of the invoice (compliance with KSeF XML) on the Comarch EDI platform.
  • Converting the invoice to a format compatible with the National e-Invoice System KSeF XML.

KSEF - A Scheme of the General Model

Step 2: Invoice authentication in the National e-Invoice System (KSeF).

The process includes:

  • Authorization using the customer’s authentication token.
  • Sending the invoice to the National e-Invoice System in the KSeF XML format.

KSEF - A Scheme of the General Model

Step 3: Downloading statuses and KSeF ID for a given invoice in Comarch EDI

Downloading KSeF feedback statuses and forwarding them to the invoice issuer.

KSEF - A Scheme of the General Model

Step 4: Receiving the invoice

Receipt of the invoice in the recipient’s internal system after prior token authentication. The invoice is transferred to the recipient after conversion from the KSeF XML format to the format required by the recipient’s system.

Storing invoices in Comarch EDI Archive is optional. There, invoices are stored in source and KSeF XML formats, along with invoice status and an official acknowledgment of receipt (UPO). Additionally, the history of KSeF unavailability and re-transmission to the National e-Invoice System is provided.

KSEF - A Scheme of the General Model

Extended Model

This model involves considering additional, specific customer requirements regarding invoice processing, for example, including business validations.

A Scheme for Sending an Invoice to KSEF after Validation of the Pre-invoice

Step 1: Invoice submission to Comarch EDI

  • Sending an invoice created in a native format to Comarch EDI.
  • Performing technical validation of the invoice (compliance with KSeF XML) on the Comarch EDI platform.
  • Performing additional processes required by the issuer, such as business validation of the invoice.
  • Converting the invoice to a format compatible with the National e-Invoice System KSeF XML.

  

Step 2: Authentication of the invoice in the National e-Invoice System (KSeF)

This process includes:

  • Authorization using the customer’s authentication token.
  • Sending the invoice to the National e-Invoice System in the KSeF XML format.

A Scheme for Sending an Invoice to KSEF after Validation of the Pre-invoice

Step 3: Downloading statuses and KSeF ID for a given invoice in Comarch EDI

Downloading KSeF feedback statuses and forwarding them to the invoice issuer.

A Scheme for Sending an Invoice to KSEF after Validation of the Pre-invoice

Step 4: Receiving the invoice

Receipt of the invoice in the recipient’s internal system after prior token authentication. The invoice is transferred to the recipient after conversion from the KSeF XML format to he format required by the recipient’s system.

Storing invoices in the Comarch EDI Archive is optional. There, invoices are stored in source and KSeF XML formats, along with invoice status and an official acknowledgment of receipt (UPO). Additionally, the history of KSeF unavailability and re-transmission to the National e-Invoice System is provided.

A Scheme for Sending an Invoice to KSEF after Validation of the Pre-invoice

What Will You Gain Thanks to the Integration of Comarch EDI with KSeF?

  • Challenge 1#

    All invoices must be structured and compliant with the KSeF

    Benefit

    Comarch will take care of adjusting the format in which you send your invoices to the requirements imposed by KSeF. You don't have to waste time to manually adjust each invoice.

  • Challange 2#

    My customers and suppliers have different requirements as to the information included on the e-invoices. Aside from verifying whether the documents are compliant with KSeF specification, I also need business validation to meet also my partners’ expectations.

    Benefit

    With Comarch, you can maintain the validation of multi-document processes. Thanks to this, you will be sure that all the required information is included in the invoice, even if the KSeF does not require it.

  • Challange 3#

    I want to have access to all of my documents any time I want to export an invoice that was previously registered in KSeF - together with all its history of statuses. 

    Benefit

    Comarch allows you to store KSeF XML invoices together with the history of KSeF statuses, invoice identification number or UPO (confirmation).

  • Challange 4#

    I want the system to be operated by true specialists with a lot of experience in similar projects.

    Benefit

    Comarch has many years of experience in carrying out electronic documents exchange projects, which often include the management of processes related to sending and receiving documents to/from governmental institutions in many countries.

    Legal regulation changes in Poland

    Characteristics of the e-invoicing in Poland

    On January 19, 2024, the Minister of Finance announced that the obligation of e-invoicing will not be implemented according to the earlier plans, starting from July 1, 2024. The Polish authorities have not yet determined a new launch date.

    E-invoice format and platform

    • The required invoice format is XML. After e-invoices are delivered to KSeF, they will be provided with a time stamp and a unique identification number (KSeF ID), and the official receipt (UPO) will be returned to the invoice issuer.
    • For the issuance of invoices to public authorities, a special e-invoicing platform was provided: the PEF portal (Platforma Elektronicznego Fakturowania).
    • National e-invoicing system named Krajowy System e-Faktur (KSeF).

    E-invoicing process description

    • A structured invoice should be issued and received via the KSeF, using interface software.
    • It should be in electronic format and created in accordance with the provided template.
    • E-invoices must be presented in XML format consistently with the logical structure of e-invoices (FA_VAT).

    Integrity and authenticity

    To ensure integrity and authenticity of e-invoices, any method is accepted, such as Qualified Electronic Signature. Data sealed with a qualified electronic seal enjoy the presumption of integrity and authenticity.

    Archiving

    Storage period 5 + 1 years.

    What is KSeF - FAQ

    For more information about what is KSeF, when it will become mandatory and who has to issue structured invoices, check our Questions and Answers.

    Our Clients

    Recent resources

    Want to know more about KSeF and our EDI platform?

    Click on the button to get in touch with one of our experts