GST E-Invoicing India: Complete Implementation Guide for Businesses
What Is E-Invoicing and Why It Matters
E-invoicing under GST is not the generation of invoices using software (which most businesses already do). Rather, it is a system of real-time reporting and authentication of invoices by the government's Invoice Registration Portal (IRP). When a business generates a B2B invoice, the invoice data is transmitted to the IRP in a standardized JSON format. The IRP validates the data -- checking GSTIN validity, HSN code accuracy, and mathematical correctness of tax calculations -- and if everything passes validation, it generates a unique Invoice Reference Number (IRN), creates a QR code containing key invoice details, digitally signs the invoice, and returns the authenticated invoice to the supplier. Only after this authentication is the invoice considered valid under GST law.
The e-invoicing system was introduced with three primary objectives. First, to create real-time visibility into business transactions, enabling the government to detect and prevent tax evasion more effectively. By capturing invoice data at the point of generation, the system eliminates the gap between transaction occurrence and return filing, making it much harder to suppress sales or create bogus invoices. Second, to reduce the compliance burden on taxpayers by auto-populating GSTR-1 (outward supply details) and the e-way bill system from the e-invoice data, eliminating the need for manual data entry across multiple platforms. Third, to standardize invoice formats across India, ensuring interoperability between different business systems and simplifying B2B reconciliation.
Since its introduction in October 2020 for businesses with turnover above Rs 500 crore, e-invoicing has been progressively expanded. The threshold was reduced to Rs 100 crore in January 2021, Rs 50 crore in April 2021, Rs 20 crore in April 2022, Rs 10 crore in October 2022, and Rs 5 crore in August 2023. As of 2026, the Rs 5 crore threshold covers the vast majority of significant B2B transactions in India. There are ongoing discussions about further reducing the threshold, and businesses should plan for eventual universal applicability.
Applicability and Threshold Rules
E-invoicing is mandatory for all GST-registered businesses whose aggregate turnover exceeds Rs 5 crore in any financial year from 2017-18 onwards. The crucial point here is the phrase "in any financial year" -- once a business crosses the Rs 5 crore threshold even once, it is permanently subject to e-invoicing requirements, even if its turnover drops below Rs 5 crore in subsequent years. Aggregate turnover is calculated on the basis of all supplies made using the same PAN, across all GSTINs registered under that PAN, on an all-India basis.
Documents Covered by E-Invoicing
E-invoicing applies to the following document types: B2B tax invoices (supplies between two registered businesses), B2G invoices (supplies to government departments and entities), export invoices (supplies to recipients outside India), supplies to Special Economic Zone (SEZ) units and developers, and credit notes and debit notes issued in relation to any of the above document types. Importantly, e-invoicing does NOT apply to: B2C invoices (supplies to unregistered consumers), import documents (bill of entry handled by customs), delivery challans, bills of supply (issued for exempt or nil-rated supplies), and invoices issued by specific exempt categories.
Exempt Categories
Certain categories of registered persons are exempt from e-invoicing regardless of their turnover. These include: insurers and banking companies including NBFCs, goods transport agencies (GTAs), registered persons supplying passenger transportation services, persons supplying services by way of admission to exhibition of cinematograph films in multiplex screens, and SEZ units (though supplies to SEZ from outside require e-invoicing by the supplier). These exemptions are specified in the relevant notifications and can be changed by the government, so businesses in these categories should stay updated on any changes to their exempt status.
E-Invoicing Applicability Decision Matrix
| Scenario | E-Invoice Required? | Notes |
|---|---|---|
| B2B supply, turnover above Rs 5 cr | Yes | Standard e-invoicing required |
| B2C supply, any turnover | No | E-invoicing not applicable for B2C |
| Export invoice, turnover above Rs 5 cr | Yes | Required for all export invoices |
| Credit note to registered person | Yes | Credit notes must also be e-invoiced |
| Supply by banking company | No | Exempt category |
| Delivery challan | No | Not covered under e-invoicing |
IRP Portal Registration and Usage
The Invoice Registration Portal (IRP) is the central system through which all e-invoices are authenticated. The NIC (National Informatics Centre) operates the primary IRP, accessible at einvoice1.gst.gov.in. Additional IRPs have been authorized to handle the increasing volume of e-invoice transactions. Understanding how to register on the IRP and use it effectively is the first practical step in e-invoicing compliance.
Step-by-Step IRP Registration
Step 1: Visit einvoice1.gst.gov.in and click on "Registration" followed by "e-Invoice Enablement." Enter your GSTIN. The system checks your eligibility based on the turnover threshold. If eligible, the system enables e-invoicing for your GSTIN. Step 2: For API access (required for automated ERP integration), navigate to "API Registration" on the portal. You need to provide your GSTIN, contact details, and the IP addresses from which API calls will originate. The system generates API credentials (Client ID and Client Secret) that are used for OAuth 2.0 authentication. Step 3: Test in the sandbox environment before going live. The sandbox portal (einvoice1-sandbox.nic.in) mirrors the production environment and allows you to test your API integration without affecting actual data. Step 4: After successful sandbox testing, switch to the production API endpoints and begin generating live e-invoices.
Generating E-Invoices via the Web Portal
For businesses with low B2B invoice volumes that do not require API integration, the IRP provides a web-based interface. Log into the portal with your GSTIN and password, navigate to "E-Invoice" and select "Generate New." You can either manually enter invoice details in the web form or upload a bulk JSON file containing multiple invoices. The web form guides you through all mandatory fields including supplier details, buyer details, invoice details, item details, and value details. After submission, the system validates the data, generates the IRN, creates the QR code, and provides a download link for the signed e-invoice. For bulk uploads, the system processes all invoices in the file and provides a summary report showing successful and failed invoices with error details.
JSON Schema and Data Fields
The e-invoice JSON schema defines the standardized format for transmitting invoice data to the IRP. Understanding the schema structure is essential for both API integration and troubleshooting validation errors. The schema is organized into several sections, each containing specific mandatory and optional fields.
Schema Structure Overview
The e-invoice JSON schema contains the following major sections: Version (schema version number), TranDtls (transaction details including supply type and category), DocDtls (document details including invoice type, number, and date), SellerDtls (supplier GSTIN, legal name, trade name, address, and contact details), BuyerDtls (buyer GSTIN, legal name, address, and place of supply), DispDtls (dispatch details if goods are dispatched from a location different from the seller's address), ShipDtls (shipping details if goods are shipped to a location different from the buyer's address), ItemList (array of line items with HSN/SAC code, quantity, unit, rate, taxable value, and tax amounts), ValDtls (total invoice value including taxable value, CGST, SGST, IGST, cess, discount, and other charges), PayDtls (payment details including mode, bank account, and payment terms), RefDtls (reference details including previous invoice references, contract details), AddlDocDtls (additional document references), and EwbDtls (e-way bill details if applicable).
Critical Mandatory Fields
Certain fields cause the highest rejection rates when incorrect. The supplier and buyer GSTIN must be valid and active on the GST portal. The invoice number (DocNo) must follow the format: alphanumeric, maximum 16 characters, allowing only specific special characters (slash, dash). The HSN code must be at the correct level of detail (4 digits for turnover up to Rs 5 crore, 6 digits above Rs 5 crore). Tax rates must match the applicable rates for the declared HSN/SAC code. Mathematical calculations must be precise: the item-level taxable value multiplied by the tax rate must equal the tax amount, and the sum of all item-level values must equal the invoice-level totals. Any rounding differences are rejected by the IRP.
Common Validation Errors
The most frequent validation errors encountered during e-invoice generation include: duplicate IRN (attempting to generate an e-invoice for an invoice number that already has an IRN), invalid GSTIN (buyer or seller GSTIN is inactive or cancelled), HSN code mismatch (HSN code not matching the prescribed master list), tax rate mismatch (tax rate declared does not match the rate applicable for the HSN/SAC code), value computation errors (item-level calculations not matching totals), invalid document number format (special characters or length exceeding 16 characters), and place of supply errors (place of supply code not matching the state code). The IRP returns specific error codes for each validation failure, enabling targeted correction.
ERP Integration Strategies
For businesses generating more than a handful of B2B invoices, automating the e-invoice process through ERP integration is essential. Manual generation through the web portal is practical only for very low volumes. There are three primary integration approaches, each suited to different business sizes and technology capabilities.
Direct API Integration
Direct API integration connects your ERP or billing system directly to the IRP using REST APIs with OAuth 2.0 authentication. This approach offers the lowest latency (invoice authentication in under 2 seconds), full control over the integration logic, and no dependency on third-party intermediaries. The typical API flow is: your system calls the authentication API to obtain an access token (valid for a specified period), then calls the IRN generation API with the invoice JSON payload, receives the response containing the IRN, QR code, and signed invoice data, and stores these in your system. Additional APIs are available for cancellation, IRN status checking, and bulk generation. Direct integration requires in-house or contracted development capability and is best suited for larger businesses with dedicated IT teams. Most popular ERP platforms including SAP S/4HANA, Oracle ERP Cloud, Microsoft Dynamics 365, and Tally Prime have built-in e-invoicing modules or certified add-ons that handle the API integration.
Integration via GST Suvidha Provider (GSP)
GSPs are government-authorized intermediaries that provide a layer of abstraction between taxpayer systems and government portals. Using a GSP, your ERP sends invoice data to the GSP's platform, which then communicates with the IRP on your behalf. The advantages of the GSP approach include simplified integration (the GSP handles authentication, retry logic, and error handling), additional features like invoice analytics and reconciliation tools, and managed service reliability (GSPs maintain uptime and handle API version changes). This approach is suitable for mid-sized businesses that want reliable e-invoicing without building and maintaining direct API integration. Multiple GSPs are authorized by the GSTN, and they typically charge per-invoice or subscription-based fees.
Application Service Provider (ASP) Approach
ASPs provide web-based or cloud-based applications that offer e-invoicing as a service. Instead of integrating at the API level, businesses can use the ASP's platform to generate and manage e-invoices. Data can be uploaded to the ASP platform via Excel/CSV files, web forms, or simple integrations with accounting software. This approach requires the least technical capability and is ideal for smaller businesses with limited IT resources. The ASP platform handles all communication with the IRP, stores e-invoice records, and provides dashboard views for monitoring and reporting. Many popular cloud accounting platforms like Zoho Books, ClearTax, and Saral GST function as ASPs for e-invoicing.
Practical Implementation Steps
Implementing e-invoicing requires a structured approach that covers system readiness, process changes, testing, and go-live management. The following implementation roadmap outlines the key activities and their typical timelines.
Phase 1: Assessment and Planning (2-3 Weeks)
Begin by assessing your current invoicing process: how many B2B invoices do you generate monthly, what ERP or billing software do you use, who are the key stakeholders involved in the invoicing process, and what is your timeline for compliance. Determine your integration approach (direct API, GSP, or ASP) based on volume, technical capability, and budget. Identify all GSTINs under your PAN that are subject to e-invoicing and register each on the IRP portal. Map your existing invoice data fields to the e-invoice JSON schema and identify any gaps. Common gaps include missing HSN codes at the required level of detail, invoice number formats that do not comply with the 16-character alphanumeric requirement, and address fields that are not structured according to the schema requirements.
Phase 2: System Configuration and Development (3-4 Weeks)
Configure your ERP or billing system to generate invoice data in the e-invoice JSON format. This includes updating the HSN/SAC master to include all codes at the required level of detail, configuring invoice number series to comply with format requirements, setting up the API connection (credentials, IP whitelisting, authentication flow), building the JSON payload generation logic, implementing the response handling logic (storing IRN, QR code, and signed data), and creating error handling and retry mechanisms. For businesses using off-the-shelf ERP solutions, most of this configuration is available through built-in modules or certified add-ons. For custom-built systems, development effort will be required for API integration and JSON payload generation.
Phase 3: Testing (2-3 Weeks)
Thoroughly test the integration in the sandbox environment provided by the IRP. Generate test invoices covering all document types your business uses: regular B2B invoices, export invoices, credit notes, debit notes, and invoices with various tax scenarios (IGST for inter-state, CGST/SGST for intra-state, nil-rated items, reverse charge). Verify that: the JSON payload is correctly formatted for all scenarios, the IRP accepts and returns the IRN and QR code, the response data is correctly stored in your system, the QR code on the printed invoice is scannable and contains accurate data, cancellation functionality works within the 24-hour window, and the GSTR-1 auto-population reflects correctly on the GST portal. Test edge cases including very large invoices (many line items), invoices with special characters in descriptions, and network failure scenarios to ensure your retry logic works.
Phase 4: Go-Live and Monitoring (Ongoing)
Switch from the sandbox to production API endpoints. For the first few days, run parallel processing: generate e-invoices through the new system while also maintaining your existing process as a backup. Monitor success rates, error patterns, and processing times. Common go-live issues include authentication token expiry (implement automatic token refresh), intermittent IRP unavailability (implement retry with exponential backoff), and data quality issues in production that did not appear in testing. Establish a daily monitoring routine to check that all invoices generated have received IRNs, review and resolve any failed invoices, and verify GSTR-1 auto-population accuracy.
Common Errors and Troubleshooting
Even with thorough preparation, e-invoicing errors will occur in day-to-day operations. Having a structured troubleshooting approach reduces the time to resolution and minimizes business disruption.
Authentication Errors
Error code 1004 (Invalid Credentials): Verify that your Client ID and Client Secret are correct and that you are using the production credentials (not sandbox). Error code 1005 (Token Expired): Implement automatic token refresh in your integration. Access tokens typically expire after a set period, and your system should request a new token before expiry. Error code 1009 (IP Not Whitelisted): The API call is coming from an IP address that was not registered during API registration. Add the IP to your IRP registration or check if your server's public IP has changed.
Data Validation Errors
Error 2150 (Duplicate IRN): This occurs when you attempt to generate an e-invoice for an invoice number that already has an IRN. This can happen due to retry logic sending the same request twice. Implement idempotency checks in your system to prevent duplicate submissions. Error 2154 (Invalid GSTIN): The buyer or seller GSTIN is not active. Verify the GSTIN on the GST portal before invoice generation. Error 2163 (HSN Code Invalid): The HSN code is not in the IRP master list or is not at the required level of detail. Update your HSN master and ensure codes are at the 6-digit level for turnover above Rs 5 crore. Error 2179 (Value Mismatch): The computed values do not match. Check rounding logic -- the IRP uses specific rounding rules, and even minor rounding differences cause rejection.
Operational Best Practices
Maintain a master data hygiene routine: regularly verify that customer GSTINs in your system are active, HSN/SAC codes are current, and invoice numbering series are correctly configured. Implement automated alerts for failed e-invoices so that they are resolved within the same business day. Keep the 24-hour cancellation window in mind -- if an invoice needs correction, cancel and regenerate within 24 hours rather than issuing a credit note. Train all invoicing staff on the e-invoicing process, common error resolutions, and escalation procedures. Maintain detailed logs of all IRP API interactions for audit trail purposes.
Frequently Asked Questions
E-invoicing is mandatory for businesses with aggregate turnover exceeding Rs 5 crore in any financial year from 2017-18 onwards. Once a business crosses this threshold, it must comply permanently even if turnover drops below Rs 5 crore in later years.
The IRP validates invoice data submitted in JSON format, generates a unique IRN and QR code, digitally signs the invoice, and returns the authenticated invoice. It also auto-populates GSTR-1 and the e-way bill system, reducing manual data entry.
Yes, but only within 24 hours of generation on the IRP. After 24 hours, you must issue a credit note (which itself needs an e-invoice) and cancel the invoice manually in GSTR-1. The 24-hour window is strict and cannot be extended.
Invoices without an IRN are not valid tax invoices, so the buyer cannot claim ITC. A penalty of Rs 10,000 or 100 percent of tax due may be levied per non-compliant invoice. E-way bills generated without valid IRN may also be considered invalid.
E-invoicing applies to B2B invoices, B2G invoices, export invoices, supplies to SEZ, and related credit/debit notes. It does NOT apply to B2C invoices, import documents, delivery challans, bills of supply, or invoices from exempt categories like banks and insurers.
Three methods: direct API integration (REST APIs with OAuth 2.0), through a GSP intermediary, or via an ASP web platform. Most major ERPs like SAP, Oracle, Tally, and Zoho have built-in e-invoicing connectors. Choose based on your invoice volume and technical capability.
Key Takeaways
- E-invoicing is mandatory for all businesses exceeding Rs 5 crore aggregate turnover in any year since 2017-18, covering B2B invoices, exports, and SEZ supplies
- The IRP validates invoices, generates a unique IRN and QR code, and auto-populates GSTR-1 and e-way bill systems
- E-invoices can only be cancelled within 24 hours -- after that, corrections require credit notes which themselves need e-invoicing
- Choose your integration approach based on volume: direct API for large businesses, GSP for mid-size, and ASP for smaller operations
- Non-compliance results in invalid invoices (buyer cannot claim ITC), penalties up to 100 percent of tax due, and potential e-way bill issues
- Thorough sandbox testing covering all document types and edge cases is essential before going live with production e-invoicing
Get Hands-On with GST E-Invoicing
CorpReady Academy's practical training programs include live e-invoicing modules where you work with the IRP sandbox, generate real JSON payloads, and troubleshoot common errors. Build job-ready skills that employers value.
