SI-KSeF is a product of SI Consulting ensuring the integration of the SAP system with the electronic invoicing platform. The solution ensures the distribution of sales invoices and the registration of cost invoices distributed from the KSeF platform.
On 29 October 2021, the law of the Ministry of Finance on using structured invoices was published. From 1 January 2022, the use of the KSeF system is optional, and the acceptance of a structured invoice requires the approval of the recipient of such invoices. The mandatory use of the system is planned to start in 2026 (from February 1, 2026 for entities whose sales value in the previous tax year exceeded PLN 200 million, for others from April 1, 2026).
Structured invoices will be prepared in XML format from the taxpayer's financial and accounting systems and sent to the KSeF system (National e-Invoice System) via API, which precisely describes how the taxpayer's system communicates with the Ministry of Finance database. Each invoice sent to KSeF will have a number identifying the document (with date and time). Assigning an identification number will confirm that the document has been issued and received by the recipient. It should also be remembered that the identification number is not the invoice number and cannot be identified with the invoice number within the meaning of the VAT Act.
Benefits for taxpayers using structured invoices:
- the invoice will be created in the database of the Ministry of Finance and will never be destroyed or lost. As a result, there will be no need to issue duplicate invoices,
- structured invoices will be issued according to a uniform template throughout the European Union so that the preparation of the file is simplified and will only require the addition of the legal requirements of the relevant country,
- settlements along with invoice posting in financial and accounting systems will become easier and standardized,
- the KSeF database ensures that the invoice was received by the contractor,
- the invoices' XML file format prevents software issues within companies,
- shortened VAT refund period.
SI-KSeF SOLUTION ARCHITECTURE
- As a standard, the solution enables integration with the KSeF system directly from the Employer's SAP ERP system or using a proxy server (provided by the Ordering Party).
- In the project mode, integration using the SAP PI/PO bus or SCPI or other intermediary systems is possible, e.g. Microsoft Biztalk.
- Web Service or ABAP Proxy are used for communication between the SAP ERP/S4 system and intermediate systems. The messages contain XML files compliant with the structure published by the Ministry of Finance. From the technological point of view, the connection between the calling system and the KSeF platform takes place using REST technology. The scope of exchanged messages includes:
- sales invoices – from the SAP ERP/S4 system,
- purchase invoices – incoming to the SAP ERP/S4 system,
- Official Receipt Certificates (UPO) confirmation messages.
General diagram of SI-KSeF integration with KSeF
The following is a diagram of the SI-KSeF communication with the National e-Invoice System
Signing XML messages
In accordance with the KSeF specification, the mechanism of establishing and authorizing an interactive session with the KSeF platform API will be used. When initiating a session, the user will be required to sign the XML document initiating the session (i.e. with a certificate that has a mandatory first name (OID.2.5.4.42) and surname (OID.2.5.4.4) fields in the entity description and, optionally, a serial number (OID.2.5.4.5) in accordance with the format: (PNOPL|PESEL).*?(?\\d{11})lub(TINPL|NIP).*?(?\\d{10})) directly on the workstation with the PIN provided by the user using a signature component or on the integration bus using the user's signature (condition - the certificate must be uploaded on the bus) or the seal of the organization (the Ordering Party's company); the seal is called a certificate, which has a mandatory field of the organization's identifier in the entity description (OID.2.5.4.97) in accordance with the format: (VATPL).*?(?\\d{10}) ) .
Purchase invoices handling
1. The SI-KSeF solution supports downloading invoice documents issued by the supplier from the KSeF portal and then posting them as purchase documents in FI with or without reference to the MM order. Within the scope of the offered solution, support for two scenarios is provided:
Posting a purchase document with a reference to the order.
Posting a purchase document without reference.
2. Reading the invoice from KSeF for Customers who have agreed to receive invoices this way. SI-KSeF ensures that the invoice in a structured form is read and posted in the next step. In this case, the remaining invoice delivery paths should be blocked. Recording of the invoice from the KSeF Receipt Invoice Register takes place taking into account the consent registered within SI-KSeF.
3. Consent management allows you to enter information recorded on consents and attach pdf documents. The diagram of the distribution scenario by KSeF is presented below:
Functional description
1. Recording the invoice in the KSeF Receipt Invoice Register takes place only taking into account the invoice type and the output information containing data from the invoice provided by the Customer.
2. In the scope of SI-KSeF, a report presenting invoice data with the appropriate status is provided. The report generation is based on the selection screen:
3. In the scope of the purchase report, a set of data sent from SI-KSeF in the scope of metadata will be presented. Management of the scope of data presentation will be possible using standard SAP tools (variants). Below is a sample presentation:
4. Process-wise, within the SI-KSeF solution, an authorized user will indicate documents that have been substantively verified by them and can be posted in the SAP system.
5. Reading the document will be accompanied by an appropriate change of status.
In the register of invoices, information about the KSeF identification number and the document's date of registration will be updated at the same time.
Handling of sales invoices
1. Within the scope of the offered solution, support for two scenarios is provided:
SCENARIO No. 1 assumes sending invoices to KSeF for Customers who have chosen KSeF as the only way to deliver invoices.
SCENARIO No. 2 assumes sending invoices to KSeF, are delivered to Customers by a different way than KSeF, and registration in KSeF is important for the seller. In addition, SI-KSeF ensures the generation of an invoice in a structured form after the invoice has been saved and posted, if the following conditions are met:
FOR SCENARIO No. 1 Sending an invoice to KSeF for Customers who have agreed to receive invoices this way. At the time of creating the invoice, the corresponding output information will be assigned. At the same time, the other output information responsible for distributing invoices to customers will be deactivated.
The purpose of such action is to define only one way of delivering an invoice to the customer. After generating the accounting document, the output information "KSEF" will be processed, thus the invoice will appear in the "Register of Purchase Invoices" in the SI-KSEF solution.
FOR SCENARIO No. 2
Sending to KSeF all other invoices that are delivered by a different way than KSeF. The distribution of documents to customers will take place in an unchanged mode. In addition, the document will appear in the "Register of Sales Invoices" with the possibility of sending it to the KSeF Platform.
2. In the scope of SI-KSeF, a report presenting invoice data with the appropriate status is provided.
- The report generation is based on the selection screen:
3. In the scope of the sales report, a set of data sent to SI-KSeF will be presented, broken down into headings and document items. Management of the scope of data presentation will be possible using standard SAP tools (variants). Below is a sample presentation:
4. Process-wise, within the SI-KSeF solution, an authorized user will indicate documents that have been substantively verified by them and can be sent to KSeF. Such documents will be confirmed by an electronic signature as part of the SI-KSeF solution in accordance with the guidelines defined by KSeF. Sending the document will make appropriate changes to the status. The corresponding information received from KSeF – Official Receipt Certificate (UPO) – will be recorded in the reference to the sent invoice. In the register of invoices, information about the KSeF identification number and the date of registration of the document will be updated at the same time.