How to Generate E Invoice

How to Generate e Invoice under GST in India?

Online Legal India LogoBy Online Legal India Published On 25 Nov 2025 Updated On 26 Nov 2025 Category GST

E-invoicing under GST has transformed how businesses in India are creating, manage, and reporting B2B invoices. This practice is introduced for improving transparency, curb tax evasion, and streamlining compliance. GST e-invoice is now mandatory for businesses that meet the prescribed turnover criteria. In this blog we have discussed how to generate e-invoice, the step-by-step process in detail. Know what data you need to prepare, common mistakes that you should avoid and best practices for ensuring a seamless GST compliance. Read to know more.

What is a GST E-Invoice?

A GST e-invoice is a digitally authenticated invoice that is generated using the Invoice Registration Portal (IRP). The IRP validates it and returns, after a taxpayer uploads invoice details in a structured format (JSON).

  • Invoice Reference Number (IRN)
  • QR Code
  • Authenticated invoice data

This IRN-tagged invoice will be considered valid under GST. The system will then automatically populate GSTR-1. It will help in reducing manual entry and multiple errors.

Who Must Generate GST E-Invoices?

Before knowing how to generate e-invoice, why it is important to generate one:

The Government has introduced e-invoicing for businesses based on their annual aggregate turnover. Currently, e-invoicing is mandatory for businesses who are meeting the notified turnover amount (turnovers have gradually come down for wider implementation). It mainly applies to:

  • B2B invoices
  • Export invoices
  • Credit notes and debit notes that are issued to registered persons

Note: However, E-invoicing does not only apply to B2C invoices (although dynamic QR codes are needed for these businesses), insurance companies, and passenger transport services, SEZ units, banks, NBFCs.

Why is E-Invoicing Necessary?

Before learning the steps of how to generate e invoice, it is important to know why e invoicing is necessary. Know about the multiple advantages of E-invoicing:

1. Automatic Reporting into GST Returns

After IRN is generated, invoice details flow directly into GSTR-1 thus minimizing the manual efforts.

2. Reduced Errors

Structured data helps in reducing the chances of mismatch and inaccuracies.

3. Faster Input Tax Credit (ITC)

This helps buyers getting ITC fast because invoices reflect in their GSTR-2A and GSTR-2B faster.

4. Prevents Fake Invoicing

Another best thing is that each invoice gets has unique IRN that is verified on the government portal.

5. Improves Business Efficiency

It helps in improving business efficiency by integrating seamlessly with ERP systems for automated invoice generation.

Prerequisites for Generating GST E-Invoice

Before knowing the steps of how to generate e invoice, know the following prerequisites for generating GST e invoice:

1. GST Registration

You need to have an active GSTIN.

2. E-Invoice Portal Access

You will have to register on the Invoice Registration Portal (IRP) such as

3. Valid API/ERP or Accounting Software

You can make use of:

  • Tally
  • Zoho Books
  • Busy
  • Marg
  • SAP
  • Oracle

You can also generate e-invoices manually through the IRP.

4. Masters and HSN Codes Updated

Ensure your that all the below mentioned details are updated.

  • Customer GSTIN
  • Product HSN/SAC codes
  • Unit codes
  • Tax rates

5. Stable Internet Connection

Since the process involves real-time validation this is why reliable connectivity is essential. Make sure to have a stable internet connection.

Step-by-Step Process: How to Generate E-Invoice

In this section we will discuss in details how to generate e invoice. Read to know the two primary methods to generate a GST e-invoice:

  1. Through your accounting/ERP software via API integration
  2. By Manually uploading data on the IRP portal

Both approaches ultimately will generate the IRN and QR code.

Method 1: Generating an E-Invoice through ERP or Accounting Software

Medium and large businesses always prefer ERP-based automation. Check out how to generate e invoice with this method:

Step 1: Create the Invoice in Your Accounting Software

You can create the invoice as by entering:

  • Supplier and recipient details
  • GSTINs
  • Item description
  • Quantity, rate, taxable value
  • Tax breakup (CGST/SGST/IGST)
  • Invoice number and date

Your software will then prepare the invoice data in the official JSON format.

Step 2: Push JSON to IRP

Your software will send the JSON file to the Invoice Registration Portal through API.

Step 3: IRP Validates the Invoice

The IRP will check:

  • GSTIN validity
  • Duplicate IRN
  • Mandatory fields

If valid, IRP will then generate:

  • IRN (a 64-character hash)
  • Signed QR Code
  • Signed Invoice JSON

Step 4: Receive and Attach IRN & QR Code

Your software will then automatically:

  • Give the QR code on the invoice PDF
  • Stores the signed JSON

Step 5: Send the Final E-Invoice to the Customer

The final invoice will be shared with the customer including:

  • IRN
  • QR code
  • Approved invoice data

Method 2: Generate GST E-Invoice Manually on the IRP Portal

Businesses that have lower invoice volumes or who don’t prefer automation can use this method. Check out the steps to know how to generate e invoice with this method:

Step 1: Login to the IRP Portal

Visit the government-approved IRP and log in with:

  • GSTIN
  • Username
  • Password

Step 2: Download the Invoice Template

Navigate as described below:

  • E-Invoice
  • then Download it,
  • Bulk Generation Tool
  • Then Download the Excel template.

Step 3: Fill Invoice Details in the Tool

Then enter:

  • Supplier and buyer details
  • Invoice number and date
  • Item-wise details
  • Tax breakup

The tool will automatically convert your data into JSON format.

Step 4: Upload the JSON File

Then go to:

  • E-Invoice
  • then, Bulk Upload
  • Select the generated JSON file and then upload it.

Step 5: IRP Validates and Generates IRN

After validation, the portal will display:

  • IRN
  • QR code
  • Acknowledgment number
  • Acknowledgment date

Step 6: Download and Print the E-Invoice

After step 5 i.e. validating and generating IRN, you can download the GST e invoice. Download the e-invoice ZIP that contains the Signed invoice JSON and QR code. Then attach the QR code to your invoice PDF and share it with the customers. 

Key Components of a GST E-Invoice

Now you have learned how to generate e invoice, now check what a valid GST e-invoice contains:

1. IRN (Invoice Reference Number)

A unique 64-character will be generated from:

  • Supplier GSTIN
  • Invoice number
  • Invoice date
  • Document type

2. QR Code

It will contain critical invoice information such as:

  • Supplier and buyer GSTIN
  • Invoice number and date
  • Tax values
  • IRN

These are useful for verifying authenticity.

3. Digital Signature

In order to ensure the security and authenticity, the IRP digitally signs the JSON.

Common Mistakes to Avoid in E-Invoice Generation

1. Wrong GSTIN of Recipient

Incorrect GSTIN will cause rejection at the portal or ITC issues in case of the buyer.

2. Duplicate Invoice Numbers

IRP usually rejects invoices that has duplicate combinations of:

  • GSTIN of supplier
  • Invoice number
  • Financial year

3. Incorrect HSN Codes

HSN should match with the updated GST rules; incorrect HSN may cause compliance issues.

4. Missing Mandatory Fields

If you miss out giving key information (PIN code, state code, tax amount) then may result in failure.

5. Uploading Invoice PDFs Instead of JSON

Always remember that IRP accepts only JSON data, not PDFs.

What to Do if an E-Invoice Gets Rejected?

Rejections mainly happens because of data issues. After knowing how to generate e invoice, you should also know about common solutions:

  • Correct recipient GSTIN
  • Updated HSN codes
  • Ensuring the correct document type
  • Re-uploading corrected invoice JSON

Best Practices for Smooth E-Invoice Compliance

  • Make sure to keep your ERP/accounting software updated.
  • Verify customer GSTINs properly and regularly.
  • Use the GST portal for validating GSTINs.
  • Make sure to maintain consistent invoice numbering
  • Always special characters and overly long invoice numbers.
  • Train your staffs regarding e-invoicing workflows
  • API-integrated systems can help in reducing manual errors and save your time.

Final Thoughts

E-invoicing under GST is no longer optional for businesses these days. Its coverage is expected to expand even further in the future. While the system may can seem technical at first, knowing how to generate e invoice is easy once you understand the process properly. By following the steps and best practices given in this blog, you can confidently navigate e-invoicing requirements and generate GST e invoice. If you need more information on GST or information on generating e invoice visit the website of Online Legal India or require assistance for your GST registration, get in touch with.

FAQs

What is a GST e-invoice?

An invoice is a government-issued one for B2B transactions, that is created by logging into the invoice registration portal (IRP) for getting invoice reference number (IRN) along with a QR Code after reporting the details of the invoice.

Is Invoicing vital for B2C transactions?

No Invoicing is only important for B2B transactions, exports and deemed exports. It is not significant for B2C transactions. However, it can be done optionally.

Who Needs to Generate GST e-invoice?

Businesses who has an annual turnover above a particular threshold, have to generate e-invoices for B2B transactions.

Can I use Same Credentials for Multiple Business Units?

Yes, you can use the same Client ID for your all business units that are registered under the same PAN. However, you will have to create a separate username and password for each GSTIN.

Disclaimer: This article is for informational purposes only and does not constitute legal advice. Online Legal India is a digital platform. If you require legal assistance, we strongly recommend consulting a qualified lawyer or law firm.


Share With :
Author:
online legal india logo
Online Legal India

Online Legal India, a subsidiary of FastInfo Legal Services Pvt. Ltd., is registered under the Companies Act, 2013. Backed by a skilled team of professionals, we offer a comprehensive range of services. We deliver high-quality solutions to individuals, business owners, company founders, corporate entities, and more, addressing their company registration needs and resolving various challenges they encounter in everyday lives.

Leave A Comment


Comments

Anjali Malhotra

Commenter

Anjali Malhotra

Commenter