Home > Services > A Guide to GST e-Invoice System > JSON in e-invoice

JSON in e-Invoice: Format, Schema and How It Works

JSON (JavaScript Object Notation) is a structured text format used to exchange e-Invoice data between a business system and an Invoice Registration Portal (IRP). Under GST e-Invoicing, invoice data is mapped to the notified e-Invoice schema before it is reported to an IRP.

What Is an e-Invoice JSON File?

An e-Invoice JSON file contains invoice information in a machine-readable structure. It can include supplier and buyer details, document information, item details, taxable values, GST amounts, place of supply and other fields required by the notified schema.

Key Sections in e-Invoice JSON

  • Transaction details
  • Document type, number and date
  • Seller details and GSTIN
  • Buyer details and GSTIN
  • Dispatch and ship-to details where applicable
  • Item details, HSN/SAC, quantity and taxable value
  • CGST, SGST, IGST and cess values where applicable
  • Document totals
  • Payment, reference and additional details where supported

Mandatory and Optional Fields

The notified e-Invoice schema contains both mandatory and optional fields. Mandatory fields must be populated correctly for successful validation, while optional fields are used only when relevant to the transaction.

How Is JSON Used to Generate an e-Invoice?

  1. Create the invoice in your billing, accounting or ERP system.
  2. Map the invoice data to the prescribed e-Invoice schema.
  3. Validate required fields such as GSTIN, document number, date, HSN/SAC and tax values.
  4. Send the data to an authorised IRP through supported software, API, portal or utility.
  5. The IRP validates the request and, if successful, returns the IRN, acknowledgement details and signed QR code.

Do Businesses Need to Create JSON Manually?

Usually, no. Businesses using compatible billing or accounting software can generate the required structured data automatically. Authorised IRPs also provide portal, Excel or bulk-upload utilities that can create or accept JSON files.

Current Ways to Submit e-Invoice Data

  • Integrated billing or ERP software: Sends invoice data directly to an IRP.
  • API integration: Used by eligible systems, GSPs and software providers for automated reporting.
  • IRP web or Excel utility: Useful for businesses that do not have full API integration.
  • Bulk upload: Multiple validated invoice records can be reported together through supported IRP utilities.

There is no need to choose a submission method based on outdated turnover bands such as ₹20 crore–₹500 crore. The correct method depends on your software setup, invoice volume and the facilities supported by the authorised IRP.

Common e-Invoice JSON Validation Errors

  • Invalid or inactive GSTIN
  • Missing mandatory fields
  • Incorrect document number or date format
  • Invalid HSN/SAC
  • Mismatch in taxable value or GST calculations
  • Incorrect place-of-supply or state code
  • Duplicate invoice reporting

What Does the IRP Return?

After successful validation, the IRP returns the Invoice Reference Number (IRN), acknowledgement details, signed invoice information and signed QR code. The QR code must be placed on the invoice shared with the recipient where e-Invoicing applies.

See the e-Invoice format and schema, e-Invoicing API and our main GST e-Invoice guide.

Frequently Asked Questions

What is JSON full form?

JSON stands for JavaScript Object Notation. It is a text-based data format used by software systems to exchange structured information.

Is JSON the e-Invoice itself?

No. JSON is the structured data used for reporting and receiving e-Invoice information. The business can still issue the invoice in its normal readable layout after adding the required IRN and signed QR code.