Technical

E-Invoicing in India with Odoo: IRN, QR Codes and E-Way Bills

Who must issue GST e-invoices in India, what the IRN and signed QR code are, how the e-way bill fits in, and how Odoo's Indian localisation registers invoices with the government portal.

Kalvyai Engineering · · 7 min read

E-Invoicing in India with Odoo: IRN, QR Codes and E-Way Bills (cover)
On this page

E-invoicing in India does not mean emailing a PDF. It means reporting each B2B invoice to a government Invoice Registration Portal (IRP) before it is valid, and printing what the portal sends back. If you run Odoo and you are above the turnover threshold, your accounting setup has to handle this every day.

This post covers who must comply, what the IRN and QR code are, where the e-way bill fits, and how Odoo's Indian localisation does the work. Thresholds and portal details change through GST notifications, so verify the current figures against the current notifications or with your tax advisor before you rely on them.

Who must issue e-invoices

E-invoicing applies to a GST-registered business whose aggregate annual turnover (AATO) crossed the notified limit in any financial year from 2017-18 onwards. The limit was introduced at a high value and lowered in stages. As of this writing it is ₹5 crore, in force since 1 August 2023.

Two points that catch people out:

  • The test is "any preceding financial year", not just last year. If you crossed the limit once, you stay in scope even if turnover drops later.
  • AATO is calculated on the PAN, across all GSTINs under it. A small branch GSTIN can be in scope because the group is large.

Which documents are covered

E-invoicing covers:

  • Tax invoices for B2B supplies
  • Credit notes and debit notes issued against those supplies
  • Exports, supplies to SEZ units and developers, and deemed exports

B2C invoices are not reported to the IRP. Businesses with aggregate turnover above ₹500 crore have a separate requirement to print a dynamic QR code on B2C invoices.

Who is exempt

Some categories are notified as exempt regardless of turnover, for example certain banking, insurance and financial institutions, goods transport agencies, passenger transport services, and multiplex cinema admissions, along with SEZ units and government departments. If you are in one of these, confirm in writing with your advisor before switching e-invoicing off.

An invoice that should have been e-invoiced but was not registered on the IRP is not treated as a valid invoice. That affects your customer's input tax credit, so they will notice quickly.

What happens when you register an invoice

The flow is the same no matter which software you use:

  1. Your ERP builds a JSON payload in the government's e-invoice schema: supplier, buyer, line items with HSN codes, tax amounts, totals.
  2. The payload is sent to an IRP, usually through a GST Suvidha Provider (GSP) or an API user you created on the portal.
  3. The IRP validates the data: GSTINs, state codes, PIN codes, HSN codes, tax maths, duplicate document numbers.
  4. If it passes, the IRP returns an IRN, an acknowledgement number and date, a digitally signed invoice and a signed QR code.
  5. The data flows on to the GST system, where it pre-fills your GSTR-1 and, through that, your buyer's GSTR-2B.
  6. Your ERP stores the response and prints the QR code and IRN on the invoice.

A trimmed response from the IRP looks roughly like this (field values shortened):

JSON
{
  "AckNo": 112010012345678,
  "AckDt": "2024-05-14 11:32:00",
  "Irn": "a5c12dca80e743321740b0...",
  "SignedInvoice": "eyJhbGciOiJSUzI1NiIs...",
  "SignedQRCode": "eyJhbGciOiJSUzI1NiIs...",
  "Status": "ACT",
  "EwbNo": null
}

The IRN

The Invoice Reference Number is a 64-character hash. It is derived from the supplier GSTIN, the financial year, the document type and the document number. Because of that, the same invoice number cannot be registered twice in the same financial year for the same document type. Your invoice numbering in the ERP must be unique and must not be reused after a cancellation.

The signed QR code

The QR code carries key fields: supplier and buyer GSTIN, document number and date, invoice value, number of lines, main HSN code and the IRN. It is signed by the IRP, so anyone can verify it with the government's verification app. You must print the QR code the IRP returned, not one you generated yourself.

Cancellation and amendment

  • An IRN can be cancelled on the IRP within 24 hours of generation. Partial cancellation is not allowed.
  • After that window, you correct the invoice with a credit note (which is itself e-invoiced) or through the GST portal, not on the IRP.
  • You cannot amend an e-invoice on the IRP. You cancel and reissue, or issue a credit or debit note.
  • There is a time limit for reporting invoices to the IRP for larger taxpayers, counted from the invoice date: since 1 April 2025, taxpayers with AATO of ₹10 crore or more must report within 30 days. Old invoices that miss the window are rejected.

The e-way bill

The e-way bill is a separate requirement about movement of goods, not about invoicing. It is generally needed when goods worth more than ₹50,000 move, whether for a sale or not.

An e-way bill has two parts:

  • Part A: document details, parties, goods, value, HSN.
  • Part B: transport details, such as vehicle number, or transporter ID for later updating.

Validity depends on distance, for example one day for every 200 km for normal cargo.

Where e-invoicing and e-way bills meet: if you send transport details with the e-invoice, the IRP can generate the e-way bill together with the IRN. Part A comes from the e-invoice data, so you only add Part B. If you do not have transport details at invoicing time, you generate the e-way bill later against the IRN, or directly on the e-way bill portal for movements without an invoice (stock transfers, job work, returns).

How Odoo's Indian localisation handles it

Odoo ships an Indian localisation that includes GST accounting, e-invoicing and e-way bill support. The technical modules in recent versions include l10n_in, l10n_in_edi (e-invoice) and l10n_in_edi_ewaybill (e-way bill).

Odoo does not talk to the IRP directly from your server. It sends requests through Odoo's In-App Purchase (IAP) service, which connects to the government system through a GSP. That means:

  • You need IAP credits for the e-invoice and e-way bill services.
  • On the government portal, you create an API user linked to Odoo's GSP.

Setup steps

  1. Install the Indian localisation and the e-invoicing module for your company.
  2. On the e-invoice portal, log in with your GST credentials and create an API user. Choose the option to connect through a GSP and select the GSP Odoo uses.
  3. In Odoo, open the accounting settings and find the Indian e-invoicing section. Enter the API username and password and validate them.
  4. Do the same for e-way bill if you need it. The e-way bill portal has its own API user.
  5. Check that your sales journal is set to send e-invoices.
  6. Buy IAP credits and confirm the balance in Odoo.
  7. Test in the sandbox or test mode first, then switch to production.

Daily flow in Odoo

  1. The user confirms a customer invoice as usual.
  2. Odoo builds the e-invoice JSON from the invoice, partner and product data.
  3. The request is sent, either straight away with a send button or by a scheduled action.
  4. On success, Odoo stores the IRN, acknowledgement details and signed QR code on the invoice. The printed invoice shows them.
  5. On failure, the invoice shows the error returned by the IRP. The user fixes the data and resends.
  6. To cancel within the allowed window, the user enters a cancellation reason and remarks, and Odoo cancels the IRN on the portal.

For e-way bills, the invoice gets transport fields: transporter, mode, vehicle number, distance and so on. Depending on your version, you can also raise e-way bills from delivery orders for movements that are not sales.

Get the master data right before go-live

Most IRP rejections come from master data, not from Odoo. Before going live, check:

  • Customers: valid GSTIN, correct state, 6-digit PIN code that matches the state, and the right GST treatment (regular, composition, SEZ, overseas, consumer).
  • Products: HSN or SAC code on every saleable product, with the number of digits your turnover band requires: 4 digits up to ₹5 crore AATO and 6 digits above it.
  • Company: GSTIN, address and state match the GST registration exactly.
  • Units of measure: mapped to the government's unit codes.

Here is an Odoo shell script we use as a pre-flight check. Field names are from recent versions; confirm them on your database before running.

Python
# Run with: odoo-bin shell -d your_db
Partner = env['res.partner']
Product = env['product.template']

b2b = Partner.search([
    ('l10n_in_gst_treatment', 'in', ['regular', 'composition', 'special_economic_zone']),
])
for p in b2b:
    issues = []
    if not p.vat or len(p.vat) != 15:
        issues.append('GSTIN missing or not 15 chars')
    if not p.state_id:
        issues.append('state missing')
    if not (p.zip and p.zip.isdigit() and len(p.zip) == 6):
        issues.append('PIN code invalid')
    if issues:
        print(f"Partner {p.id} {p.name}: {', '.join(issues)}")

for t in Product.search([('sale_ok', '=', True), ('l10n_in_hsn_code', '=', False)]):
    print(f"Product {t.id} {t.name}: HSN/SAC missing")

This does not check whether a GSTIN is active on the GST portal. Inactive or cancelled buyer GSTINs are a common rejection, so verify key customers separately.

Common rejection causes

  • Duplicate document number: the invoice number was already registered. Often caused by resetting sequences or reusing numbers after a cancellation.
  • PIN code and state mismatch: the buyer's PIN does not belong to the selected state.
  • Invalid or inactive GSTIN: on either side.
  • Tax calculation mismatch: line totals, rounding or discounts do not reconcile with the header totals. Watch global discounts and rounding lines.
  • Wrong tax type for place of supply: IGST used where CGST/SGST was expected, or the other way round. Check fiscal positions.
  • Invoice too old: outside the reporting time limit.

When an invoice fails, fix the source data (partner, product, tax) rather than editing around it, or the next invoice will fail the same way.

The purchase side

Your suppliers' e-invoices feed your GSTR-2B. If you want to match that data against vendor bills in Odoo, our GSTR-2B Purchase Reconciliation app reconciles GSTR-2B against your purchase register to support input tax credit checks.

How Kalvyai can help

We set up and fix Indian localisation in Odoo: e-invoice and e-way bill configuration, master data clean-up, fiscal positions, and custom invoice layouts that keep the IRN and QR code intact. We also build AI agents that work inside Odoo, for example to flag invoices likely to be rejected before they are sent, with human approval and an audit trail on every action.

See our Odoo work at kalvyai.com/odoo, browse our apps at store.kalvyai.com, or contact us to talk about your setup.

Share this article

  • Odoo
  • India GST
  • E-Invoicing
  • E-Way Bill
  • Odoo Localisation
  • ERP Compliance

Kalvyai Engineering · Engineering team

The engineers who build, connect and fix business systems at Kalvyai: Odoo, ERPNext, Shopify and AI agents that work inside them with approvals, budgets and an audit trail.

Comments

No comments yet. Questions and corrections are welcome.

Rate this post or leave a comment

Your rating (optional)
Not rated

Comments appear after an editor approves them. See our privacy notice.

Read next

WhatsApp Coexistence for Odoo 19: Setup and User Guide (cover)User guide
Kalvyai EngineeringOdoo

WhatsApp Coexistence for Odoo 19: Setup and User Guide

How to install, connect and use WhatsApp Coexistence for Odoo 19 so your team keeps replying from the WhatsApp Business app while Odoo logs every message on the same number.

7 min read

Newsletter

Get new guides in your inbox.

Practical notes on Odoo, ERPNext, Shopify and AI agents, written by the engineers who build them. No spam, and you can ask to stop at any time.

Prefer a feed? Subscribe by RSS. We use your email only to send new articles. See our privacy policy.