GSTN / NIC (India) · Financeintermediate
GST e-Invoice JSON (India, IRP schema 1.1)
A sample GST e-invoice JSON in the IRP/NIC schema version 1.1: transaction details, document details, seller and buyer, an item list with HSN and IGST, value totals, and optional e-way bill details. Placeholder GSTINs for testing.
gste-invoiceeinvoice jsonirnirpindiae-way billhsn
Preview
{
"Version": "1.1",
"TranDtls": {
"TaxSch": "GST",
"SupTyp": "B2B",
"RegRev": "N",
"IgstOnIntra": "N"
},
"DocDtls": {
"Typ": "INV",
"No": "ACME/2026/0142",
"Dt": "21/11/2026"
},
"SellerDtls": {
"Gstin": "29AABCA1234A1Z5",
"LglNm": "Acme Technologies Private Limited",
"TrdNm": "Acme Tech",
"Addr1": "12 MG Road",
"Addr2": "Ashok Nagar",
"Loc": "Bengaluru",
"Pin": 560001,
"Stcd": "29",
"Em": "[email protected]"
},
"BuyerDtls": {
"Gstin": "27AABCB5678B1Z3",
"LglNm": "Bluebird Retail LLP",
"Pos": "27",
"Addr1": "4th Floor, Nariman Point",
"Loc": "Mumbai",
"Pin": 400021,
"Stcd": "27"
},
"ItemList": [
{
"SlNo": "1",
"PrdDesc": "Laptop 14-inch",
"IsServc": "N",
"HsnCd": "847130",
"Qty": 10,
"Unit": "NOS",
"UnitPrice": 1000,
"TotAmt": 10000,
"Discount": 0,
"AssAmt": 10000,
"GstRt": 18,
"IgstAmt": 1800,
"CgstAmt": 0,
"SgstAmt": 0,
"CesRt": 0,
"CesAmt": 0,
"TotItemVal": 11800
},
{
"SlNo": "2",
"PrdDesc": "Device setup service",
"IsServc": "Y",
"HsnCd": "998713",
"Qty": 1,
"Unit": "OTH",
"UnitPrice": 5000,
"TotAmt": 5000,
"Discount": 0,
"AssAmt": 5000,
"GstRt": 18,
"IgstAmt": 900,
"CgstAmt": 0,
"SgstAmt": 0,
"CesRt": 0,
"CesAmt": 0,
"TotItemVal": 5900
}
],
"ValDtls": {
"AssVal": 15000,
"CgstVal": 0,
"SgstVal": 0,
"IgstVal": 2700,
"CesVal": 0,
"StCesVal": 0,
"Discount": 0,
"OthChrg": 0,
"RndOffAmt": 0,
"TotInvVal": 17700
},
"EwbDtls": {
"TransId": "29AABCT9999T1Z2",
"TransName": "Speedy Logistics",
"TransMode": "1",
"Distance": 980,
"TransDocNo": "LR-55812",
"TransDocDt": "21/11/2026",
"VehNo": "KA01AB1234",
"VehType": "R"
}
}AI actions
Documentation
Purpose
Show the exact structure the Invoice Registration Portal (IRP) expects when you generate an IRN, so you can build, test and debug e-invoice JSON before uploading.
When to use
Testing an ERP or billing integration against the e-invoice sandbox, preparing a bulk upload, or understanding why the IRP rejected a file.
Required fields
- Version: "1.1"
- TranDtls: TaxSch "GST" and SupTyp (B2B, SEZWP, SEZWOP, EXPWP, EXPWOP, DEXP)
- DocDtls: Typ (INV, CRN, DBN), No (max 16 chars) and Dt (dd/mm/yyyy)
- SellerDtls: Gstin, LglNm, Addr1, Loc, Pin (number), Stcd (state code string)
- BuyerDtls: Gstin (or "URP" for exports), LglNm, Pos (place of supply state code), Addr1, Loc, Pin, Stcd
- ItemList[]: SlNo, IsServc (Y/N), HsnCd, UnitPrice, TotAmt, AssAmt, GstRt, TotItemVal
- ValDtls: AssVal and TotInvVal
Optional fields
- TranDtls.RegRev: "Y" for reverse charge; IgstOnIntra: "Y" for IGST on an intra-state supply
- ItemList[].Qty / Unit: quantity and UQC unit code (NOS, KGS, OTH...)
- ItemList[].IgstAmt or CgstAmt + SgstAmt, CesRt / CesAmt
- DispDtls / ShipDtls: dispatch-from and ship-to addresses when they differ
- PayDtls, RefDtls, AddlDocDtls, ExpDtls: payment, references, attachments, export details
- EwbDtls: transporter and vehicle details to generate the e-way bill with the IRN
Best practices
- Inter-state supply (seller Stcd ≠ buyer Pos) uses IgstAmt; intra-state uses CgstAmt + SgstAmt split equally.
- AssAmt = TotAmt − Discount; TotItemVal = AssAmt + taxes + cess + OthChrg. Totals in ValDtls must equal the sum of items (within the IRP rounding tolerance).
- Dates are strings in dd/mm/yyyy. Pin codes are numbers; state codes are two-digit strings.
- HSN must have at least 4 or 6 digits depending on aggregate turnover; services use SAC codes starting with 99 with IsServc "Y".
- Test against the NIC e-invoice sandbox before production; the IRP schema is versioned, so check the current version on the portal.
Security considerations
- The GSTINs here are placeholders that will not pass checksum validation. Never commit real customer GSTINs, API credentials or auth tokens to a repository.
- IRP API credentials and the session token must stay on the server; never call the IRP from browser code.