WFYI logo

Understanding the e-Invoice Format, JSON Schema, and Template in India

India's e-invoicing system, implemented in phases since October 2020, mandates a standardized digital format for eligible businesses to generate invoices. This system requires taxpayers to upload invoice details to an Invoice Registration Portal (IRP) to obtain a unique Invoice Reference Number (IRN). The article outlines the mandatory and optional fields of the e-invoice schema, detailing both the current July 2020 and older January 2020 specifications, alongside the process of e-invoice authorization.

📖 5 min read read🏷️ e-Invoicing

India's Central Board of Indirect Taxes and Customs (CBIC) released the most recent e-invoice schema on July 30, 2020, with the e-invoicing system becoming operational on October 1, 2020. The government progressively expanded e-invoicing requirements to include businesses with a turnover exceeding Rs. 10 crore, effective October 1, 2022. To determine applicability, taxpayers must review their turnover from any financial year starting 2017-18. A standardized invoice format, featuring both essential and optional fields, is available for eligible taxpayers to use with their existing ERP or billing software. These details are then submitted to an Invoice Registration Portal (IRP), like the NIC's e-invoice portal, to generate a unique Invoice Reference Number (IRN) for each document, transforming it into an e-invoice.

Recent Regulatory Updates for e-Invoicing

Several significant updates have been introduced regarding e-invoicing:

  • May 10, 2023: The CBIC announced the sixth phase of e-invoicing, mandating its issuance for taxpayers with an annual turnover of INR 5 crore or more in any financial year from 2017-18, effective August 1, 2023.
  • May 6, 2023: The GST Network postponed the implementation of a 7-day time limit for reporting older e-invoices to IRP portals by three months. A new implementation date is yet to be announced.
  • April 13, 2023: The GSTN issued an advisory stating that taxpayers with an annual turnover of Rs. 100 crore and above must report tax invoices and credit-debit notes to the IRP within seven days of their issue date, starting May 1, 2023.
  • January 30, 2023: Updates to the NIC's e-invoice portal include:
    • Users can select '96-Other Country' as the POS state code for items with HSN codes 9965 and 9968 (related to goods transportation services).
    • Only documents dated on or after October 1, 2021, are processed on the portal.
    • A new error code, 2295, has been added for duplicate requests, supplementing code 2150, indicating an IRN has already been generated and registered by another IRP.

Key Elements and Limitations of e-Invoices

The e-invoice schema incorporates both mandatory and optional fields. Mandatory fields are essential for an invoice to meet the e-invoice standard, while optional fields can be included based on business requirements. Each e-invoice can accommodate a maximum of 1000 line items, which can be extended to 5000 upon special request.

All mandatory fields must be completed for successful e-invoice registration on the IRP. If a mandatory field has no value, it can be reported as 'NIL'. The essential sections include:

  • Fundamental information
  • Supplier identification
  • Recipient identification
  • Detailed invoice items
  • Total document value

The mandatory annexures typically cover:

  • Detailed invoice items
  • Total document value specifics.

e-Invoice Authorization Process

After the Invoice Registration Portal (IRP) validates the submitted data, the seller receives a JSON file containing a unique Invoice Reference Number (IRN), a digitally signed e-invoice, and a QR code. This QR code embeds crucial invoice details.

Each GSTIN will have a unique invoice serial number for a given financial year, which the supplier's ERP system must record. The IRP generates the IRN using the supplier's or document creator's GSTIN, the financial year, and the document's unique serial number.

Suppliers are required to link and store the IRN with each invoice. Storing the IRN in the ERP is vital, as an invoice without a valid IRN is not considered a legal document. The e-invoice schema serves as a comprehensive guide, detailing specifications, examples, and explanations for various invoice fields.

Overview of the Official e-Invoice Schema

The e-invoice schema is structured with the following columns:

S.No.Defined ColumnsMeaning
1Technical field nameThe technical identifier used for the field.
2CardinalitySpecifies whether the field is mandatory or optional, and if it can be repeated.
3Small description of the fieldThe name displayed for the field within the e-invoice.
4Is it mandatory on invoiceIndicates if the field is optional or mandatory for the invoice.
5Technical field specificationDefines limitations such as maximum string length, date format, and decimal places.
6Sample values of the fieldProvides examples to help users understand the field's expected input.
7Explanatory notes of the fieldOffers a detailed explanation of the field's meaning and required information.

Required Fields in the e-Invoice Schema (Dated July 30, 2020)

The latest e-invoice schema, issued in July 2020, specifies 30 mandatory fields:

Sl. no.Name of the fieldList of Choices/ Specifications/Sample InputsRemarks
1Document Type CodeEnumerated List such as INV/CRN/DBNSpecifies the type of document.
2Supplier_Legal NameString Max length: 100The supplier's legal name, as per their PAN card.
3Supplier_GSTINMax length: 15 Must be alphanumericThe Goods and Services Tax Identification Number (GSTIN) of the supplier generating the e-invoice.
4Supplier_AddressMax length: 100The building/flat number, road/street, locality, etc., of the supplier.
5Supplier_PlaceMax length: 50The supplier’s location, such as city, town, or village.
6Supplier_State_CodeEnumerated list of statesThe state must be selected from the most recent list provided by GSTN.
7Supplier PincodeSix digit codeThe postal code (locality/district/state) of the supplier’s location.
8Document NumberMax length: 16 Sample can be “ Sa/1/2019”A unique, sequential number for invoice identification within the business context, timeframe, operating systems, and supplier records. No external identification scheme should be used.
9Preceeding_Invoice_Reference and dateMax length:16 Sample input is “ Sa/1/2019” and “16/11/2020”Details of the original invoice being amended by a subsequent document (e.g., debit or credit note). This is for future expansion of e-versions of such documents under GST.
10Document DateString (DD/MM/YYYY) as per the technical field specificationThe date of invoice issuance. The format in explanatory notes suggests ‘YYYY-MM-DD’, requiring further clarification. Document period start and end dates must also be specified if selected.
11Recipient_ Legal NameMax length: 100The buyer's name, as per their PAN.
12Recipient’s GSTINMax length: 15The buyer's GSTIN must be declared here.
13Recipient’s AddressMax length: 100The building/flat number, road/street, locality, etc., of the recipient.
14Recipient’s State CodeEnumerated listThe state code for the place of supply must be chosen here.
15Place_Of_Supply_State_ CodeEnumerated list of statesThe state must be selected from the most recent list provided by GSTN.
16PincodeSix digit codeThe postal code (locality/district/state) of the buyer, if applicable.
17Recipient PlaceMax length: 100The recipient’s location (city/town/village).
18IRN- Invoice Reference NumberMax length: 64 Sample is ‘a5c12dca8 0e7433217…ba4013 750f2046f229’This field is initially left blank by the supplier during the registration request. A unique number is generated by GSTN after the e-invoice is uploaded and successfully accepted, then an acknowledgement is sent back. The IRN must be displayed on the e-invoice before its use.
19ShippingTo_GSTINMax length: 15The GSTIN of either the buyer or the person receiving the item.
20Shipping To_State, Pincode and State codeMax length: 100 for state, 6 digit pincode and enumerated list for codeThe state, postal code, and state code corresponding to the location where the invoiced goods or services were, or are to be, delivered.
21Dispatch From_ Name, Address, Place and PincodeMax length: 100 each and 6 digit for pincodeDetails (name, address, city/town/village, and postal code) of the entity from which goods are dispatched.
22Is_ServiceString (Length: 1) by selecting Y/NIndicates whether the supply involves services.
23Supply Type CodeEnumerated list of codes Sample values can be either of B2B/B2C/ SEZWP/S EZWOP/E XP WP/EXP WOP/DE XPCode to identify the type of supply, such as business-to-business, business-to-consumer, supply to SEZ/Exports (with or without payment), or deemed export.
24Item DescriptionMax length: 300 The sample value is ‘Mobile’ The schema document refers to this as the ‘identification scheme identifier of the Item classification identifier’The common description used for the item in trade. Further clarity may be needed for describing multiple items under the same HSN code.
25HSN CodeMax length: 8The applicable Harmonised System of Nomenclature (HSN) code for the specific goods or services.
26Item_PriceDecimal (12,3) Sample value is ‘50’The unit price, excluding GST and before any item price discount. Cannot be negative.
27Assessable ValueDecimal (13,2) Sample value is ‘5000’The item's price, exclusive of GST, after any item price discount has been applied (Gross price minus Discount equals Net price, if a cash discount is provided).
28GST RateDecimal (3,2) Sample value is ‘5’The Goods and Services Tax (GST) rate, expressed as a percentage, applicable to the invoiced item.
29IGST Value, CGST Value and SGST Value SeparatelyDecimal (11,2) Sample value is ‘650.00’The individual Integrated Goods and Services Tax (IGST), Central Goods and Services Tax (CGST), and State Goods and Services Tax (SGST) amounts must be specified for each item.
30Total Invoice ValueDecimal (11,2)The invoice's total amount, including GST. This value must be rounded to a maximum of two decimal places.

Required Fields in the Older e-Invoice Schema (Dated January 1, 2020)

The earlier e-invoice schema, notified in January 2020, included 50 mandatory fields:

Sl.No.Name of the fieldList of Choices/Specifications/Sample InputsRemarks
1IRNMax length: 50 Sample: 649b01ftThis unique reference number for the invoice can be generated by the seller or left blank for IRP generation. If generated by the seller, the system validates and registers it. If left blank, the e-invoice system generates one. An invoice is only valid if it has an IRN registered on the e-invoice system.
2Invoice_Type_CodeMax length: 10 Can be one of the following: Reg/SEZP/SEZWP/EXP/EXPWP/DEXPDenotes the type of invoice: Regular, SEZ supplies with payment, SEZ supplies without payment, deemed exports, sale from bonded warehouse, export without payment of tax, or export with payment of tax.
3Invoice NumberMax length: 16 Sample input is ‘Sa/1/2019’A sequential number required for unique invoice identification within the business's context, timeframe, operating systems, and records. No external identification scheme is to be employed.
4Invoice Date(DD/MM/YYYY)The date on which the invoice was issued.
5Invoice_Period_Start_Date(DD/MM/YYYY)No explanation provided in the source.
6Invoice_Period_End_Date(DD/MM/YYYY)No explanation provided in the source.
7Preceeding_Invoice_ReferenceMax length:16 Sample input is ‘Sa/1/2019’Details of the original invoice being amended by a subsequent document, such as a debit or credit note. This provision supports future expansions for e-versions of such documents under GST.
8Preceeding_Invoice_Date(DD/MM/YYYY)The date on which the original invoice was issued.
9Supplier_Legal_NameMax length: 100The supplier's name as it appears on their PAN card.
10Supplier_GSTINMax length: 15 Must be alphanumericThe GSTIN of the supplier who is raising the e-invoice.
11Supplier_Address1Max length: 100The address of the supplier.
12Supplier_StateMax length: 50The state where the supplier is located.
13Supplier_PincodeMax length: 6The postal code of the supplier.
14Billing_NameMax length: 100The trade name of the buyer.
15Billing_GSTINMax length: 15The GSTIN of the buyer.
16Billing_POSMax length: 2The state code for the place of supply.
17Billing_Address1Max length: 100The locality, district, or state of the buyer to whom the invoice is raised or billed, if applicable.
18Billing_StateMax length: 50The state of the buyer.
19Billing_PincodeMax length: 6The postal code of the buyer.
20Payee_NameMax length: 100The name of the person or entity designated to receive payment.
21Payer_Financial_AccountMax length: 18The account number of the payee.
22Mode of PaymentMax length: 6Indicates whether the payment method is Cash, Credit, or Direct Transfer.
23Financial_Institution_BranchMax length: 11The Indian Financial System Code (IFS code) must be provided here.
24Dispatch_From_DetailsInformation regarding the location from which the goods were dispatched.
25List (items)A collection of business terms providing specifics about the goods and services included in the invoice.
26Tax_TotalDecimal (10,2)If a tax currency code is specified, two instances of the tax total are required, but only one with the tax subtotal.
27Paid_amountDecimal (10,2)The aggregate amount that has been paid in advance, rounded to a maximum of two decimal places.
28Amount_due_for_paymentDecimal (10,2)The outstanding balance that needs to be paid, rounded to a maximum of two decimal places.
29Tax_SchemeMax length: 4A mandatory field, typically specifying 'GST'.
30Shipping_To_NameMax length: 60Business terms detailing the name associated with the address where invoiced goods and services were, or are to be, delivered.
31Shipping_To_GSTINMax length: 100Business terms detailing the GSTIN associated with the address where invoiced goods and services were, or are to be, delivered.
32ShippingTo_Address1Max length: 50Business terms providing the primary address line for the delivery of invoiced goods and services.
33ShippingTo_PincodeMax length: 50Business terms providing the postal code for the delivery address of invoiced goods and services.
34ShippintTo_StateMax length: 100Business terms providing the state for the delivery address of invoiced goods and services.
35Subsupply TypeMax length: 2Business terms providing specifics about the type of sub-supply for delivered goods and services.
36Transaction ModeMax length: 2Business terms providing specifics about the mode of transaction for delivered goods and services.
37Company_NameMax length: 60Details the company name from which goods are dispatched.
38Address1Max length: 100Details the primary address line from which goods are dispatched.
39StateMax length: 2Details the state from which goods are dispatched.
40PincodeMax length: 6Details the postal code from which goods are dispatched.
41SLNOIntegerThe serial number for an item, e.g., 1, 2, 3.
42QuantityDecimal (13,3)The quantity of items (goods or services) charged on the invoice line.
43RateDecimal (10,2)The number of item units to which the price applies.
44Assessable ValueDecimal (13,2)The unit price, excluding GST and before any item price discount; cannot be negative.
45GST RateDecimal (3,2)The GST rate, expressed as a percentage, applicable to the invoiced item.
46IamtDecimal (11,2)The IGST amount per item.
47CamtDecimal (11,2)The CGST amount per item.
48SamtDecimal (11,2)The SGST amount per item.
49Total Invoice ValueDecimal (11,2)The invoice's total amount, including GST, rounded to a maximum of two decimal places.
50Batch NameMax length: 20Batch number details, important for certain manufacturers.

Optional fields encompass references to contracts, vendor purchase orders, e-way bill numbers, phone numbers or email IDs, and details of the goods' dispatch location, among others.

The following provides an illustration of an e-invoice, typically generated by ERP software.

The GST portal initially offered two e-invoice templates: one containing only mandatory fields and another with both mandatory and optional fields, both provided in an Excel format.

Further Reading

Frequently Asked Questions

What is the primary purpose of e-invoicing under GST in India?
The main objective of e-invoicing is to standardize the format for business-to-business (B2B) invoices, reduce data entry errors, curb tax evasion, and streamline the GST return filing process for taxpayers in India.
Which types of businesses are currently mandated to issue e-invoices?
The e-invoicing mandate has been phased in based on turnover. Currently, businesses with an aggregate annual turnover exceeding INR 5 crore in any financial year from 2017-18 onwards are required to issue e-invoices.
What is an Invoice Reference Number (IRN), and how is it obtained?
An IRN is a unique identification number generated for every e-invoice by the Invoice Registration Portal (IRP). It is obtained by uploading the invoice details to the IRP, which then validates the data and issues the unique IRN along with a digitally signed e-invoice and QR code.
Can an e-invoice be amended or cancelled after it has been generated?
Once an e-invoice is generated and an IRN is issued, it cannot be directly amended or cancelled on the IRP. Any modifications or cancellations must be done by issuing a credit note or debit note on the GST portal, which should then also be reported as an e-invoice if applicable.
How does e-invoicing simplify GST compliance for businesses?
E-invoicing simplifies compliance by automating the reporting of invoice data to the GST system, which reduces manual efforts in preparing GST returns. It also ensures uniformity in invoice generation, minimizes discrepancies, and facilitates faster input tax credit (ITC) reconciliation.