Invoicing has changed a lot for Indian businesses over the past few years. GST rules now require many companies to report their invoices to a government portal before they can be treated as valid.
This process is called e-invoicing, and it has become a normal part of daily business for anyone who crosses the turnover limit set by the government. If your invoices are not reported the right way, they are not legally complete. That makes automation a real need, not just a nice-to-have.
This post explains how eInvoice API integration works, what an IRN and QR code actually are, and how businesses connect their existing billing or ERP software to generate these automatically.
What Is an eInvoice?
An eInvoice is not a new invoice format. It is your regular GST invoice, reported to the government’s Invoice Registration Portal (IRP) and returned with two things added: an Invoice Reference Number (IRN) and a QR code. Once these are attached, the invoice becomes valid under GST law.
You keep creating invoices the same way you always have, through your accounting or billing software. The only change is that each invoice now needs to travel to the IRP for validation before it goes out to your customer.
What Documents Are Covered?
Here are some documents covered:
- Invoices
- Credit notes
- Debit notes
These apply to business-to-business (B2B) supplies, supplies to SEZs, exports, and deemed exports, when issued by a notified person or organization. Supplies that are nil-rated or fully exempt are not covered, since those use a bill of supply instead of a tax invoice.
Who Needs to Follow the eInvoicing Rule?
eInvoicing is mandatory for registered businesses whose total turnover, based on PAN, crosses a limit set by the government in any year from 2017-18 onwards. As of August 2023, that limit is 5 crore rupees in annual turnover. If your business crosses this mark, you must upload B2B invoices to the portal electronically.
A few sectors are exempt, even if their turnover qualifies:
- Special Economic Zone (SEZ) units
- Insurers, banking companies, and financial institutions, including NBFCs
- Goods transport agencies for road transport
- Passenger transportation service providers
- Cinema exhibitors on multiplex screens
Note that suppliers to an SEZ still need to issue eInvoices. It’s only the SEZ unit itself that is exempt from issuing them.
What Happens at the Invoice Registration Portal (IRP)?
The IRP is the government portal that assigns the IRN to each invoice, credit note, and debit note. Only those invoices with a valid IRN qualify as proper eInvoices.
Here’s what happens to your invoice data when it reaches the IRP:
- Generates the hash or IRN for invoices uploaded without one, based on defined parameters.
- If you have generated the hash or IRN on your own system, then first validate it.
- It looks for duplicates by comparing the invoice to existing records.
- Digitally signs every validated invoice with the IRP’s private key.
- Generates an invoice QR code.
- Sends the validated invoice to the seller by email.
It exchanges data with the GST system and the eWay Bill system so that GSTR-1 and eWay Bills get updated automatically where needed.
What’s Inside the QR Code?
The QR code is not just a scan-to-verify image. It carries specific invoice details that let anyone with a phone check the invoice on the spot. This is especially useful for GST officers checking goods in transit.
The QR code includes:
- GSTIN of the supplier
- GSTIN of the recipient
- Invoice number and date
- Invoice value
- Number of line items
- HSN code of the item with the highest taxable value The unique IRN
Why Manual eInvoicing Slows Businesses Down
Without automation, someone on your team has to prepare a JSON file for each invoice, upload it to the IRP, wait for the IRN and QR code, then bring that data back into your ERP or billing system by hand.
Multiply this by hundreds or thousands of invoices a month, and it eats up real time and introduces room for error. This is exactly the gap that eInvoice API integration is built to close.
How eInvoice API Integration Works
An eInvoice API sits between your ERP or billing software and the IRP. Instead of visiting the portal and uploading files, your software calls the API directly, and the IRN and QR code come back as part of the response.
TaxPro GSP offers this connection through free eInvoice API libraries for .NET and Java, along with complete integration source code. Businesses using SAP, Microsoft Dynamics, Tally, Busy, Oracle, or any other ERP can connect through these libraries. There are no onboarding charges, and integration support is provided free of cost. On the API side, two sets of functions are available:
Post APIs:
- Authenticate
- Generate IRN
- Cancel IRN
Get APIs:
- Get eInvoice by IRN
- Get GSTIN details
- System check
The library also handles authentication in the background. There is no need to separately call an AuthToken API each time, since the library checks for a valid token and refreshes it automatically. According to the integration details on the eInvoice page, getting connected typically takes just a few hours of development time.
What You Can Do Once You’re Integrated
Once your ERP is connected through the API, invoice operations move inside your existing software. You can:
- Generate and cancel eInvoices from your ERP with one click.
- Validate and print invoices with the QR code attached.
- Perform bulk operations instead of handling invoices one at a time.
- Get auto-accounting of invoices directly into your ERP.
- Receive real-time alerts on eInvoice updates.
- Reconcile eInvoice data with GSTR-1 automatically.
For businesses generating a high volume of invoices, this bulk capability matters most. It removes repeated visits to the IRP and cuts down the manual work needed to keep GST filing accurate.
A Quick Word on Data Handling
Since invoice data includes GSTIN numbers, tax values, and customer details, encryption and validation matter. TaxPro GSP’s API handles JSON invoice data encryption, decryption, and digital signing as part of the integration, so this doesn’t need to be built separately by your development team. TaxPro is also an ISO 27001-certified company.
Read Also: How Automated eInvoice Generation Through a GSP Eliminates Month-End Billing Chaos
Summary
eInvoicing is now a legal requirement for businesses above the turnover threshold, and it works by sending invoice data to the IRP to receive an IRN and QR code. Doing this manually through JSON uploads is slow and error-prone once your invoice volume grows.
API integration solves this by connecting your existing ERP or billing software directly to the IRP, so IRNs and QR codes are generated automatically, in bulk, without leaving your system.
If your business is ready to connect its ERP to an eInvoice API, TaxPro GSP offers free Java and .NET libraries with complete integration source code and no onboarding charges.
Get in touch with TaxPro GSP:
- Email: info@taxpro.co.in
- Helpdesk: 0712-663 8888
- Website: taxpro.co.in