GST & TaxGST ComplianceNIC IRP Technical Standard & API Schema

E-Invoicing Error Codes & IRN Generation: NIC Portal Troubleshooting Guide

Complete technical and regulatory troubleshooting guide for GST e-invoicing error codes on the National Informatics Centre (NIC) Invoice Registration Portal (IRP). Master error resolutions for 2150 (duplicate IRN), 2185 (invalid HSN), 2265 (pin-to-pin distance error), 2275 (GSTIN cancellation), schema validation failures, credit notes, and 30-day time-limit rules.

GBy GST Munshi Technical Architecture & IRP Integration Desk•Published: September 20, 2026•15 min read•13.2K views•1 reading now
Verified against Official Govt Circulars & Statutes
Share
E-Invoicing Error Codes & IRN Generation: NIC Portal Troubleshooting Guide
AI Generated Image
13.2K views•1 live
GST Compliance — NIC IRP Technical Standard & API SchemaAI-Generated Editorial Illustration
Read in Your Regional Language:
Table of Contents (15 Sections)
NIC IRP API Integration Technical Manual

E-Invoicing Error Codes: NIC Portal IRN Generation Troubleshooting Guide

The definitive technical and statutory guide to debugging and resolving e-invoicing errors on the National Informatics Centre (NIC) Invoice Registration Portal (IRP). Master error codes 2150, 2175, 2182, 2283, JSON schema validation rules, tax rounding tolerances, and 24-hour cancellation protocols.

Quick Answer & Key Takeaways

Direct Answer: Why Does E-Invoice IRN Generation Fail on the NIC Portal?

E-invoice generation fails on the NIC IRP (einvoice1.gst.gov.in) primarily due to four categories of structural discrepancies: (1) Duplicate Document Numbers (Error 2150) where an IRN was already generated for that invoice serial in the current financial year; (2) Inactive Buyer GSTINs (Error 2175) or invalid State codes; (3) HSN Code Mismatches (Error 2182) where the code is not formatted to 6 or 8 digits or is absent from the Customs Tariff Master; and (4) Mathematical Rounding Offsets where item-level taxable values plus CGST/SGST/IGST fail to reconcile within the statutory ±₹2 total tolerance band. Correcting the underlying ERP payload and re-querying the IRP API resolves over 98% of rejections without issuing duplicate records.
Error 2150 (Duplicate IRN): Once created, an invoice number cannot be reused even after 24-hour cancellation.
Error 2175 (Inactive GSTIN): Buyer registration must be active on the exact date of supply; suspended GSTINs trigger rejections.
Error 2182 (HSN Mismatch): All businesses with turnover exceeding ₹5 Cr must use 6-digit HSN codes verified in the NIC master.
Error 2283 (PIN Distance): Set auto-distance to 0 or provide manual road distance within a ±10% tolerance band.
Strict 24-Hour Cancellation Window: After 24 hours, errors can only be rectified via Credit/Debit Notes under Section 34.
Rule 48(5) Penalty: Transporting goods without a signed IRN and QR code renders the invoice non-existent, risking 200% penalty under Section 129.

1. Overview: The NIC Invoice Registration Portal (IRP) Architecture

Under Rule 48(4) of the Central Goods and Services Tax Rules, 2017, all registered businesses whose aggregate turnover in any preceding financial year exceeds ₹5 Crore are statutorily mandated to report B2B, B2G, and export supply invoices to the Invoice Registration Portal (IRP).

The IRP operates as a high-speed cryptographic gateway. It ingests standardized JSON payloads conforming to Schema INV-01, validates mandatory data nodes, checks for duplicates, computes a 64-character SHA-256 hash (the Invoice Reference Number or IRN), signs the payload with NIC's digital certificate, embeds a dynamic QR code, and pushes the data asynchronously to the GSTN Common Portal (for GSTR-1 auto-population) and the National E-Way Bill System.

2. The INV-01 JSON Schema Architecture

The e-invoice payload contains mandatory and optional JSON nodes. A single missing character, incorrect data type, or illegal string character (e.g. forward slashes or special symbols in invoice numbers) results in instant schema rejection before the database query is even executed:

// Key Mandatory Nodes in INV-01 Payload

"DocDtls": { "Typ": "INV", "No": "INV-2026-001", "Dt": "20/10/2026" },

"SellerDtls": { "Gstin": "27AAACB2212M1Z1", "LglNm": "Apex Logistics Ltd", "Pin": 400001, "Stcd": "27" },

"BuyerDtls": { "Gstin": "06AAACT0000A1Z5", "Pos": "06", "Pin": 122001, "Stcd": "06" },

"ItemList": [ { "ItemNo": 1, "HsnCd": "84713010", "Qty": 10, "UnitPrice": 45000, "TotAmt": 450000, "AssAmt": 450000, "GstRt": 18, "IgstAmt": 81000 } ],

"ValDtls": { "AssVal": 450000, "IgstVal": 81000, "TotInvVal": 531000 }

3. Master Classification of NIC Error Codes

Error codes returned by the IRP API are categorized by their numerical prefixes:

1000 Series: Authentication

Token expired, invalid client ID/secret, IP address not whitelisted in GSP portal, encryption key mismatch.

2000 Series: Business Validation

Duplicate IRN, inactive GSTIN, HSN invalid, state code mismatch, document date older than permissible window.

3000 Series: E-Way Bill Integration

Vehicle number format incorrect, PIN distance unavailable, transporter ID inactive, transshipment date invalid.

4. Error 2150: "Duplicate IRN, already generated"

Trigger Cause & Mechanics

The NIC IRP creates a SHA-256 hash using the tuple: Supplier GSTIN + Document Type + Document Number + Financial Year. If an IRN was generated earlier for this exact tuple—even if by another ERP terminal or user—the IRP rejects subsequent requests with Error 2150.

Step-by-Step Resolution Protocol:

1. Do Not Re-Attempt with Modified Dates: Changing the invoice date while keeping the invoice number identical will NOT resolve the duplicate hash.

2. Call the "Get IRN by Details" API: Pass Supplier GSTIN, Doc Type, Doc No, and FY to fetch the signed invoice payload and QR code already on the portal.

3. If Previous Invoice was Cancelled: The GST system permanently burns cancelled invoice numbers. You must generate a brand new invoice with a fresh serial number (e.g., INV-002 instead of INV-001).

5. Error 2175: "Recipient GSTIN is not active"

The IRP validates the recipient's GSTIN against the real-time GSTN registration master. If the recipient has failed to file returns for consecutive tax periods, or if the tax authority initiated suo motu cancellation, the GSTIN status flips to "Suspended" or "Cancelled".

Action for Registered B2B SuppliesContact the buyer to verify their portal status. Goods cannot be dispatched under a B2B e-invoice if the GSTIN is inactive. Dispatch must be held until suspension is formally revoked via Form REG-21.
Unregistered Buyer ReclassificationIf the buyer surrendered their GSTIN and is now operating as an unregistered dealer, the invoice must be issued as a B2C supply (which is exempt from e-invoicing under Rule 48(4)).

6. Error 2182: "HSN code does not exist in master"

The IRP validates all line-item HSN codes against the official Customs Tariff Act, 1975 master schedule maintained by the NIC.

Common Triggers & Fixes for HSN Rejections:

  • Truncated Digits: Submitting a 2-digit or 4-digit HSN code. For entities subject to e-invoicing (turnover > ₹5 Cr), Notification No. 78/2020-Central Tax mandates a minimum of 6 digits for B2B supplies.
  • Obsolete HSN Numbers: Tariff revisions frequently merge or delete legacy 6-digit codes. Verify the latest active code using the "Master Codes -> HSN Codes" search on einvoice1.gst.gov.in.
  • Services SAC vs Goods HSN: Service Accounting Codes (SAC) must strictly start with prefix 99 (e.g., 998311 for IT consultancy). Using non-99 codes for services results in Error 2182.

7. Error 2283: "Distance between PIN codes is not available"

When generating an integrated E-Way Bill (EWB) simultaneously with the e-invoice by populating the EwbDtls block, the IRP queries the NIC motor distance matrix.

The Fix: In your API payload, set "Distance": 0. When set to zero, the NIC portal automatically calculates the motorable highway distance based on its internal GIS mapping database.

If manual distance is provided, it must not exceed a ±10% deviation from the system's pre-calculated route distance; otherwise, Error 2283 or Error 2284 is thrown.

8. Mathematical & Tax Rounding Errors (Error 2194 / 2197)

The IRP performs rigid mathematical checks on invoice line items before issuing an IRN. The following mathematical identities must hold true:

1. AssVal = Σ (Item AssAmt)

2. CgstVal = Σ (Item CgstAmt) [Must equal SgstVal for intra-state]

3. IgstVal = Σ (Item IgstAmt) [For inter-state]

4. TotInvVal = AssVal + CgstVal + SgstVal + IgstVal + CesVal + OtherChrg - RndOffAmt

The Rounding Tolerance Rule: The IRP permits a maximum round-off variance of ±₹2.00 between the sum of line-item taxes and the declared total invoice value. If rounding adjustments exceed ₹2.00, Error 2197 ("Total invoice value doesn't match sum of items") is triggered.

9. The 24-Hour Cancellation Limit & Credit Note Protocol

Within 24 Hours of Generation

An e-invoice with errors can be cancelled on the IRP via the "Cancel IRN" API or portal within exactly 24 hours of creation, provided no active E-Way Bill is associated with it (cancel EWB first).

Beyond 24 Hours: Section 34 Protocol

After 24 hours, the IRP permanently locks the record. The invoice pushes automatically to GSTR-1. You cannot cancel it on the IRP. You must issue a formal Credit Note (with its own e-invoice IRN) under Section 34 of the CGST Act to nullify the erroneous invoice.

10. Master Troubleshooting Matrix: 15 Common Rejection Codes

Error CodeOfficial DescriptionRoot CauseImmediate Fix
2150Duplicate IRNHash already exists in NIC DB for GSTIN+No+FYFetch existing IRN or issue new serial invoice
2175Recipient GSTIN not activeBuyer suspended or cancelled on invoice dateHold dispatch or verify GST portal revocation
2182HSN does not exist in masterObsolete code or less than 6 digitsUse 6/8 digit active code from Tariff master
2283Distance unavailable for PINsOrigin and Destination PINs lack GIS routeSet Distance = 0 for auto-calculation
2194Item taxable value mismatchQty × Unit Rate minus discount ≠ AssAmtRe-verify line-item arithmetic in ERP
2197Total invoice value mismatchRounding variance exceeds ±₹2.00Adjust RndOffAmt node within ₹2.00 tolerance
2144Invalid State CodeState code does not match first 2 digits of GSTINAlign Stcd with GSTIN prefix (e.g. 27 for MH)
2265Invalid vehicle number formatFormat lacks space or standard RTO patternFormat as DL01AB1234 without hyphens/dots

11. Signed QR Code Printing Statutory Requirements

The IRP does not generate or store physical PDF invoices. It returns a cryptographically signed digital string (Base64 QR code payload) and a 64-character IRN string. Under CBIC circulars:

• The physical or digital invoice copy handed to the transporter must display the QR code prominently (minimum 2x2 inches) on the face of the invoice.

• Mobile enforcement officers scan this QR code using the official "NIC E-Invoice Verifier" app without needing active internet to verify digital signature and authenticity.

12. Section 129 Vehicle Detention & Audit Penalties

Severe Repercussions of Non-Compliance:

If an entity mandated to issue e-invoices transports goods with a regular computer-generated invoice lacking an IRN:

  • Legal Non-Existence: Under Rule 48(5), the document is treated as non-existent and the goods are deemed to be travelling without an invoice.
  • Section 129 Detention: Enforcement squads impound the truck and cargo, demanding a penalty equal to 200% of the applicable tax before release.
  • ITC Denial for Buyer: The corporate customer cannot claim Input Tax Credit under Section 16(2)(a), resulting in severe commercial vendor blacklisting.

13. ERP Pre-Validation Action Checklist

✓Implement real-time GSTIN validation in ERP master setup before allowing sales order booking.
✓Enforce 6-digit minimum HSN code length on all B2B item masters.
✓Restrict invoice serial numbers to alphanumeric characters, hyphens, and slashes with maximum 16 characters.
✓Set E-Way Bill auto-distance default to 0 in API middleware to prevent PIN distance mismatches.
✓Configure ERP round-off calculation to cap total rounding adjustments strictly within ±₹2.00.
✓Set automated alerts for invoices generated with errors to ensure cancellation within the strict 24-hour window.

Recommended Video Tutorials & Practical Walkthroughs

Watch these handpicked, expert video guides covering practical compliance, step-by-step procedures, and real-world implementation:

Recommended Video Tutorials & Practical Guides

Master Guide: How to Resolve e Invoicing Errors Part 7
Watch on YouTube
Comprehensive conceptual & regulatory walkthroughWatch on YouTube
Practical Walkthrough: E-INVOICE / IRN
Watch on YouTube
Live application & filing processWatch on YouTube

14. Frequently Asked Questions

How do you fix Error 2150: 'Duplicate IRN, already generated'?↓

Error 2150 occurs because an IRN has already been registered for the combination of Supplier GSTIN, Document Type, Document Number, and Financial Year. You cannot regenerate an IRN with the same invoice number even if the previous invoice was cancelled. To resolve, use the 'Get IRN Details' API to retrieve the existing signed invoice, or issue a fresh invoice with a new unique serial number.

What causes Error 2175: 'Recipient GSTIN is not active'?↓

Error 2175 triggers when the buyer's GSTIN is cancelled, suspended, or inactive in the GSTN master database as of the invoice date. You must check the buyer's status on the GST portal. If suspended, the buyer must revoke suspension, or the transaction must be treated as B2C (if permitted by nature of supply) or postponed until registration is restored.

How do you resolve Error 2182: 'HSN code does not exist in NIC master'?↓

Error 2182 happens when the HSN code entered is either obsolete, less than the required 6 digits (for turnover > ₹5 Cr), or does not match the 8-digit Customs Tariff Master. Cross-verify the HSN code using the 'Search HSN' tool on the e-invoice portal (einvoice1.gst.gov.in) and update your ERP item master.

What is Error 2283: 'Distance between pincodes is not available'?↓

Error 2283 appears when generating an integrated E-Way Bill along with the IRN if the pin-to-pin distance between supplier and recipient is missing in the NIC distance engine. In your JSON payload, set Distance = 0 to trigger automatic calculation, or provide the actual road transit distance manually (within a ±10% tolerance band).

Can an e-invoice with an error be modified or edited on the IRP portal?↓

No. Once an IRN is generated, it cannot be modified or partially edited on the IRP. Taxpayers have a strict 24-hour window from IRN generation to cancel the e-invoice. If the 24-hour window expires, the e-invoice can no longer be cancelled on the IRP; the error must be rectified by issuing a formal Credit Note or Debit Note under Section 34 of the CGST Act.

What are the legal consequences of transporting goods with an invalid or rejected e-invoice?↓

Under Rule 48(5) of the CGST Rules, any invoice issued by an e-invoicing mandatory entity without a valid cryptographically signed IRN and QR code is treated as invalid and non-existent. Goods in transit can be detained under Section 129 with a 200% penalty of tax payable, and the recipient is permanently barred from claiming Input Tax Credit under Section 16(2)(a).

15. Official Documentation & Related Guides

Official statutory references: CGST Rules, 2017 (Rule 48(4), 48(5), 138); Notification No. 13/2020-Central Tax; Notification No. 78/2020-Central Tax; NIC E-Invoice System Schema Specifications (Schema INV-01); and Section 129 of the CGST Act, 2017.

Sponsored SpotlightIndia's #1 MSME Compliance Platform

Automate GST Billing, Inventory, Thermal POS & GSTR-1 Portal JSON Exports

Trusted by Indian shopkeepers, distributors, and Chartered Accountants. Start free with zero setup fees.

Share
G

GST Munshi Technical Architecture & IRP Integration Desk is a specialized editorial research unit at GST Munshi comprising Chartered Accountants, tax litigators, commercial bankers, and policy analysts dedicated to verifying Indian statutory circulars (CBIC, CBDT, RBI, IRDAI, and Ministry Gazettes) into actionable guides.

Recent Guides by GST Munshi Technical Architecture & IRP Integration Desk:

Questions & Discussion

0 Comments

Have a question or feedback about E-Invoicing Error Codes & IRN Generation: NIC Portal Troubleshooting Guide? Ask below. Dedicated discussion thread for this page.

Leave a Comment or Ask a Question
Spam Protected (UGC nofollow) Email is 100% private
All submitted hyperlinks automatically receive rel="nofollow ugc" tags. Zero do-follow backlinks.0 / 2,000

Loading live discussions...

Related Articles

All Guides

More in GST & Tax

View All GST & Tax
100% Free Starter Plan • No Credit Card Required

Ready to Simplify Your GST Billing & Accounting?

Join 10,000+ Indian retailers and SMEs who create invoices, print thermal receipts, and export GSTR-1 in seconds.

Instant WhatsApp Invoice Sharing2" & 3" POS Thermal PrintingOne-Click GSTR-1/3B Govt Exports