The Invoice Registration Portal (IRP) using a hash generation algorithm, under the new e-invoicing system will generate a unique number for each document such as an invoice or debit or credit note submitted on GST Portal or e-way bill portal then this generated unique number or hash will become the IRN (Invoice Reference Number) of the e-invoice.
This shall be unique to each invoice and hence be the unique identifier for each invoice for the entire financial year in the entire GST System for a taxpayer. And the GST Systems will create a central registry where hash sent by all IRPs will be kept to ensure the uniqueness of the same.
What are the parameters to generate IRN (HASH)?
You can generate the unique Invoice Reference Number (IRN) (in technical terms hash of 3 parameters using a standard and well-known hash generation algorithm e.g. SHA256). This is an optional step, The seller can also generate this and upload it along with invoice data. The 3 parameters which will be used to generate IRN (hash) are:
Financial year (YYYY-YY). (The IRN or hash generation algorithm will be prescribed by GSTN in the e-invoice standard).
What is the
hash generation algorithm in IRN?
A hash generation algorithm is a function that converts a message or a string consisting of characters (alphabets + numbers + certain special characters) into a series of numbers such that the resulting numbers cannot indicate the original message.
What is the Format of Invoice Reference Number (IRN)?
Each Invoice uploaded by the taxpayer will get the unique number called an Invoice Reference Number (IRN).
IRN is of 64 Characters length.
This IRN is a unique number in the GST system, irrespective of the taxpayer, financial year and document type.
IRN is generated by the e-invoice system once the taxpayer uploads the invoice details.
IRN can also be prepared by the taxpayer and uploaded with the invoice details. The e-invoice system verifies this and accepts it accordingly.
IRN is generated using the computer algorithm (RSA256) based on the combination of the Supplier GSTIN, Document Type, Document Number and year of the Invoice (Financial Year).
IRN is hash of Supplier GSTIN + Fin. Year + Doc Type + Doc Number.
Financial Year is calculated based on the date of the invoice. That is, the financial year starts with 1st April and ends on 31st March and represented as YYYY-YY. If the date is 03.01.2020, the financial year is 2019-20.
Document types are INV for Invoice, CRN for Credit Note, DBN for Debit Note.
Document Number is a number printed on the Document, being issued to the purchaser, and it is to be of a maximum of 16 alphanumeric and / -.
The prefixing zeros, / – are ignored. However, the appearance of these characters in the middle and suffixing places is accepted as it is.
Using the above points, the taxpayer can generate the IRN by self.
For example, a taxpayer with 06AAAAA9999A19N has issued the Invoice with Number ABC01234 on 12.12.2019 to his supplier, the string used for hashing is
06AAAAA9999A19N2019-20INVABC01234.
Removal of prefixing ‘o’,’-‘,’/’: If the invoice number is 01234 or /AB123 or -1234, then 1234 or AB123 or 1234 is used for hashing.
In case the invoice number is AB/123 or AB-123 or AB0123, then they are taken as it is.
Can a taxpayer generate an e-way bill using IRN?
Yes, there will be one more API, released
shortly, to generate the e-way bill based on IRN and Part-B details.
Who can generate IRN from the e-invoicing system?
Presently, the taxpayers who have been notified. That is, taxpayers whose turnover is more than Rs 500 Crores and registered GSPs can generate IRN only.
Whether the IRN is to be captured in the Supplier’s ERP?
The IRN (hash) will be generated by the GST System using GSTIN of supplier or document creator, financial year and the unique serial number of the document/invoice. The IRN can also be generated by the seller.
The serial number of invoices will be unique for a GSTIN for a Fin Year and the same has to be captured by the Supplier’s ERP.
Then the supplier has to keep the IRN against each of its invoices. It will be advisable to keep the same in the ERP as an invoice without IRN will not be a legal document.
An Accountant, GSTP, GST blogger, Website Creator, SEO Builder & Co-founder of the website https://gstportalindia.in for the help of GST Taxpayers of India. Having a perfect accounting experience of more than 10 years in a Private Ltd Company.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Hi Mayur, Thanks for information, I have one quention you have mentioned 2 lines for IRN generation algo. Which one algorithm is used.
Invoice Reference Number (IRN) (in technical terms hash of 3 parameters using a standard and well-known hash generation algorithm e.g. SHA256)
IRN is generated using the computer algorithm (RSA256)