Home / Guides / How to Generate a GST E-Invoice
Guide · GST & Compliance

How to Generate a GST E-Invoice in 2026 — A 7-Step Guide for Indian Manufacturers

Indian manufacturers above ₹5 crore turnover must generate a GST E-Invoice for every B2B supply. This guide walks through the seven actual steps — what the IRP expects, how the JSON schema looks, and how to handle the manufacturing-specific cases (multi-line BOM invoices, job-work, branch transfers) that the generic guides skip.

Reading time: 12 min Last updated: 4 May 2026 For: Tax accountants, factory finance heads, ERP admins

Direct Answer

To generate a GST E-Invoice in 2026, you must (1) confirm your aggregate turnover crosses ₹5 crore, (2) prepare your invoice in the GSTN-mandated JSON schema (INV-1), (3) upload it to the Invoice Registration Portal (IRP) at einvoice1.gst.gov.in directly, via API, or through your ERP, (4) receive the 64-character IRN and signed QR code, (5) print the IRN and QR on the buyer copy, (6) share the invoice with the buyer, and (7) let the IRP auto-report it to your GSTR-1 and the buyer's GSTR-2A/2B. Most manufacturers automate steps 2 to 7 inside their accounting or ERP software.

Who Must Generate E-Invoices in 2026?

The e-invoice mandate started in October 2020 for businesses above ₹500 crore turnover and has been progressively widened. The current thresholds:

Aggregate turnover means PAN-level turnover across all GSTINs in India for any financial year from 2017-18 onwards. Once you cross the threshold in any year, you remain in the mandate even if turnover later drops.

Exempt categories (do not need e-invoice even above the threshold): SEZ units (not developers), banks, insurers, NBFCs, GTAs, passenger transport, multiplex services, and registered persons under Rule 14 (specified composition).

The 7-Step E-Invoice Generation Process

Below is the official process. Steps 2 to 5 are typically automated by your ERP or accounting software — but you should understand each step so you can debug a failed e-invoice when it happens (and it will).

1

Register your GSTIN on the Invoice Registration Portal

Visit einvoice1.gst.gov.in, click Registration, and enter your GSTIN. The portal sends an OTP to the mobile and email registered against the GSTIN; enter the OTP and create your IRP user-id and password. Each GSTIN registers separately even if you share a PAN.

If you plan to use an API integration (which is what every ERP including OEMup does), also generate API user credentials under API Registration. You will need a static IP whitelisted; coordinate with your IT team.

2

Prepare the invoice in the GSTN JSON schema (INV-1)

The GSTN publishes the e-invoice JSON schema as INV-1 (currently version 1.1). Every e-invoice must contain a seller block with GSTIN and address, a buyer block with GSTIN and place of supply, a document block with type / number / date, an item list with HSN codes and taxable value, and a tax totals block.

A minimal sample looks like this (manufacturer with a 2-line invoice for a pump and a motor):

{
  "Version": "1.1",
  "TranDtls": { "TaxSch": "GST", "SupTyp": "B2B" },
  "DocDtls": { "Typ": "INV", "No": "INV/2026/0418", "Dt": "04-05-2026" },
  "SellerDtls": { "Gstin": "24ABCDE1234F1Z5", "LglNm": "Acme Pumps Pvt Ltd", "Loc": "Rajkot", "Pin": 360001, "Stcd": "24" },
  "BuyerDtls": { "Gstin": "27FGHIJ5678K2Z9", "LglNm": "Bharat Industries", "Pos": "27", "Loc": "Pune", "Pin": 411001, "Stcd": "27" },
  "ItemList": [
    { "SlNo": "1", "PrdDesc": "Centrifugal Pump 5HP", "HsnCd": "84137010", "Qty": 2, "Unit": "NOS", "UnitPrice": 42000, "TotAmt": 84000, "GstRt": 18, "IgstAmt": 15120, "TotItemVal": 99120 },
    { "SlNo": "2", "PrdDesc": "Induction Motor 3HP", "HsnCd": "85015220", "Qty": 2, "Unit": "NOS", "UnitPrice": 28500, "TotAmt": 57000, "GstRt": 18, "IgstAmt": 10260, "TotItemVal": 67260 }
  ],
  "ValDtls": { "AssVal": 141000, "IgstVal": 25380, "TotInvVal": 166380 }
}
3

Upload the JSON to the IRP

Three upload paths exist:

  • Manual upload — log in to einvoice1.gst.gov.in, paste the JSON, click upload. Practical only for very low volume (under 5 invoices/day).
  • Direct API — your ERP calls the IRP API directly using your registered credentials. Requires whitelisted static IP.
  • GSP / ASP route — your ERP calls a GST Suvidha Provider (Cygnet, Masters India, ClearTax, IRIS, etc.) which forwards to the IRP. No static-IP requirement; typical for cloud ERPs.

OEMup uses the GSP route by default — no IP whitelisting needed and it works from a tablet on the shop floor.

4

Receive the IRN and signed QR from the IRP

If the JSON validates, the IRP returns within 1–2 seconds a JSON containing the IRN (64-character SHA256 hash), the signed QR (Base64 string of the JWT signed by the IRP's private key), and an acknowledgement number. Save all three against the invoice.

If the JSON fails validation, the IRP returns a list of error codes. See the common errors table below.

5

Print the IRN and QR on the buyer copy

Under Rule 48(4), the invoice you give the buyer must carry the IRN (printed as text) and the signed QR (printed as a 2D code). Without these, the invoice is not a valid tax document and the buyer cannot claim ITC against it.

Place the QR somewhere scannable — top-right or bottom of the invoice are conventional. Quiet zone of at least 2mm around the QR is recommended.

6

Share the invoice with the buyer

The signed PDF (or printout) goes to the buyer by email, WhatsApp, or courier. Buyers can verify the IRN authenticity at einvoice1.gst.gov.in by entering the IRN, or by scanning the QR with the GST Verify app.

7

Auto-report to GSTR-1 and the buyer's GSTR-2A/2B

The IRP forwards the e-invoice to GSTN, which auto-populates your GSTR-1 (outward supplies) and the buyer's GSTR-2A and 2B (inward supplies). When you file GSTR-1, you only verify what the IRP has already pushed — you do not re-enter the invoice. This is the biggest hidden benefit of e-invoice: GSTR-1 reconciliation drops from days to minutes.

Skip the 7 steps — let OEMup auto-generate every E-Invoice for you

OEMup posts the JSON, fetches the IRN, embeds the QR, and reports to GSTN — all in the background, included in every plan. No Connector. No add-on.

Book a Demo →

Common E-Invoice Errors and How to Fix Them

Ten error codes account for ~95% of failed e-invoice generations. Here is the quick reference:

CodeMeaningFix
2150Duplicate IRN for the same document numberThe same INV number was already submitted. Use a fresh INV number; you cannot regenerate an IRN against the same number.
2172Invalid GSTIN of buyer / sellerGSTIN format wrong, or the GSTIN is cancelled/inactive. Verify on GST portal > Search Taxpayer.
2176HSN code does not existHSN code is invalid or fewer digits than required (8-digit mandatory above ₹5cr turnover for B2B).
2189Document date cannot be future-datedSet DocDt to today or earlier. The IRP rejects future dates.
2193Invalid place of supplyPos must be the buyer's state code (2-digit). Common error: writing buyer state code as buyer pincode.
2210Tax amount mismatch (CGST + SGST not equal to GstRt × AssVal)Recompute tax; rounding to 2 decimal places per line item is required.
2233Total invoice value mismatchTotInvVal must equal AssVal + IgstVal + CgstVal + SgstVal + CessVal − Discount + RoundOff. Validate the math.
2244Item value mismatchTotItemVal per line must equal Qty × UnitPrice + IgstAmt + CgstAmt + SgstAmt + CesAmt.
2265Pin code does not match stateBuyer pin code's first 2 digits do not match the state code. Common with Delhi (110) vs Haryana (12x).
2272Document type invalid for B2CYou set SupTyp = B2C but B2C is not allowed under e-invoice. Change to B2B / EXP / SEZWP / DEXP as applicable.

Manufacturer-Specific Tips

Multi-line BOM invoices

Manufacturers often invoice a finished product whose BOM has 50+ raw components. The e-invoice JSON allows up to 1000 line items, so this is not a hard limit — but the buyer typically wants the finished SKU on the invoice, not every component. Best practice: invoice the finished product as one line item, and keep the BOM as an internal record. The HSN you put on the invoice line is the HSN of the finished goods, not the raw material.

Branch transfers and stock transfers

Inter-state stock transfers between two GSTINs of the same legal entity are treated as SUPLY under GST and require an e-invoice. SupTyp is B2B, with seller GSTIN as the despatching branch and buyer GSTIN as the receiving branch. Intra-state transfers between two godowns of the same GSTIN are not supplies and do not need an e-invoice.

Job-work invoices

The Section 4(5)(a) job-work challan is not an invoice and does not need an IRN. But when the job-worker raises a tax invoice for the conversion charges (the value-add), that invoice does need an e-invoice if the job-worker is above ₹5 crore. The principal manufacturer also needs an e-invoice when raising the principal-to-job-worker invoice if any sale of materials is involved.

Returns and reverse invoices

For sales returns above ₹5 crore turnover, issue a credit note with SupTyp=B2B and DocTyp=CRN. The credit note gets its own IRN and reduces the buyer's ITC and your output tax. Do not delete or reverse the original e-invoice — that is not a permitted operation.

⚠️
The 24-hour cancellation window

An e-invoice can only be cancelled within 24 hours of generation, and only if the buyer has not accepted it in their GSTR-2A. After 24 hours, you must use a credit note. This is the most common compliance mistake — set up a daily check on cancellations within your shift.

How OEMup Automates the Whole Thing

For OEMup users, the entire 7-step process collapses to clicking Save Invoice. Behind the scenes:

  1. OEMup builds the INV-1 JSON from the invoice you saved.
  2. OEMup calls the IRP via its GSP integration, returns within 2 seconds.
  3. OEMup embeds the IRN and signed QR on the printed PDF.
  4. OEMup logs the acknowledgement number against the invoice for audit.
  5. If the IRP returns an error, OEMup surfaces the error code with a one-line explanation.

Same flow for credit notes, debit notes, branch transfers, exports, and SEZ supplies. No add-on charge, no Connector, no Windows machine running in the background.

Stop manually generating e-invoices

OEMup includes native e-invoice and e-way bill in every plan. Book a demo and see your own invoice get IRN'd live on the call.

Get a Demo →

Frequently Asked Questions

What is the e-invoice turnover threshold in 2026?
As of 2026, businesses with aggregate turnover above ₹5 crore in any financial year from 2017-18 onwards must generate e-invoices for B2B supplies, exports, and credit/debit notes. The threshold has been progressively lowered from ₹500 crore (2020) to ₹5 crore (Aug 2023), and any further reduction is announced at the GST Council.
Is e-invoice required for B2C sales?
No. E-invoice is mandatory only for B2B supplies, exports, deemed exports, SEZ supplies, and credit/debit notes against B2B invoices. B2C sales remain outside the e-invoice mandate but a Dynamic QR code is required for B2C invoices if turnover exceeds the prescribed threshold.
What is an IRN and why is it 64 characters?
The IRN (Invoice Reference Number) is a unique 64-character SHA256 hash generated by the IRP from the supplier GSTIN, document number, document type, and financial year. It is the digital fingerprint of the invoice and cannot be regenerated for the same combination.
Can I generate an e-invoice from Tally?
Yes. TallyPrime supports e-invoice via the Connector with an active TSS subscription. The flow: post the invoice in Tally, click e-invoice generation, the Connector calls the IRP and returns the IRN and QR which Tally embeds. OEMup performs the same flow natively in the cloud without any add-on or Connector.
What happens if I make a mistake in an e-invoice?
An IRN cannot be edited. You can either cancel the e-invoice within 24 hours of generation (only if the recipient has not accepted it in their GSTR-2A/2B) or issue a credit note and a fresh e-invoice if the 24-hour window has passed.
Do I need a Digital Signature Certificate (DSC) to generate an e-invoice?
No. The IRP digitally signs the IRN and QR on your behalf. A DSC is only required if you choose to upload the JSON manually through the IRP web portal and want to authenticate that upload. ERP/API integrations do not need a DSC.
Can a manufacturer with multi-line BOM invoices use e-invoice?
Yes. There is no limit on the number of line items per e-invoice (the JSON schema supports up to 1000 line items). Manufacturers with long BOM-driven invoices simply post each component or finished SKU as a separate line. The IRP processes it as one document with one IRN.
Is e-invoice required for job-work challans?
No. Job-work challans under Section 4(5)(a) are not invoices and do not require an IRN. However, when the job-worker raises a tax invoice for conversion charges (the value-add), that invoice does require an e-invoice if the job-worker's turnover crosses the threshold.

Next Steps

Related reading: OEMup vs Tally for manufacturers · 5 things Tally cannot do · OEMup accounting module