NIC e-Invoice Portal ERP Integration: IRN and e-Way Bills from the Invoice
For finance and billing teams that raise e-invoices and e-way bills every day and want them generated from the invoice, with rejections explained.
A NIC e-invoice portal ERP integration removes the upload step between raising an invoice and getting its IRN. Without it, someone exports a file, uploads it, waits, and copies the IRN and QR code back onto the invoice.
Apragya's NIC connector talks to NIC directly, not through a GST Suvidha Provider. It can generate an IRN, cancel an IRN, fetch an IRN, generate and cancel e-way bills, and look up GSTIN details. Credentials are stored encrypted in the connection.
Direct API access from NIC has its own eligibility and registration steps, so check the current conditions on the e-invoice portal before you plan.
Before and after connecting to NIC
From the invoice
- IRN requested when the invoice is ready
- IRN and signed QR saved on the invoice
- Rejections explained in plain English
- E-way bill generated from the same document
An example: a Ludhiana hosiery manufacturer
Take an illustrative 120-person manufacturer raising dozens of B2B invoices a day. One morning an invoice to a Kolkata buyer was rejected by NIC.
The rejected invoice, explained
Tax invoice, IRN request
Token issued for this GSTIN, reused for six hours.
Checked against NIC's GSTIN details.
Did not match the buyer's state code.
Error code translated into a plain sentence.
Derived from the buyer's GSTIN; not auto-applied.
Corrected, resubmitted and IRN received.
The accountant read the explanation, accepted the corrected place of supply and resubmitted. The IRN and QR code landed on the invoice, and the e-way bill for the consignment was generated from the same document before the truck left.
How the e-invoice API integration works
Step 1 of 5
Add credentials
Enter the NIC API details and the GSTIN the connection signs in as.
- Add credentials: Enter the NIC API details and the GSTIN the connection signs in as.
- Sandbox or live: The same connector uses NIC's sandbox host for testing.
- Generate the IRN: Request it from the invoice and store the IRN and signed QR.
- E-way bill: Generate or cancel the e-way bill for the same document.
- Failure triage: An agent explains rejections and suggests safe fixes for review.
Choosing IRN generation software that explains itself
Generating an IRN is the easy part. The time goes on rejections, which NIC reports by code and field position. Apragya translates those into sentences, and proposes a corrected value only where the invoice itself proves it, such as a place of supply that must match a GSTIN already on the document.
Manual upload against Apragya's NIC connector
| Feature | Portal upload | Apragya |
|---|---|---|
| IRN request | File exported and uploaded | From the invoice |
| QR code on the invoice | Copied by hand | Saved automatically |
| Rejection reasons | Error codes | Plain-English explanation |
| Suggested fixes | None | Only where provable, never auto-applied |
| Testing | Separate sandbox steps | Same connector, sandbox flag |
Checked against public information on 16 September 2026.
What sits around the connector
GST on every document
GSTIN validation, place of supply and HSN.
GSTR-1 ready
E-invoiced sales flow into the return.
GSTR-2B reconciliation
Purchases matched against the portal data.
Human review
Nothing is changed on a tax document without a person.
Multi-GSTIN
Tokens are kept per GSTIN, so branches do not collide.
Audit log
Who requested, cancelled or corrected, and when.
Read the e-invoicing feature, the IRN cancellation guide and the e-way bill generation guide.
Getting started
- Confirm your eligibility and register for API access with NIC.
- Create a sandbox connection and test with sample invoices.
- Check HSN codes and GSTINs on your masters.
- Switch the connection to live for one GSTIN.
- Add other GSTINs once the first runs cleanly.
The sandbox run usually surfaces master-data gaps worth fixing before the first live invoice.
What it costs to start
NIC e-invoice integration, answered
Does Apragya go through a GSP?
Can we test before going live?
Will the system change invoice values on its own?
Can it cancel an IRN?
What does it cost to start?
Get the IRN from the invoice itself
Connect to NIC, test in the sandbox and stop uploading files.