{"id":1970,"date":"2023-05-30T13:03:53","date_gmt":"2023-05-30T13:03:53","guid":{"rendered":"https:\/\/whitebooks.in\/blog\/?p=1970"},"modified":"2023-07-10T05:50:59","modified_gmt":"2023-07-10T05:50:59","slug":"signed-qr-code-in-e-invoicing-system","status":"publish","type":"post","link":"https:\/\/whitebooks.in\/blog\/signed-qr-code-in-e-invoicing-system\/","title":{"rendered":"Signed QR Code in e-Invoicing System"},"content":{"rendered":"\n<p>In the e-Invoicing system, after requesting an IRN (Invoice Reference Number) from the IRP (Invoice Registration Portal), the IRP generates a unique QR code known as the &#8216;Signed QR Code&#8217;. This QR code contains the hashed IRN (Invoice Reference Number) along with other essential parameters of the invoice and a digital signature.<\/p>\n\n\n\n<p>The &#8216;Signed QR Code&#8217; is included in the response provided by the IRP to the taxpayer who requested the IRN for their invoice. This QR code serves as a verification mechanism for taxpayers and tax officers to validate whether the e-invoice has been reported to the IRP and accepted by it.<\/p>\n\n\n\n<p>By scanning the QR code using an Offline App, taxpayers and tax officers can easily verify the authenticity of the e-invoice. The presence of the IRN and the digital signature of the IRP within the signed QR code serve as proof that the e-invoice has been received and registered by the IRP.<\/p>\n\n\n\n<p>It&#8217;s important to note that if the signed JSON (data in the e-invoice) is tampered with, the e-invoice becomes invalid, and the digital signature will fail, indicating that the e-invoice has been altered or tampered with. This ensures the integrity and security of the e-invoice system.<\/p>\n\n\n\n<p><strong>The QR code generated in the e-Invoicing system contains the following e-invoice parameters:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>GSTIN of the Supplier<\/li>\n\n\n\n<li>GSTIN of the Recipient<\/li>\n\n\n\n<li>Invoice number assigned by the Supplier<\/li>\n\n\n\n<li>Date of invoice generation<\/li>\n\n\n\n<li>Invoice value, including taxable value and gross tax amount<\/li>\n\n\n\n<li>Number of line items in the invoice<\/li>\n\n\n\n<li>HSN (Harmonized System of Nomenclature) code of the main item, which refers to the line item with the highest taxable value<\/li>\n\n\n\n<li>Unique Invoice Reference Number (IRN) in hashed form<\/li>\n\n\n\n<li>Date of IRN generation<\/li>\n<\/ol>\n\n\n\n<p>The &#8216;Signed QR Code&#8217;, provided in Base64 format, can be used by the taxpayer to generate the QR code on the invoice copy. The QR code should be an integral part of the invoice and must be readable by QR code readers or apps. The size and placement of the QR code on the invoice can be determined according to the preference of the businesses.<\/p>\n\n\n\n<p>To verify the authenticity of the e-invoice, anyone can use the offline app provided on the IRP portal. By scanning the QR code using the app, the information encoded in the QR code, including the signed parameters and the IRN, can be verified. This allows users to validate the e-invoice and ensure its integrity.<\/p>\n\n\n\n<p>The Signed QR code, when it is printed will look like as follows<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"217\" height=\"218\" src=\"https:\/\/whitebooks.in\/blog\/wp-content\/uploads\/2023\/05\/qr-codes.webp\" alt=\"\" class=\"wp-image-1971\" title=\"\" srcset=\"https:\/\/whitebooks.in\/blog\/wp-content\/uploads\/2023\/05\/qr-codes.webp 217w, https:\/\/whitebooks.in\/blog\/wp-content\/uploads\/2023\/05\/qr-codes-150x150.webp 150w\" sizes=\"auto, (max-width: 217px) 100vw, 217px\" \/><\/figure>\n<\/div>\n\n\n<p>The IRP provides the Signed QR Code for the IRN request in a Base64 encoded format, structured as a JSON Web Token (JWT). The JWT consists of three parts: the signature parameters, the data, and the signature itself. These parts are separated by dots. In the example provided, the parts are indicated in red color.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"SignedQRCode\":\"eyJhbGciOiJSUzI1NiIsImtpZCI6IjExNUY0NDI2NjE3QTc5MzhCRTFCQ\nTA2REJFRTkxQTQyNzU4NEVEQUIiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJFVjlFSm1GNmVUaS1\nHNkJ0dnVrYVFuV0U3YXMifQ.eyJkYXRhIjoie1wiU2VsbGVyR3N0aW5cIjpcIjM3QlpOUE\n05NDMwTTFLTFwiLFwiQnV5ZXJHc3RpblwiOlwiMDNCWk5QTTk0MzBNMUtMXCIsXCJ\nEb2NOb1wiOlwiUVdFMS00NTQ1NjVcIixcIkRvY1R5cFwiOlwiSU5WXCIsXCJEb2NEdFwi\nOlwiMDUvMDkvMjAyMFwiLFwiVG90SW52VmFsXCI6MTY2NTUuOTksXCJJdGVtQ250\nXCI6MSxcIk1haW5Ic25Db2RlXCI6XCIzOTIzMTAxMFwiLFwiSXJuXCI6XCIzMDFhNzIyZW\nMxZGQxNWM5YjQ1YzRkZmViNTZiOTU5YjcyM2E3ZjI1NTdmNDkzM2RmOWFkNmUw\nYWEzNGMyZTA4XCIsXCJJcm5EdFwiOlwiMjAyMC0wOS0xMCAxMjozMzowMFwifSIsI\nmlzcyI6Ik5JQyJ9.bMApyZTeOo1Aixelld8EsTA57h4gNBYMemN--\nOnpr_Smr2pn3BUBwfyL_kyIGea5cfQT40qPCUc81drnIHlQpVSVIyhiUMU0NnxMWx2jJ\ng0cS8CuaYdvHOzB1gYYYdeRI6B5RroFi8zxKVbL9HCyJVFalXhDOgWb5IgI9BhWDej1HA\ns3GerNTtYztoMg7qyFZql3mwqcL7IRtjCwsVVYYeFT9uvKdM9tSorIkQTdWPvMpFHScittzM\nQyNYW9YY5UPkZxt_rftAgYv-ELXyMcZC_qLdO8EASPH-jL-wpEV711N5zdtQ6kWsKfcJiHOVmMCaoRginV_kBVWsJNN7wg\u201d<\/code><\/pre>\n\n\n\n<p>On decoding Signed QR Code parameter, it looks like as follows<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n \"alg\": \"RS256\",\n \"kid\": \"115F4426617A7938BE1BA06DBEE91A427584EDAB\",\n \"typ\": \"JWT\",\n \"x5t\": \"EV9EJmF6eTi-G6BtvukaQnWE7as\"\n}\n{\n\"data\":\n\"{\\\"SellerGstin\\\":\\\"37BZNPM9430M1KL\\\",\\\"BuyerGstin\\\":\\\"03BZNPM9430M1KL\\\",\\\"\nDocNo\\\":\\\"QWE1-\n454565\\\",\\\"DocTyp\\\":\\\"INV\\\",\\\"DocDt\\\":\\\"05\/09\/2020\\\",\\\"TotInvVal\\\":16655.99,\\\"It\nemCnt\\\":1,\\\"MainHsnCode\\\":\\\"39231010\\\",\\\"Irn\\\":\\\"301a722ec1dd15c9b45c4dfeb5\n6b959b723a7f2557f4933df9ad6e0aa34c2e08\\\",\\\"IrnDt\\\":\\\"2020-09-10 12:33:00\\\"}\",\n \"iss\": \"NIC\"\n}\n<\/code><\/pre>\n\n\n\n<p>To verify the signature of the Signed QR Code, one can utilize the corresponding DS Certificate obtained from the portal. The Public Key required for verification is provided below. By using the Public Key and the provided data, the authenticity and integrity of the Signed QR Code can be confirmed.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"PublicKey\":\n\"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArxd93uLDs8HTPqcSPpxZrf0\nDc29r3iPp0a8filjAyeX4RAH6lWm9qFt26CcE8ESYtmo1sVtswvs7VH4Bjg\/FDlRpd+MnAlX\nuxChij8\/vjyAwE71ucMrmZhxM8rOSfPML8fniZ8trr3I4R2o4xWh6no\/xTUtZ02\/yUEXbphw3\nDEuefzHEQnEF+quGji9pvGnPO6Krmnri9H4WPY0ysPQQQd82bUZCk9XdhSZcW\/am8w\nBulYokITRMVHlbRXqu1pOFmQMO5oSpyZU3pXbsx+OxIOc4EDX0WMa9aH4+snt18WA\nXVGwF2B4fmBk7AtmkFzrTmbpmyVqA3KO2IjzMZPw0hQIDAQAB\"\n<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the e-Invoicing system, after requesting an IRN (Invoice Reference Number) from the IRP (Invoice Registration Portal), the IRP generates a unique QR code known as the &#8216;Signed QR Code&#8217;. This QR code contains the hashed IRN (Invoice Reference Number) along with other essential parameters of the invoice and a digital signature. The &#8216;Signed QR&hellip;&nbsp;<a href=\"https:\/\/whitebooks.in\/blog\/signed-qr-code-in-e-invoicing-system\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Signed QR Code in e-Invoicing System<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2813,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[95],"tags":[],"class_list":["post-1970","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-e-invoicing"],"_links":{"self":[{"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/posts\/1970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/comments?post=1970"}],"version-history":[{"count":2,"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/posts\/1970\/revisions"}],"predecessor-version":[{"id":2814,"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/posts\/1970\/revisions\/2814"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/media\/2813"}],"wp:attachment":[{"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/media?parent=1970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/categories?post=1970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/whitebooks.in\/blog\/wp-json\/wp\/v2\/tags?post=1970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}