{"id":23351,"date":"2023-08-16T05:00:00","date_gmt":"2023-08-16T03:00:00","guid":{"rendered":"https:\/\/sii.pl\/blog\/?p=23351&#038;category=hard-development"},"modified":"2024-02-05T13:02:21","modified_gmt":"2024-02-05T12:02:21","slug":"ksef-for-ax-2012-d365-how-to-connect-a-company-to-the-national-e-invoice-system","status":"publish","type":"post","link":"https:\/\/sii.pl\/blog\/en\/ksef-for-ax-2012-d365-how-to-connect-a-company-to-the-national-e-invoice-system\/","title":{"rendered":"KSeF for AX 2012\/D365 \u2013 how to connect a company to the National e-Invoice System"},"content":{"rendered":"\n<p>The National e-Invoice System (KSeF) is a platform created by the National Tax Administration (KAS) for the sharing of VAT invoices in business. The platform was created to issue, receive and store invoices electronically in structured form, i.e. electronic invoices (e-invoices).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is an e-invoice?<\/strong><\/h2>\n\n\n\n<p>An e-invoice is a structured invoice issued via the National e-Invoice System (KSeF), marked with an allocated invoice identification number in KSeF. The structured invoice contains the relevant, legally defined information and is saved in XML electronic format.<\/p>\n\n\n\n<p>The implementation of KSeF will optimise invoicing, workflow and the invoice systems used by businesses. <strong>Soon, e-invoicing will become a mandatory solution for all companies.<\/strong><\/p>\n\n\n\n<p>Microsoft is currently preparing a solution for the latest version of Microsoft Dynamics 365 Finance &amp; Supply Chain Management. Microsoft won\u2019t provide a solution for older versions like AX 2012, and the on-premises version of D365.<\/p>\n\n\n\n<p>Therefore, as part of the launch of the KSeF platform, Sii has prepared an optimized and, most importantly, easy-to-use solution for both D365, AX 2012 and AX 2009.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What does offer our KSeF module?<\/strong><\/h2>\n\n\n\n<p>When developing the KSeF module, we placed great emphasis on the ergonomics of operation and the complete functional scope we can achieve with the electronic data exchange model.<\/p>\n\n\n\n<p>How can the KSeF solution provided by Sii help? Here are some selected functionalities:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Automatic sending of sales invoices from the financial system to KSeF.<\/li>\n\n\n\n<li>Automatic retrieval of identification numbers from KSeF.<\/li>\n\n\n\n<li>Automatic assignment of KSeF numbers of original invoices for corrective e-invoices;<\/li>\n\n\n\n<li>Viewing status history for each sales invoice.<\/li>\n\n\n\n<li>Automatic import of purchase invoices from KSeF directly into the financial system.<\/li>\n\n\n\n<li>Ability to import purchase invoices from the KSeF register directly into the Pending vendor invoices or Journal invoice in the Accounts Payable module (as required).<\/li>\n\n\n\n<li>Downloading of UPO for sent sales invoices.<\/li>\n\n\n\n<li>Ability to visualize e-invoices in pdf and XML formats.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How does it work?<\/strong><\/h2>\n\n\n\n<p>The concept of working within the KSeF module is to map data from the financial system to the requirements of the structure provided by KAS. The first step in implementing the solution is to complete the data in the Parameters of the KSeF module which is e.g. the mapping of tax codes.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/1-en.jpg\"><img decoding=\"async\" width=\"977\" height=\"477\" src=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/1-en.jpg\" alt=\"KSeF parameters\" class=\"wp-image-23353\" srcset=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/1-en.jpg 977w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/1-en-300x146.jpg 300w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/1-en-768x375.jpg 768w\" sizes=\"(max-width: 977px) 100vw, 977px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 1 KSeF parameters<\/figcaption><\/figure>\n\n\n\n<p>A control element of the solution is also the ability to enable the validation of invoices before sending them to KSeF.<\/p>\n\n\n\n<p>Below is shown an example of how the validation works when trying to post an invoice with an issue date earlier than the current one:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/2-en-ok.jpg\"><img decoding=\"async\" width=\"980\" height=\"435\" src=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/2-en-ok.jpg\" alt=\"Validation when trying to post an invoice\" class=\"wp-image-23355\" srcset=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/2-en-ok.jpg 980w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/2-en-ok-300x133.jpg 300w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/2-en-ok-768x341.jpg 768w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 2 Validation when trying to post an invoice<\/figcaption><\/figure>\n\n\n\n<p>In the parameters of the KSeF module, it is possible to set up email notifications for users to receive information about the failure of sending to KSeF. <\/p>\n\n\n\n<p>Both the sending of sales invoices, the downloading of status from KSeF and purchase invoices imported from KSeF are fully automated without the involvement of system users.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Sales invoice process description<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/2-en.jpg\"><img decoding=\"async\" width=\"849\" height=\"112\" src=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/2-en.jpg\" alt=\"Sales invoice processing\" class=\"wp-image-23357\" srcset=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/2-en.jpg 849w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/2-en-300x40.jpg 300w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/2-en-768x101.jpg 768w\" sizes=\"(max-width: 849px) 100vw, 849px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 3 Sales invoice processing<\/figcaption><\/figure>\n\n\n\n<p>When posting an invoice, the system automatically saves invoices in the KSeF module and sends invoices electronically directly to KSeF. After posting, the invoice was saved in the Structured invoices sent in the KSeF module with the status \u201cTo send\u201d:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/4-en.jpg\"><img decoding=\"async\" width=\"982\" height=\"230\" src=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/4-en.jpg\" alt=\"Invoice status: to send\" class=\"wp-image-23359\" srcset=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/4-en.jpg 982w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/4-en-300x70.jpg 300w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/4-en-768x180.jpg 768w\" sizes=\"(max-width: 982px) 100vw, 982px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 4 Invoice status: To send<\/figcaption><\/figure>\n\n\n\n<p>At this step, a view of invoices in XML and pdf format is already available. <\/p>\n\n\n\n<p>Once the invoice is sent to KSeF, the system automatically downloads the identification number and changes the status to Submitted. The invoice is immediately visible in the KSeF system in the Invoice List tab:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/5.jpg\"><img decoding=\"async\" width=\"1024\" height=\"347\" src=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/5-1024x347.jpg\" alt=\"List of invoices in the KSeF system\" class=\"wp-image-23342\" srcset=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/5-1024x347.jpg 1024w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/5-300x102.jpg 300w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/5-768x261.jpg 768w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/5.jpg 1400w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 5 List of invoices in the KSeF system<\/figcaption><\/figure>\n\n\n\n<p>In addition, our solution provides the ability to generate data for anonymous access for a particular sales invoice. For each invoice sent, it is possible to download the UPO and save it to the selected place on the disk.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Purchase invoice process description<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/6-en.jpg\"><img decoding=\"async\" width=\"935\" height=\"124\" src=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/6-en.jpg\" alt=\"The process of handling a purchase invoice\" class=\"wp-image-23361\" srcset=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/6-en.jpg 935w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/6-en-300x40.jpg 300w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/6-en-768x102.jpg 768w\" sizes=\"(max-width: 935px) 100vw, 935px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 6 The process of handling a purchase invoice<\/figcaption><\/figure>\n\n\n\n<p>To import purchase invoices automatically, you just need to set a batch job available in the KSeF module. Invoices will be downloaded along with the identification number from KSeF directly into the Downloaded structured invoices:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/7-en.jpg\"><img decoding=\"async\" width=\"982\" height=\"385\" src=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/7-en.jpg\" alt=\"Downloaded structures invoices\" class=\"wp-image-23363\" srcset=\"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/7-en.jpg 982w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/7-en-300x118.jpg 300w, https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/7-en-768x301.jpg 768w\" sizes=\"(max-width: 982px) 100vw, 982px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 7 Downloaded structures invoices<\/figcaption><\/figure>\n\n\n\n<p>In the Downloaded structured invoices, there is a preview of invoices in XML and pdf format. Invoices from the Downloaded structured invoices list can be imported into the Invoice Journal or the Pending Vendor Invoices and processed using the standard functions of the system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Additional benefits of using the solution provided by Sii<\/strong><\/h2>\n\n\n\n<p>The solution prepared by Sii specialists has many additional advantages, which include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The parameter setting is simple and only needs to be done once, for each type of invoice issued \u2013 Sales Order Invoices, Free Text, Project, Advance and Purchase Invoices.&nbsp;<\/li>\n\n\n\n<li>Both the downloading and sending of invoices are automated and can be set up with batch jobs, depending on the customer&#8217;s needs.<\/li>\n\n\n\n<li>Automatic updating of the statuses of invoices sent to KSeF via a batch job.<\/li>\n\n\n\n<li>Data validation guarantee &#8211; validation of invoices before sending to KSeF (possibility to turn validation parameter on and off).<\/li>\n\n\n\n<li>Validation of individual sales invoices directly in the Downloaded structured invoices.<\/li>\n\n\n\n<li>Ability to set up email notifications for users to receive information about failure to send to KSeF.<\/li>\n\n\n\n<li>Ability to generate, for an individual invoice, data for anonymous access, directly in the financial system.<\/li>\n\n\n\n<li>Ability to download UPO for sending sales invoices directly in the system, without having to log into the KAS website.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h2>\n\n\n\n<p>I hope that the solution we have developed meets the needs of many companies. If during your reading you assessed that this is the kind of support you are looking for, please contact us. We would be happy to discuss the details of integrating KSeF with your Microsoft Dynamics AX\/365 system.<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;23351&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;11&quot;,&quot;greet&quot;:&quot;&quot;,&quot;legend&quot;:&quot;5\\\/5 ( votes: 2)&quot;,&quot;size&quot;:&quot;18&quot;,&quot;title&quot;:&quot;KSeF for AX 2012\\\/D365 \u2013 how to connect a company to the National e-Invoice System&quot;,&quot;width&quot;:&quot;139.5&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ( {votes}: {count})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 11px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 18px; height: 18px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 11px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 18px; height: 18px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 11px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 18px; height: 18px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 11px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 18px; height: 18px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 11px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 18px; height: 18px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 139.5px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 11px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 18px; height: 18px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 11px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 18px; height: 18px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 11px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 18px; height: 18px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 11px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 18px; height: 18px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 11px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 18px; height: 18px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 14.4px;\">\n            5\/5 ( votes: 2)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The National e-Invoice System (KSeF) is a platform created by the National Tax Administration (KAS) for the sharing of VAT &hellip; <a class=\"continued-btn\" href=\"https:\/\/sii.pl\/blog\/en\/ksef-for-ax-2012-d365-how-to-connect-a-company-to-the-national-e-invoice-system\/\">Continued<\/a><\/p>\n","protected":false},"author":551,"featured_media":23350,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","inline_featured_image":false,"footnotes":""},"categories":[1319],"tags":[1772,1771,1639,1590,1406],"class_list":["post-23351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-soft-development","tag-invoice","tag-e-faktura-en","tag-przeglad-narzedzi-en","tag-tools","tag-dynamics-365-en"],"acf":[],"aioseo_notices":[],"republish_history":[],"featured_media_url":"https:\/\/sii.pl\/blog\/wp-content\/uploads\/2023\/08\/KSeF-dla-AX-2012-D365-\u2013-jak-polaczyc-firme-z-Krajowym-Systemem-e-Faktur.jpg","category_names":["Soft development"],"_links":{"self":[{"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/posts\/23351"}],"collection":[{"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/users\/551"}],"replies":[{"embeddable":true,"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/comments?post=23351"}],"version-history":[{"count":2,"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/posts\/23351\/revisions"}],"predecessor-version":[{"id":26788,"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/posts\/23351\/revisions\/26788"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/media\/23350"}],"wp:attachment":[{"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/media?parent=23351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/categories?post=23351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sii.pl\/blog\/en\/wp-json\/wp\/v2\/tags?post=23351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}