Understanding GST E-Invoicing, IRN & Signed QR Requirements for Indian B2B Platforms
For Indian businesses exceeding statutory annual aggregate turnover thresholds under GST law, issuing standard PDF invoices is no longer sufficient for B2B transactions—invoices must be registered electronically with a government-authorized Invoice Registration Portal (IRP) to obtain a digitally signed Invoice Reference Number (IRN) and QR code.
1. How the E-Invoicing Data Flow Works
As documented on the official GST E-Invoice Portal (NIC), e-invoicing does not mean generating invoices manually on a government website—it means your ERP or billing software transmits structured JSON in the official e-Invoice schema to an IRP (directly via a licensed GSP/ASP provider):
- Your application validates mandatory fields: supplier & recipient 15-digit GSTIN, document number, financial-year invoice date, HSN/SAC codes, itemized taxable values, CGST/SGST/IGST splits, and state codes.
- The IRP validates uniqueness (supplier GSTIN + document type + document number + FY), computes the 64-character SHA-256 IRN hash, digitally signs the JSON payload, and returns a signed QR string.
- Your billing system stores the
irn,ack_no,ack_dt, and embeds the signed QR code on the printable B2B tax invoice PDF.
| Field / Concept | Technical Purpose | Developer Note |
|---|---|---|
Irn (64-char hash) |
Globally unique fingerprint of the B2B tax invoice | Store immutable alongside invoice PDF snapshot |
SignedQRCode |
Tamper-proof JWT payload verifiable by tax officers | Render directly as QR SVG/PNG (never invent custom QR text) |
| 24-Hour Cancellation Window | IRN can only be cancelled via IRP API within 24 hours | After 24h, software must issue a GST Credit Note instead |
2. Pre-Validating Place of Supply & HSN/SAC Before API Calls
Building client-side and server-side schema checks against the GST Portal Rules—such as verifying GSTIN checksum digits and locking invoice edits once an IRN is generated—keeps accounting records clean and audit-ready.
Mayur Kadam
Principal Software Architect · SaaS, Laravel & Distributed Systems
Leads software architecture, multi-tenant database design, and cloud security reviews for B2B web platforms, ERPs, and high-throughput APIs.