Skip to content
GST / E-Invoicing

How to Generate an IRN and QR Code Under the E-Invoicing System

A step-by-step guide on how to generate an IRN and QR Code under the e-invoicing system, with technical requirements and practical tips.

18 Aug 20263 min read

Generating an Invoice Reference Number (IRN) and QR Code is a critical step in e-invoicing under GST. This article provides a step-by-step guide on how to generate IRN and QR Code.

What Is IRN?

Invoice Reference Number (IRN) is a unique number generated by the Invoice Registration Portal (IRP) for each invoice. It is also known as the "hash" of the invoice.

Key Features:

  • Unique 64-character alphanumeric code
  • Generated by IRP for each invoice
  • Validates the authenticity of the invoice

What Is a QR Code?

The QR Code is a two-dimensional barcode that contains the IRN and other key invoice details. It is embedded in the invoice.

Contents of QR Code:

  • IRN
  • Invoice number
  • Invoice date
  • Supplier GSTIN
  • Recipient GSTIN
  • Invoice value
  • Tax amount

Step-by-Step Process to Generate IRN

Step 1: Prepare Invoice Data

Prepare the invoice data in the prescribed JSON format. The data must include:

  • Supplier GSTIN
  • Recipient GSTIN
  • Invoice number and date
  • HSN/SAC code
  • Description
  • Taxable value
  • Tax amount (CGST, SGST, or IGST)
  • Place of supply

Step 2: Generate Hash

Generate a hash of the invoice data using the prescribed algorithm (SHA-256).

Step 3: Upload to IRP

Upload the invoice data to the Invoice Registration Portal (IRP) using API integration.

Step 4: IRP Validation

The IRP validates the invoice data:

  • Checks GSTIN validity
  • Checks invoice number uniqueness
  • Checks for duplicate invoices

Step 5: IRN Generation

If validation is successful, the IRP generates a unique IRN.

Step 6: QR Code Generation

The IRP generates a QR code containing the IRN and other details.

Step 7: Return to Supplier

The IRN and QR code are returned to the supplier.

Step 8: Issue Invoice

The supplier issues the invoice with the IRN and QR code.

Technical Requirements

API Integration

Businesses must integrate their ERP or invoicing system with the IRP using APIs.

Authentication

Authentication is required for IRP access:

  • GSTIN-based authentication
  • Digital signature (optional)

Prescribed Format

Invoice data must be in the prescribed JSON format.

Manual vs. Automated Generation

Automated Generation (Recommended)

  • ERP integrated with IRP
  • Automatic upload and IRN generation
  • Reduced errors

Manual Generation

  • Using the GST portal
  • Uploading invoice data manually
  • Time-consuming and error-prone

Common Errors in IRN Generation

Error 1: Duplicate Invoice IRP rejects duplicate invoices with the same invoice number.

Error 2: Invalid GSTIN Invalid GSTIN leads to rejection.

Error 3: Incorrect Data Incorrect data leads to rejection.

Error 4: Technical Issues API integration issues cause delays.

Error 5: Missing QR Code Invoices must include the QR code with IRN.

Best Practices

Ensure ERP Compatibility — Ensure your ERP supports e-invoicing.

Test Integration — Test API integration thoroughly before go-live.

Monitor IRN Generation — Monitor IRN generation regularly.

Train Staff — Train staff on e-invoicing requirements.

Maintain Records — Keep records of IRNs generated.

Seek Professional Guidance — IRN generation has technical complexities; professional advice is recommended.

Generating IRN and QR Code is a critical step in e-invoicing compliance. By understanding the process and implementing the system correctly, businesses can ensure compliance.

Need help with IRN and QR Code generation? Our GST experts provide comprehensive advisory and support.

📧 Email: office@anujdesaiassociates.com 📞 Phone: 9619456656 🌐 Website: https://anujdesaiassociates.com 🔗 LinkedIn: linkedin.com/in/ca-anuj-desai-122547230

Compliance GuideGSTE-InvoicingIRNQR CodeInvoice Registration PortalInvoice Reference NumberInput Tax CreditTax AdvisoryComplianceIndirect TaxE-Invoice GenerationBusiness ConsultingGST ComplianceIndia GSTTax LawCA ServicesAnuj Desai AssociatesMumbaiTax ExpertGST PractitionerIndirect Tax ConsultantTax OptimizationCorporate TaxAPIERPReal-Time ReportingGSTR-1GSTR-3BIRPQR Code Generation
Share

Related insights

Work with ADA

Ready to talk to an advisor?

Book a consultation and get a clear, considered view from a team that handles audit, tax, regulatory and cross-border work under one roof.