GSTR-1 JSON File Generation India — Step by Step Complete Guide 2026

ERP Group Sep 20, 2026 26 min read GST & Tax Compliance
GSTR-1 JSON File Generation India — Step by Step Complete Guide 2026

When it comes to filing GSTR-1 — the outward supply return that every regular GST-registered Indian business must file monthly or quarterly — there are two pathways:

Pathway 1 — Manual Online Entry:
Log in to the GST portal, navigate to GSTR-1, and manually enter each invoice, each B2C aggregate, each HSN code into the portal's online forms. For a business with 50+ invoices per period, this takes 2-4 hours and introduces multiple opportunities for data entry errors.

Pathway 2 — JSON File Upload (The Recommended Method):
Prepare the GSTR-1 data in the GST-prescribed JSON format, upload the file to the portal, validate, and file. For the same 50+ invoices — this takes 15-20 minutes if the JSON is generated by billing software, or a structured process if generated manually.

The JSON upload method is how GST professionals, accountants, and businesses using billing software file GSTR-1. It's faster, less error-prone, and capable of handling thousands of invoices in a single upload that would be impractical to enter manually.

This complete guide explains everything about GSTR-1 JSON file generation in India — what JSON format is, the complete structure of a valid GSTR-1 JSON file, how to generate it from billing software and from offline tools, how to validate it before upload, the step-by-step portal upload process, and how to troubleshoot common JSON errors.

Whether you're a business owner trying to understand what your CA or accountant means when they say "I'll generate the GSTR-1 JSON," a developer integrating GST filing into your application, or an accountant looking for a systematic JSON generation process — this guide provides the complete picture.

Use ERP Group's Free GST Calendar → to track GSTR-1 filing deadlines and ensure your JSON is uploaded before the due date.

Watch: GSTR-1 Return Filing 2026 | File in One Click, Step by Step

What is a GSTR-1 JSON File — The Basics

Understanding the Technical Foundation

What is JSON

JSON stands for JavaScript Object Notation — a lightweight, text-based data format that is:

  • Human-readable (though dense for large datasets)
  • Machine-processable (computers parse it efficiently)
  • Platform-independent (works on any operating system, any programming language)
  • The standard format for data exchange in web applications globally

A simple JSON example:

json

{
  "name": "ABC Traders",
  "gstin": "07AABCT1234D1Z5",
  "state": "Delhi",
  "is_active": true,
  "invoice_count": 147
}

JSON uses key-value pairs enclosed in curly braces {}, with arrays (lists) in square brackets [].

Why GSTR-1 Uses JSON Format

The GST portal uses JSON for bulk data upload because:

  • A single GSTR-1 JSON file can contain thousands of invoices
  • JSON is validated automatically by the portal's processing engine
  • JSON eliminates formatting inconsistencies (unlike Excel, where someone might type "Mar 26" vs "03-Mar-2026" vs "2026-03-15" for the same date)
  • JSON can be programmatically generated from billing software — enabling automation
  • The portal can process JSON files in seconds regardless of invoice volume

The JSON format is prescriptive: The GST portal requires GSTR-1 JSON to follow an exact schema — specific field names, specific date formats, specific data types, specific value ranges. A JSON that deviates from this schema is rejected.

JSON vs Excel for GSTR-1 Upload

The GST portal offers two offline upload options:

Method Format Best For Limitation
JSON Upload .json file All businesses, software users Requires exact format compliance
Excel Template .xlsx file (GSTN template) Businesses manually preparing data Template limitations, version sensitivity

JSON is generally preferred for:

  • Businesses using billing/ERP software (software generates valid JSON)
  • Large invoice volumes
  • Developers and technical users
  • CA firms managing multiple clients

For complete understanding of GSTR-1 structure and tables, read our guide on GSTR-1 generator guide for small business India.

For automatic GSTR-1 generation, read our guide on how to generate GSTR-1 automatically India.

The GSTR-1 JSON File Structure — Complete Overview

The Architecture of a Valid GSTR-1 JSON

The Top-Level GSTR-1 JSON Structure

A complete GSTR-1 JSON file follows this top-level structure:

json

{
  "gstin": "07AABCT1234D1Z5",
  "fp": "042026",
  "gt": 4532150.00,
  "cur_gt": 4532150.00,
  "b2b": [...],
  "b2cl": [...],
  "b2cs": [...],
  "cdnr": [...],
  "cdnur": [...],
  "exp": [...],
  "nil": {...},
  "hsn": {...},
  "doc_issue": {...}
}

Top-Level Fields Explained:

Field Value Meaning
gstin "07AABCT1234D1Z5" Your 15-character GSTIN
fp "042026" Filing Period: MMYYYY format
gt 4532150.00 Gross Turnover for the period
cur_gt 4532150.00 Curret period turnover
b2b [...] Array of B2B supplies (Table 4)
b2cl [...] Array of B2C large supplies (Table 5)
b2cs [...] Array of B2C small aggregates (Table 7)
cdnr [...] Credit/Debit notes to registered recipients
cdnur [...] Credit/Debit notes to unregistered recipients
exp [...] Export supplies
nil {...} NIL/Exempt supplies summary
hsn {...} HSN-wise summary (Table 12)
doc_issue {...} Document issue summary (Table 13)

Filing Period Format (fp):
The fp field uses MMYYYY format:

  • April 2026 = "042026"
  • January 2026 = "012026"
  • December 2025 = "122025"

For quarterly GSTR-1 (QRMP) — the fp field reflects the last month of the quarter:

  • Q4 FY25-26 (Jan-Mar 2026) = "032026"
  • Q1 FY26-27 (Apr-Jun 2026) = "062026"

For GST return filing dates, use ERP Group's GST Calendar →.

JSON for Each GSTR-1 Table — Explained

The Detailed Structure of Each JSON Array

Understanding JSON Arrays and Objects in GSTR-1 Context

In GSTR-1 JSON:

  • Arrays ([...]) contain multiple items — e.g., the b2b array contains one object per customer
  • Objects ({...}) contain key-value pairs — e.g., each customer object contains their invoice list
  • Nesting creates hierarchy: Customer → Invoices → Invoice Items

This hierarchical structure mirrors the logical organization of GSTR-1 tables.

The JSON File Header — Business Details

The Mandatory Header Fields

Header JSON Structure

The header information at the top level of the JSON identifies the filer and the period:

json

{
  "gstin": "07AABCT1234D1Z5",
  "fp": "042026",
  "gt": 5325000.00,
  "cur_gt": 5325000.00
}

Field specifications:

gstin (required):

  • Type: String
  • Format: 15-character GST Identification Number
  • Validation: Must match the GSTIN of the logged-in taxpayer
  • Error if wrong: "GSTIN mismatch — file doesn't match login credentials"

fp (Filing Period) (required):

  • Type: String
  • Format: MMYYYY (no separator)
  • April 2026 = "042026" (not "04-2026" or "April 2026")
  • Error if wrong: "Invalid period format"

gt (Gross Turnover) (required):

  • Type: Number (decimal)
  • Value: Total invoice value (including tax) for the period
  • Maximum 2 decimal places

For income tax computation on business turnover, use ERP Group's Income Tax Calculator →.

Table 4 JSON — B2B Supplies

The Core JSON Array for B2B Invoices

The b2b JSON Structure

Table 4 (B2B taxable supplies) is represented in JSON as the b2b array. Each element in the array represents one customer, containing all their invoices for the period.

Two-level hierarchy: Customer level → Invoice level

json

{
  "b2b": [
    {
      "ctin": "29AABCM5678E1Z3",
      "inv": [
        {
          "inum": "INV/2026/001",
          "idt": "02-04-2026",
          "val": 118000.00,
          "pos": "29",
          "rchrg": "N",
          "inv_typ": "R",
          "itms": [
            {
              "num": 1,
              "itm_det": {
                "rt": 18,
                "txval": 100000.00,
                "iamt": 0,
                "csamt": 0,
                "camt": 9000.00,
                "samt": 9000.00
              }
            }
          ]
        }
      ]
    }
  ]
}

B2B JSON Field Dictionary

Customer-level fields:

Field Value Meaning
ctin "29AABCM5678E1Z3" Customer's GSTIN (15 characters)
inv [...] Array of all invoices for this customer

Invoice-level fields:

Field Value Meaning
inum "INV/2026/001" Invoice number
idt "02-04-2026" Invoice date (DD-MM-YYYY)
val 118000.00 Total invoice value (inclusive of tax)
pos "29" Place of supply — 2-digit state code
rchrg "N" Reverse charge (N/Y)
inv_typ "R" Invoice type: R=Regular, DE=Deemed Exports, SEWP=SEZ with payment, SEWOP=SEZ without payment
itms [...] Array of line items (typically one per tax rate on invoice)

Item-level fields (within itm_det):

Field Value Meaning
rt 18 Tax rate (5/12/18/28/0)
txval 100000.00 Taxable value
iamt 0 IGST amount (0 for intra-state)
camt 9000.00 CGST amount
samt 9000.00 SGST amount
csamt 0 Cess amount (if applicable)

Key date format note: GSTR-1 JSON dates use DD-MM-YYYY format (not YYYY-MM-DD which is ISO standard). Using the wrong date format is a common error that causes upload failure.

For GST invoicing software that generates correct JSON dates, use ERP Group's GST invoicing system →.

Multi-Rate Invoice JSON

When a single invoice has multiple GST rates (e.g., some products at 12% and some at 18%), the itms array contains multiple items:

json

{
  "inum": "INV/2026/025",
  "idt": "15-04-2026",
  "val": 147600.00,
  "pos": "07",
  "rchrg": "N",
  "inv_typ": "R",
  "itms": [
    {
      "num": 1,
      "itm_det": {
        "rt": 18,
        "txval": 80000.00,
        "iamt": 0,
        "camt": 7200.00,
        "samt": 7200.00,
        "csamt": 0
      }
    },
    {
      "num": 2,
      "itm_det": {
        "rt": 12,
        "txval": 50000.00,
        "iamt": 0,
        "camt": 3000.00,
        "samt": 3000.00,
        "csamt": 0
      }
    }
  ]
}

Total invoice value check: ₹80,000 + ₹50,000 + ₹14,400 + ₹3,000 = ₹1,47,400 ✓ (matches val field)

For GST calculation formulas, read our guide on GST calculation formula for business India 2026.

Table 5 JSON — B2C Large Supplies

Inter-State Consumer Invoices Above ₹2.5 Lakh

The b2cl JSON Structure

B2C large supplies (inter-state consumer invoices above ₹2.5 lakh per invoice) are represented in the b2cl array:

json

{
  "b2cl": [
    {
      "pos": "29",
      "inv": [
        {
          "inum": "INV/2026/047",
          "idt": "05-04-2026",
          "val": 354000.00,
          "itms": [
            {
              "num": 1,
              "itm_det": {
                "rt": 18,
                "txval": 300000.00,
                "iamt": 54000.00,
                "csamt": 0
              }
            }
          ]
        }
      ]
    }
  ]
}

Key differences from b2b JSON:

  • No ctin field (consumer doesn't have GSTIN)
  • pos is at the outer level (state-level grouping)
  • Only iamt (IGST) — B2C large is always inter-state
  • No camt or samt in B2C large (inter-state = IGST only)

For inclusive vs exclusive GST calculation for B2C, read our guide on inclusive vs exclusive GST calculation India.

Table 7 JSON — B2C Small Supplies

Consolidated Consumer Sales by State and Rate

The b2cs JSON Structure

B2C small supplies are consolidated — not invoice-by-invoice but state-wise and rate-wise aggregate:

json

{
  "b2cs": [
    {
      "sply_tp": "INTRA",
      "pos": "07",
      "typ": "OE",
      "rt": 18,
      "txval": 450000.00,
      "iamt": 0,
      "camt": 40500.00,
      "samt": 40500.00,
      "csamt": 0
    },
    {
      "sply_tp": "INTRA",
      "pos": "07",
      "typ": "OE",
      "rt": 5,
      "txval": 200000.00,
      "iamt": 0,
      "camt": 5000.00,
      "samt": 5000.00,
      "csamt": 0
    },
    {
      "sply_tp": "INTER",
      "pos": "29",
      "typ": "OE",
      "rt": 18,
      "txval": 80000.00,
      "iamt": 14400.00,
      "camt": 0,
      "samt": 0,
      "csamt": 0
    }
  ]
}

b2cs field meanings:

Field Value Meaning
sply_tp "INTRA" or "INTER" Supply type: intra-state or inter-state
pos "07" Place of supply state code
typ "OE" Other than E-commerce (OE) or E-commerce (E)
rt 18 GST rate
txval 450000.00 Total taxable value for this combination
iamt 0 Total IGST (0 for intra-state)
camt 40500.00 Total CGST
samt 40500.00 Total SGST

One row per (sply_tp + pos + rt) combination. A business selling in Delhi at rates 5%, 12%, 18% has minimum 3 rows in b2cs (and more if they have inter-state consumer sales).

For retail POS billing that generates b2cs data, use ERP Group's POS software →.

Table 12 JSON — HSN Summary

The Mandatory Product Classification Summary

The hsn JSON Structure

The HSN summary is mandatory for all GSTR-1 filers. It summarizes all outward supplies by HSN code:

json

{
  "hsn": {
    "data": [
      {
        "num": 1,
        "hsn_sc": "7304",
        "desc": "Welded iron/steel tubes and pipes",
        "uqc": "MTR",
        "qty": 1500.00,
        "val": 1770000.00,
        "txval": 1500000.00,
        "iamt": 0,
        "camt": 135000.00,
        "samt": 135000.00,
        "csamt": 0
      },
      {
        "num": 2,
        "hsn_sc": "3401",
        "desc": "Soap, organic surface-active products",
        "uqc": "NOS",
        "qty": 2400.00,
        "val": 94400.00,
        "txval": 80000.00,
        "iamt": 0,
        "camt": 7200.00,
        "samt": 7200.00,
        "csamt": 0
      }
    ]
  }
}

HSN JSON field dictionary:

Field Value Meaning
num 1, 2, 3... Serial number of HSN entry
hsn_sc "7304" HSN code (4/6/8 digits)
desc "Welded tubes..." Product description
uqc "MTR" Unit Quantity Code
qty 1500.00 Total quantity supplied
val 1770000.00 Total value (inclusive of tax)
txval 1500000.00 Total taxable value
iamt 0 Total IGST
camt 135000.00 Total CGST
samt 135000.00 Total SGST

UQC (Unit Quantity Code) — Standard Codes

UQC Code Unit
NOS Numbers/Pieces
MTR Meters
KGS Kilograms
LTR Liters
CBM Cubic Meters
SQM Square Meters
TON Metric Tons
UNT Units
OTH Others

For HSN code identification and correct UQC selection, use ERP Group's HSN/SAC Finder →.

Table 13 JSON — Document Summary

Invoice Number Series Reporting

The doc_issue JSON Structure

Table 13 reports the document number series for all documents issued in the period:

json

{
  "doc_issue": {
    "doc_det": [
      {
        "doc_num": 1,
        "docs": [
          {
            "num": 1,
            "from": "INV/2026-27/001",
            "to": "INV/2026-27/087",
            "totnum": 87,
            "cancel": 3,
            "net_issue": 84
          }
        ]
      },
      {
        "doc_num": 4,
        "docs": [
          {
            "num": 1,
            "from": "CN/2026-27/001",
            "to": "CN/2026-27/012",
            "totnum": 12,
            "cancel": 0,
            "net_issue": 12
          }
        ]
      }
    ]
  }
}

Document type codes (doc_num):

doc_num Document Type
1 Invoices for outward supply
2 Invoices for inward supply (reverse charge)
3 Revised invoices
4 Debit notes
5 Credit notes
6 Receipt vouchers
7 Payment vouchers
8 Refund vouchers
9 Delivery challans for job work
10 Delivery challans for supply on approval
11 Delivery challans in other cases
12 Advances adjustment invoices

Field meanings:

Field Value Meaning
from "INV/2026-27/001" Starting document number in series
to "INV/2026-27/087" Ending document number
totnum 87 Total documents in series
cancel 3 Cancelled documents
net_issue 84 Net issued (totnum - cancel)

For sequential invoice management, use ERP Group's accounting software →.

JSON for Credit Notes and Amendments

Correction Transactions in GSTR-1 JSON

Credit Note JSON (cdnr — To Registered Recipients)

Credit notes issued to GST-registered customers:

json

{
  "cdnr": [
    {
      "ctin": "29AABCM5678E1Z3",
      "nt": [
        {
          "ntty": "C",
          "nt_num": "CN/2026/001",
          "nt_dt": "20-04-2026",
          "val": 23600.00,
          "pos": "29",
          "rchrg": "N",
          "itms": [
            {
              "num": 1,
              "itm_det": {
                "rt": 18,
                "txval": 20000.00,
                "iamt": 0,
                "camt": 1800.00,
                "samt": 1800.00,
                "csamt": 0
              }
            }
          ]
        }
      ]
    }
  ]
}

Key fields:

  • ntty: Note type — "C" for Credit Note, "D" for Debit Note
  • nt_num: Credit/Debit note number
  • nt_dt: Note date (DD-MM-YYYY)

Amendment JSON (at9A — Amended B2B)

Amendments to previously filed B2B invoices:

json

{
  "at9A": [
    {
      "ctin": "29AABCM5678E1Z3",
      "inv": [
        {
          "oinum": "INV/2025/342",
          "oidt": "15-03-2026",
          "inum": "INV/2025/342",
          "idt": "15-03-2026",
          "val": 130000.00,
          "pos": "29",
          "rchrg": "N",
          "inv_typ": "R",
          "itms": [
            {
              "num": 1,
              "itm_det": {
                "rt": 18,
                "txval": 110169.49,
                "iamt": 0,
                "camt": 9915.25,
                "samt": 9915.25,
                "csamt": 0
              }
            }
          ]
        }
      ]
    }
  ]
}

Amendment-specific fields:

  • oinum: Original invoice number (as filed in the previous GSTR-1)
  • oidt: Original invoice date
  • inum: Corrected invoice number (usually same as original)
  • idt: Corrected invoice date (usually same as original)

The corrected val and itms contain the revised (correct) values.

For CA support with GSTR-1 amendments, use ERP Group's CA Partner Program →.

Step 1 — Preparing Invoice Data for JSON Generation

The Data Compilation Stage

The Data Checklist for GSTR-1 JSON Generation

Before generating the JSON file, ensure all this data is compiled and verified:

Invoice Data Required:

  • All sales invoices for the period (complete list)
  • For each invoice: Number, Date, Customer Name, Customer GSTIN (if B2B)
  • For each invoice: Products/services, Quantities, Taxable Values
  • For each invoice: Tax rate per product, Tax amounts (CGST/SGST/IGST)
  • For each invoice: Place of supply (state)

Credit/Debit Notes:

  • All CDNs issued in the period
  • For each CDN: CDN number, Date, Type (Credit/Debit), Original Invoice reference
  • CDN amount (taxable value + tax)

Export Invoices:

  • Shipping bill numbers and dates
  • Port codes
  • Foreign currency values

HSN Summary Data:

  • HSN code for each product sold
  • Total quantities sold per HSN code
  • Total taxable value per HSN code

Document Series:

  • Starting and ending invoice numbers
  • Cancelled invoice numbers

For complete data collection from billing system, use ERP Group's GST invoicing system →.

Step 2 — Choosing Your JSON Generation Method

The Four JSON Generation Approaches

Approach 1 — Automated via Billing/ERP Software (Recommended)

Billing software like ERP Group generates GSTR-1 JSON automatically from invoices. No manual JSON writing needed.

Who should use this: All businesses using GST billing software. This is the most reliable and efficient approach.

Time to JSON: 5-10 minutes (review and validate)

Approach 2 — GST Offline Tool (Provided by GSTN)

The GST Network provides a free offline tool (GST Return Offline Tool) — an Excel-based application that:

  • Has pre-formatted sheets for each GSTR-1 table
  • Allows manual data entry in Excel
  • Converts the entered data to JSON on demand

Who should use this: Businesses without billing software, manual bookkeeping businesses, occasional filers.

Time to JSON: 2-4 hours for 50 invoices (manual entry)

Approach 3 — JSON Editing Software (Technical Users)

Using a JSON editor (VS Code, Notepad++, JSONLint.com) to manually write the GSTR-1 JSON based on the GSTN schema.

Who should use this: Developers testing integrations, technical CA firms.

Not recommended for: Regular business users — manual JSON writing is error-prone and time-consuming.

Approach 4 — GST API (Developers and Large Enterprises)

Push GSTR-1 data directly to the GSTN API from a custom application.

Who should use this: Large enterprises with custom ERP systems, GST Suvidha Providers.

For GSTR-1 automation methods, read our guide on how to generate GSTR-1 automatically India.

For TDS alongside GST returns, use ERP Group's TDS Calculator →.

Step 3 — Generating GSTR-1 JSON via Billing Software

The Automated Generation Process (ERP Group)

The Complete ERP Group GSTR-1 JSON Generation Process

Pre-Generation (1-2 days before due date):

Action 1: Close the books for the period — ensure all invoices, credit notes, and adjustments for the month/quarter are entered.

Action 2: Run the pre-generation validation (ERP Group → GST Returns → GSTR-1 → Validate).

Fix any validation errors shown before proceeding.

Generation:

Action 3: Click "Generate GSTR-1 JSON" (ERP Group → GST Returns → GSTR-1 → Generate → JSON).

What ERP Group does in 60-120 seconds:

Processing 187 invoices...

Classifying transactions:
  B2B (Table 4): 142 invoices → 28 unique customers
  B2C Large (Table 5): 3 invoices
  B2C Small (Table 7): 42 invoices
  
Determining tax types:
  Intra-state (CGST+SGST): 156 invoices
  Inter-state (IGST): 31 invoices
  
Generating HSN summary:
  12 HSN codes identified
  Aggregating quantities and values...
  
Generating document summary:
  Invoice series: INV/2026-27/001 to INV/2026-27/187
  Credit notes: CN/2026-27/001 to CN/2026-27/014
  
Creating JSON structure...
Validating JSON schema...
Validation: PASSED

JSON file created: GSTR1_07AABCT1234D1Z5_042026.json
File size: 87 KB

Action 4: Download the generated JSON file. Review the parallel Excel/PDF preview for a quick sanity check.

What the Generated JSON Looks Like (Excerpt)

json

{
  "gstin": "07AABCT1234D1Z5",
  "fp": "042026",
  "gt": 4532150.00,
  "cur_gt": 4532150.00,
  "b2b": [
    {
      "ctin": "29AABCM5678E1Z3",
      "inv": [
        {
          "inum": "INV/2026-27/001",
          "idt": "02-04-2026",
          "val": 118000.00,
          "pos": "29",
          "rchrg": "N",
          "inv_typ": "R",
          "itms": [
            {
              "num": 1,
              "itm_det": {
                "rt": 18,
                "txval": 100000.00,
                "iamt": 18000.00,
                "csamt": 0,
                "camt": 0,
                "samt": 0
              }
            }
          ]
        }
      ]
    }
  ],
  "b2cs": [
    {
      "sply_tp": "INTRA",
      "pos": "07",
      "typ": "OE",
      "rt": 18,
      "txval": 450000.00,
      "iamt": 0,
      "camt": 40500.00,
      "samt": 40500.00,
      "csamt": 0
    }
  ],
  "hsn": {
    "data": [
      {
        "num": 1,
        "hsn_sc": "7304",
        "desc": "Welded iron/steel tubes",
        "uqc": "MTR",
        "qty": 1500.00,
        "val": 1770000.00,
        "txval": 1500000.00,
        "iamt": 0,
        "camt": 135000.00,
        "samt": 135000.00,
        "csamt": 0
      }
    ]
  }
}

For warehouse and inventory integration, use ERP Group's warehouse management system →.

Step 4 — Generating GSTR-1 JSON via GST Offline Tool

The Manual Method for Businesses Without Billing Software

Downloading and Setting Up the Offline Tool

Step 1 — Download:
Go to gst.gov.in → Downloads → Offline Tools → GSTR-1/IFF Offline Tool. Download the latest version.

Step 2 — Install:
Extract the downloaded zip file. Run the installer. The tool installs on your Windows PC.

Step 3 — Open the Tool:
Launch "GSTR1_Offline_Tool.exe". The tool opens as an Excel-like application with multiple tabs — one for each GSTR-1 table.

Data Entry in the Offline Tool

Tab 1 — B2B Invoices (Table 4):

Enter each B2B invoice as a separate row:

  • Column A: GSTIN of recipient
  • Column B: Invoice number
  • Column C: Invoice date (use DD/MM/YYYY format or as specified)
  • Column D: Invoice value
  • Column E: Place of supply
  • Column F: Reverse charge (Y/N)
  • Column G: Invoice type
  • Column H: Rate
  • Column I: Taxable value
  • Column J: IGST amount
  • Column K: CGST amount
  • Column L: SGST amount

Tab for B2CS (Table 7):

Enter aggregated data:

  • Column A: Supply type (INTRA/INTER)
  • Column B: Place of supply
  • Column C: Rate
  • Column D: Taxable value
  • Column E: IGST
  • Column F: CGST
  • Column G: SGST

Generating JSON from the Offline Tool

Step 1: After entering all data in all relevant tabs, click "Generate File" button (typically in the home or summary tab of the offline tool).

Step 2: The tool validates the data and reports errors. Fix any errors shown.

Step 3: On successful validation, the tool asks for a save location.

Step 4: A JSON file is created — ready for portal upload.

Limitations of offline tool:

  • Manual data entry — error-prone for large volumes
  • GSTIN not automatically validated against portal
  • No automatic tax type determination
  • Date format sensitivity (one wrong date format causes errors)

For HR and payroll management alongside GST operations, use ERP Group's HR & Payroll software → and Salary Calculator →.

Step 5 — Validating the GSTR-1 JSON File

Quality Check Before Portal Upload

Two Levels of JSON Validation

Level 1 — Software Validation (Before Generation):
ERP Group's pre-generation validation runs before creating the JSON — catching data issues (missing GSTINs, missing HSN codes, calculation inconsistencies) while data can still be corrected.

Level 2 — JSON Schema Validation (After Generation):
Validating the generated JSON file against the GSTN schema to ensure the file itself is structurally correct before upload.

Schema Validation Tools

Option 1 — GST Portal's Own Validator:
The portal validates the JSON during upload — this is the ultimate validator, but you only discover errors after uploading.

Option 2 — JSONLint (Online):
jsonlint.com — validates basic JSON syntax (checks that the JSON is well-formed — brackets match, quotes are balanced, no trailing commas). Does NOT validate GSTN-specific schema.

Option 3 — ERP Group's Built-In Validator:
Validates both JSON syntax AND GSTR-1 specific schema requirements before generating the file.

What Schema Validation Checks

A proper GSTR-1 JSON validator checks:

Structural checks:

  • All required fields present (gstin, fp, gt)
  • Arrays are arrays [...], objects are objects {...}
  • No trailing commas (common JSON syntax error)
  • All string fields have quotes around them
  • No missing closing brackets or braces

Data validation:

  • gstin is 15 characters
  • fp is 6 characters in MMYYYY format
  • Invoice dates in DD-MM-YYYY format
  • State codes are 2-digit valid codes
  • Tax rates are valid values (0/5/12/18/28)
  • Tax amounts are consistent with taxable value × rate

Business rule validation:

  • For intra-state (pos = supplier state): iamt should be 0, camt+samt > 0
  • For inter-state: iamt > 0, camt = 0, samt = 0
  • Invoice value ≈ taxable value + tax amounts

For complete validation of GST data before filing, use ERP Group's accounting software →.

Step 6 — Uploading JSON to GST Portal

The Complete Portal Upload Process

Stage 1 — Login and Navigation

Step 1: Open gst.gov.in in your browser.

Step 2: Click "Login" (top right corner). Enter:

  • Username: Your registered username
  • Password
  • CAPTCHA

Step 3: On the dashboard, navigate to:
Returns → Returns Dashboard

Step 4: Select:

  • Financial Year: 2026-27 (or relevant year)
  • Return Filing Period: Select the month (for monthly filers) or quarter-ending month (for QRMP)

Step 5: From the returns list, click on GSTR-1 → Prepare Offline

Stage 2 — The Upload Interface

Step 6: On the GSTR-1 preparation page, look for:

  • "Upload JSON" tab or button
  • It may also be labeled "Bulk Upload"

Step 7: Click the upload button/tab. A file selection dialog opens.

Step 8: Browse to your generated JSON file (e.g., GSTR1_07AABCT1234D1Z5_042026.json). Select it.

Step 9: Click "Upload."

Stage 3 — Processing and Validation

Step 10: Portal processes the uploaded JSON (10 seconds to 3 minutes depending on file size and server load).

Step 11: Two possible outcomes:

Outcome A — Successful Upload:

"File uploaded successfully.
Total Invoices: 187
B2B: 142
B2CS: 45
HSN Summary: 12 records
Processing complete."

Outcome B — Error Report:

"File upload completed with errors:
Row 45: Invalid GSTIN 29AABCM5678E1Z9 - GSTIN not found
Row 78: Invoice date format error - use DD-MM-YYYY
Please download error file and correct."

If errors: Download the error report, correct in your billing system, regenerate JSON, re-upload.

Stage 4 — Preview of Uploaded Data

Step 12: After successful upload, the portal shows a preview of all populated tables:

  • B2B summary (number of customers, total value)
  • B2CS summary
  • HSN summary
  • Document summary

Step 13: Review the preview to confirm the numbers match your expected totals.

For GSTR-1 filing due dates, use ERP Group's GST Calendar →.

Step 7 — Resolving Portal Upload Errors

Common JSON Upload Errors and Their Fixes

Error Category 1 — GSTIN Errors

Error: "GSTIN [XXXXX] not found" or "Invalid GSTIN"

Cause: Customer's GSTIN is:

  • Typed incorrectly in your system
  • Recently cancelled (valid when invoice was created, cancelled now)
  • A test/demo GSTIN that doesn't exist in production

Fix:

  1. Re-verify the customer's GSTIN on gst.gov.in
  2. If cancelled: Reclassify the invoice from B2B to B2C in your system, regenerate JSON
  3. If typo: Correct in customer master, regenerate invoice and JSON

For GSTIN validation procedures, read our guide on GSTIN search and verification guide India 2026.

Error Category 2 — Date Format Errors

Error: "Invalid date format" or "Date should be in DD-MM-YYYY"

Cause: Invoice dates in JSON are not in DD-MM-YYYY format.

Common wrong formats that cause errors:

  • "2026-04-15" (YYYY-MM-DD — ISO format) ❌
  • "15/04/2026" (DD/MM/YYYY with slashes) ❌
  • "Apr 15, 2026" (written format) ❌
  • "15-4-2026" (single digit month) ❌

Correct format:

  • "15-04-2026" (DD-MM-YYYY with hyphens, two-digit month) ✅

Fix: In ERP Group — date formatting is automatic and correct. For manual JSON: find/replace wrong format with correct one.

Error Category 3 — Tax Amount Inconsistency

Error: "Tax amount does not match taxable value × rate"

Cause: Rounding errors or calculation mistakes. Portal checks: txval × rt/100 should approximately equal tax amount (within small tolerance).

Common cause: Rounding at line item level before totaling creates small discrepancies.

Fix: Round only the final totals, not each multiplication individually. Or adjust the tax amount by ±0.01 to match portal calculation.

Error Category 4 — JSON Syntax Errors

Error: "Invalid JSON format" or "JSON parsing error"

Cause: The JSON file itself is malformed — missing bracket, extra comma, unquoted string.

Fix: Run the JSON file through jsonlint.com to identify the exact syntax error. Fix and re-upload.

Prevention: Generate JSON from billing software (not manually) — software guarantees syntactically valid JSON.

Error Category 5 — Duplicate Invoice

Error: "Invoice [number] already exists for GSTIN [X] in the same period"

Cause: Attempting to upload the same invoice twice — either the invoice was already manually entered on the portal, or you're uploading a JSON that overlaps with a previous upload.

Fix: Check if the invoice already appears in the portal's current GSTR-1 draft. If yes — remove the duplicate from your JSON and re-upload.

Step 8 — Filing the Uploaded GSTR-1

Converting Draft to Filed Return

The Filing Process

After successful JSON upload — the GSTR-1 is in "Draft" status. It must be filed (submitted with digital signature) before the due date.

Step 1 — Preview and Verify:
In the GSTR-1 draft page, preview all tables one more time. Verify the totals match your expected outward supply.

Step 2 — Check B2B Entries:
Spot-check 3-5 B2B invoice entries in Table 4 to confirm they're correct.

Step 3 — Submit:
Click "Submit" button (different from "File" — submitting locks the data for filing).

Note: After Submission but before Filing — if you discover a critical error, you may still be able to withdraw and correct (check portal for this option based on current rules).

Step 4 — File:
After submission, click "File GSTR-1."

Two authentication methods:

Method A — EVC (Electronic Verification Code):

  • Click "File with EVC"
  • Portal sends OTP to your registered mobile number
  • Enter OTP
  • GSTR-1 is filed

Method B — DSC (Digital Signature Certificate):

  • Click "File with DSC"
  • Select your DSC certificate from the installed list
  • Authenticate with DSC
  • GSTR-1 is filed

Step 5 — Note the ARN:
After successful filing, the portal shows a success message with the ARN (Acknowledgment Reference Number). Save this as filing proof.

For ROI of automated GSTR-1 filing versus manual, use ERP Group's ROI Calculator →.

JSON Generation for QRMP Filers — IFF JSON

The IFF JSON Structure for Monthly B2B Sharing

How IFF JSON Differs from GSTR-1 JSON

IFF (Invoice Furnishing Facility) allows QRMP filers to share B2B invoices monthly. The IFF JSON is a subset of GSTR-1 JSON:

IFF JSON structure:

json

{
  "gstin": "07AABCT1234D1Z5",
  "fp": "012026",
  "gt": 1250000.00,
  "cur_gt": 1250000.00,
  "b2b": [...],
  "cdnr": [...]
}

Key differences from full GSTR-1 JSON:

  • Only b2b and cdnr arrays (only B2B invoices)
  • No b2cs (B2C small — not applicable to IFF)
  • No b2cl (B2C large — not in IFF)
  • No hsn (HSN summary not in IFF)
  • No doc_issue (document summary not in IFF)

IFF JSON fp field:

  • IFF uses the actual month's period (not quarter-end)
  • January 2026 IFF: "012026"
  • April 2026 IFF: "042026"

IFF upload: Same process as GSTR-1 JSON upload but navigate to IFF instead of GSTR-1 on the portal.

For IFF and QRMP filing dates, read our guide on GST filing calendar for small business India 2026.

Common GSTR-1 JSON Errors and Solutions

The Complete Error Reference

Technical JSON Errors

Error Cause Solution
"Unexpected token at position X" Missing comma, bracket, or quote Run through JSONLint to find exact position
"Expected string but got number" String field has unquoted number (e.g., gstin without quotes) Add quotes: "gstin": "07..." not "gstin": 07...
"Invalid array element" Object instead of array or vice versa Check schema — b2b should be [] not {}
"Unknown field 'XXXXX'" Misspelled field name (JSON is case-sensitive) Check exact field names: "ctin" not "CTIN"

GST-Specific Validation Errors

Error Cause Solution
"GSTIN in JSON doesn't match login" Wrong GSTIN in the gstin field Ensure the gstin field matches your own GSTIN
"Period in JSON doesn't match selected" fp field doesn't match selected filing period on portal Correct fp to match MMYYYY of selected period
"Taxable value cannot be negative" Negative txval in invoice items Use credit notes (cdnr) for negative adjustments, not negative values in b2b
"HSN code not valid" Wrong or non-existent HSN code Verify HSN code using HSN/SAC Finder
"Invoice date is future dated" Invoice date later than the filing date Check and correct invoice dates

For HSN code verification before JSON generation, use ERP Group's HSN/SAC Finder →.

How ERP Group Generates GSTR-1 JSON Automatically

Complete End-to-End JSON Automation

ERP Group — India's AI-Powered GST Billing & Cloud ERP Platform — eliminates every manual step in GSTR-1 JSON generation:

From Invoice to JSON — The ERP Group Flow

Business Activity          ERP Group Action
─────────────────────     ──────────────────────────────────
Create sale invoice     → Invoice stored with GSTIN, HSN, tax
GSTIN auto-validated    → API check: Active/Cancelled?
Tax type determined     → CGST+SGST or IGST from state codes
Credit note issued      → Linked to original invoice
Period ends             → Click "Generate GSTR-1 JSON"
                        ↓
System processes all invoices:
  - b2b array built: invoice-by-invoice for each customer
  - b2cs built: aggregated by state×rate
  - cdnr built: credit notes with invoice references
  - hsn built: aggregated from product master HSN codes
  - doc_issue built: from invoice number series
                        ↓
12-point validation run automatically
                        ↓
JSON file generated in GSTN-prescribed schema
                        ↓
JSON validated against schema
                        ↓
Download GSTR-1 JSON → Upload to GST portal → File

Zero Manual JSON Writing

In ERP Group:

  • You never write or edit JSON manually
  • You never worry about DD-MM-YYYY date formats
  • You never manually aggregate B2C sales by state and rate
  • You never manually compute HSN summaries
  • You never encounter "trailing comma" syntax errors

The JSON is the output of the automation — not something you prepare.

Complete Platform for GSTR-1 JSON Generation

JSON Generation Need ERP Group Solution
Invoice-to-JSON automation GST Invoicing System
GSTIN validation for b2b GST Invoicing System
HSN codes for Table 12 HSN/SAC Finder
Customer GSTIN management CRM Software
Accounting and ITC Accounting Software
Retail B2C for b2cs POS Software
Inventory management Warehouse Management
HR and payroll HR & Payroll Software
GST due date tracking GST Calendar
TDS compliance TDS Calculator
Income tax Income Tax Calculator
ROI calculation ROI Calculator
CA review and support CA Partner Program

Conclusion — Master GSTR-1 JSON Generation for Hassle-Free Compliance

GSTR-1 JSON file generation is the professional, efficient standard for filing outward supply returns in India. Understanding the JSON structure — the b2b array for B2B invoices, b2cs for retail sales, hsn for product summaries, doc_issue for document counts — demystifies a process that intimidates many business owners and accountants.

The Complete JSON Generation Process:

Step 1: Prepare invoice data — all invoices with GSTIN, HSN, tax type, value
Step 2: Choose method — billing software (recommended), offline tool, or API
Step 3: Generate JSON — one click in ERP Group or entry in offline tool
Step 4: Validate — pre-generation validation (ERP Group) or JSONLint check
Step 5: Upload — GST portal → GSTR-1 → Upload JSON
Step 6: Resolve errors — fix and re-upload if portal finds issues
Step 7: File — Submit and authenticate with DSC or EVC

The Key JSON Technical Points:

  • Dates: Always DD-MM-YYYY with hyphens
  • Filing period (fp): MMYYYY without separator
  • Tax type: iamt > 0 for inter-state, camt+samt > 0 for intra-state
  • JSON is case-sensitive: "ctin" not "CTIN" not "Ctin"

Use ERP Group's Free GST Calendar → to track GSTR-1 JSON upload deadlines.

ERP Group's GST invoicing system → generates fully validated, portal-ready GSTR-1 JSON in one click — with automatic GSTIN validation, correct date formatting, accurate HSN summaries, and pre-upload error checking.

Book Your Free Demo — Auto-Generated GSTR-1 JSON

👉 Book a Free Demo → — See ERP Group generate a valid GSTR-1 JSON from invoices in real-time.

👉 Use Free GST Calendar → — Track GSTR-1 filing deadlines. Free.

Related Tools and Guides

© 2026 ERP Group — India's AI-Powered GST Billing & Cloud ERP Platform

Got Questions?

Frequently Asked Questions

A GSTR-1 JSON file is a structured data file in JavaScript Object Notation format that contains all your GSTR-1 data — B2B invoices, B2C sales, credit notes, HSN summary — organized exactly as the GST portal's upload system expects. The GST Network prescribes a specific JSON schema that the file must follow. JSON upload is preferred over manual portal entry for several strong reasons. First — speed: Uploading a JSON file with 200 invoices takes 30 seconds of upload time plus 2-3 minutes of portal processing. Entering the same 200 invoices manually in the portal takes 4-6 hours. Second — accuracy: JSON generated from billing software carries the same data as your invoices — no re-keying, no transcription errors. Manual portal entry re-enters all data creating fresh opportunities for mistakes. Third — completeness: A JSON file simultaneously populates all GSTR-1 tables (B2B, B2CS, HSN summary, Document summary) in one upload. Manual entry requires going to each table separately. Fourth — audit trail: The JSON file itself is a documented record of exactly what was filed. Fifth — error detection: JSON errors are reported comprehensively in a downloadable report — much easier to systematically fix than random portal entry mistakes. For any business with more than 20-30 invoices per period, JSON upload is clearly the better approach. ERP Group's GST invoicing system generates this JSON automatically from your invoices — you never need to write or edit JSON manually.

The GST portal's GSTR-1 JSON schema requires all dates in DD-MM-YYYY format with hyphens as separators. Every invoice date, credit note date, and debit note date in the JSON must follow this exact format. Examples of correct format: "02-04-2026" (April 2, 2026), "15-06-2026" (June 15, 2026), "31-03-2026" (March 31, 2026). All parts must be padded with leading zeros — month and day are always two digits. Common wrong formats that cause portal upload errors: "2026-04-02" (YYYY-MM-DD — international ISO format), "2/4/2026" (D/M/YYYY without padding), "02/04/2026" (DD/MM/YYYY with forward slashes instead of hyphens), "April 2, 2026" (written format), "02.04.2026" (dots instead of hyphens). The filing period field (fp) uses a different format: MMYYYY without any separator. April 2026 is "042026", January 2026 is "012026", December 2026 is "122026". This difference (invoices use DD-MM-YYYY, but fp uses MMYYYY without separator) catches many people off-guard. Billing software like ERP Group automatically formats all dates correctly — this is one of the key advantages of automated JSON generation over manual JSON creation.

The GST portal has file size limitations for JSON uploads. The standard limit for a single GSTR-1 JSON upload is approximately 5 MB per file. For businesses with very high invoice volumes (thousands of invoices), a single period's GSTR-1 JSON may exceed this limit. The solution is to split the upload into multiple JSON files — though this requires understanding the splitting rules. You can split by table: One JSON for B2B invoices (b2b), another for B2CS (b2cs) and HSN (hsn). However, the complete JSON with headers (gstin, fp, gt) must be included in each file. The portal processes multiple uploaded files for the same period cumulatively — adding up the data. Important rule: The same invoice must not appear in multiple uploads for the same period. ERP Group automatically handles this — if a large volume needs splitting, the system splits intelligently without creating duplicates. Practically, for most Indian small and medium businesses (up to 500-1,000 invoices per period), a single JSON file stays well under 5 MB and a single upload is sufficient. A business would need around 5,000-10,000 invoices per month before encountering typical size limits. The JSON file size also depends on data complexity — an invoice with 5 line items at different rates creates more JSON than a single-line invoice, even for the same invoice count.

Yes, it is technically possible to generate GSTR-1 JSON manually, but it's not recommended for most businesses due to the complexity and error risk involved. The three practical options for generating GSTR-1 JSON without specialized billing software are: Option 1 — GST Offline Tool: The GST Network provides a free offline tool downloadable from gst.gov.in. This is an Excel-like application where you enter invoice data in spreadsheet format, and the tool converts it to JSON. This is the recommended method for businesses without billing software — it handles the JSON formatting automatically. The limitation is that you must enter all invoice data manually, which is time-consuming and error-prone for large volumes. Option 2 — GST Suvidha Provider (GSP) Tools: Many GSPs provide web-based tools where you upload an Excel file of invoices and the tool generates the GSTR-1 JSON. Some charge a fee, some are free. Option 3 — Manual JSON writing: For technical users, writing JSON directly using a JSON editor following the GSTN schema documentation. This is not recommended for business users — even small syntax errors like a missing comma cause the entire file to fail validation. If you're currently generating GSTR-1 manually, the ROI of implementing a billing software that auto-generates the JSON is typically very positive from the first year — saving staff hours, reducing errors, and improving compliance reliability. ERP Group's platform provides this capability.

The most common GSTR-1 JSON upload errors fall into six categories. Error 1 — Invalid GSTIN: Cause: A customer's GSTIN in your JSON is cancelled, suspended, or has a typo. Fix: Re-verify the GSTIN on gst.gov.in, update in your billing system, regenerate JSON. This is the most common error — real-time GSTIN validation during invoice creation prevents it. Error 2 — Date format error: Cause: Invoice dates not in DD-MM-YYYY format (e.g., using YYYY-MM-DD). Fix: The fix depends on how the JSON was generated. For billing software: check the date format settings. For manually created JSON: find-and-replace the date format. For GST offline tool: check your date input format. Error 3 — JSON syntax error: Cause: A trailing comma, missing bracket, or unquoted string value in the JSON file. Fix: Upload the JSON to jsonlint.com to identify the exact error location and fix it. Prevention: Use billing software or offline tool — never manually write JSON. Error 4 — Taxable value mismatch: Cause: The taxable value × GST rate doesn't equal the tax amounts in the JSON (rounding errors). Fix: Adjust the tax amount by ₹0.01 to match the portal's calculation. Prevention: Use software that correctly handles rounding in GST calculations. Error 5 — Duplicate invoice number: Cause: Trying to upload an invoice that was already uploaded or entered online on the portal. Fix: Remove the duplicate from your JSON, or delete the previously entered portal entry if that's in error. Error 6 — Period mismatch: Cause: The fp field in the JSON doesn't match the period you selected on the portal before uploading. Fix: Ensure the fp field correctly reflects MMYYYY for your selected period.

Keep reading

All articles
GST & Tax Compliance

GSTR-2B Reconciliation: Fix ITC Mismatches

Nov 17, 2026 · 8 min read
Accounting & Finance Software

CMA Data for Bank Loan: Documents & Format

Nov 17, 2026 · 8 min read
Inventory & Warehouse Management

Warehouse Management System India 2026

Nov 17, 2026 · 32 min read