{"id":360,"date":"2023-12-08T22:53:08","date_gmt":"2023-12-08T21:53:08","guid":{"rendered":"https:\/\/ksefapi.pl\/?p=360"},"modified":"2024-12-18T10:53:01","modified_gmt":"2024-12-18T09:53:01","slug":"poradnik-ksef-jak-wygenerowac-token","status":"publish","type":"post","link":"https:\/\/ksefapi.pl\/en\/poradnik-ksef-jak-wygenerowac-token\/","title":{"rendered":"How to generate a KSeF access token?"},"content":{"rendered":"<h1>Generating a KSeF access token<\/h1>\n<p style=\"padding-left: 40px;\">1. After creating the account in the National e-Invoice System, as described in the first part of the guide: <a href=\"\/en\/ksef-krajowy-system-e-faktur-jak-utworzyc-konto\/\">KSeF guide \u2013 how to create an account in the National e-Invoice System<\/a>, we can start generating the token.<\/p>\n<p style=\"padding-left: 40px;\">2. Select from the side menu <code>Generate token<\/code>, then enter the token name that will be displayed on the list and select the permissions that will be associated with this token. For the purposes of integration with the ksefapi.pl service, select the following options: <code>access to invoices<\/code> and <code>giving invoices<\/code>. Selected option <code>access to invoices<\/code> means that by using the ksefapi.pl service functions it will be possible to download cost invoices, and the option <code>giving invoices<\/code> \u2013 as the name suggests \u2013 allows you to send invoices to the KSeF system using the website&#039;s functions <a href=\"https:\/\/www.nip24.pl\">nip24.pl<\/a>. <a href=\"https:\/\/nip24.pl\/wp-content\/uploads\/2023\/12\/word-image-4387-25.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nip24.pl\/wp-content\/uploads\/2023\/12\/word-image-4387-25.png\" class=\"aligncenter wp-image-4439\" width=\"1247\" height=\"712\" title=\"KSeF token\" alt=\"generowanie tokena ksef\" \/><\/a><\/p>\n<p style=\"padding-left: 40px;\">3. Successful token generation is confirmed by the message:<\/p>\n<p><a href=\"https:\/\/nip24.pl\/wp-content\/uploads\/2023\/12\/word-image-4387-26.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nip24.pl\/wp-content\/uploads\/2023\/12\/word-image-4387-26.png\" class=\"aligncenter wp-image-4440\" width=\"873\" height=\"544\" title=\"KSeF - token generation\" alt=\"token ksef\" \/><\/a><\/p>\n<p style=\"padding-left: 40px;\">4. List of generated tokens:<\/p>\n<p><a href=\"https:\/\/nip24.pl\/wp-content\/uploads\/2023\/12\/word-image-4387-27.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nip24.pl\/wp-content\/uploads\/2023\/12\/word-image-4387-27.png\" class=\"aligncenter wp-image-4444\" width=\"1620\" height=\"365\" title=\"ksef token for nip24.pl\" alt=\"lista token\u00f3w ksef\" \/><\/a><\/p>\n<p>other parts <strong>A guide to KSeF<\/strong>, which may also be interesting reading:<\/p>\n<ul>\n<li><a href=\"\/en\/ksef-krajowy-system-e-faktur-jak-utworzyc-konto\/\">Creating an account in the National e-Invoice System<\/a><\/li>\n<li><a href=\"\/en\/ksef-jak-wystawic-fakture\/\">I am issuing my first KSeF invoice<\/a><\/li>\n<li><a href=\"\/en\/ksef-jak-wyslac-fakture-do-ksef-z-innego-programu\/\">How can I load an invoice into KSeF if it was issued from another invoice generating program?<\/a><\/li>\n<li>I need to search and download a cost invoice from KSeF<\/li>\n<li><a href=\"\/en\/poradnik-ksef-jak-wygenerowac-token\/\">I want to generate an authorization token enabling sending and receiving KSeF invoices<\/a><\/li>\n<\/ul>\n<ol><\/ol>\n<p><!-- \/wp:list --><\/p>","protected":false},"excerpt":{"rendered":"<p>Generating a KSeF access token 1. After creating an account in the National e-Invoice System, which was described in the first part of the guide: KSeF Guide \u2013 how to create an account in the National e-Invoice System, we can start generating a token. 2. Select Generate token from the side menu, and then enter the token name, which will be displayed on [\u2026]<\/p>","protected":false},"author":2,"featured_media":358,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10,6],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/posts\/360"}],"collection":[{"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/comments?post=360"}],"version-history":[{"count":5,"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/posts\/360\/revisions"}],"predecessor-version":[{"id":889,"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/posts\/360\/revisions\/889"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/media\/358"}],"wp:attachment":[{"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/media?parent=360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/categories?post=360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ksefapi.pl\/en\/wp-json\/wp\/v2\/tags?post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}