WhatsApp Us

E invoice API integration · billing software, ERP, ecommerce

E invoice API integration: generate IRN and QR codes straight from your own software

E invoice API integration connects your billing software, ERP or ecommerce backend to a GST Invoice Registration Portal so every B2B invoice, credit note and debit note gets its IRN and signed QR code without anyone uploading JSON files by hand. BtechWaleTech, three freelance developers in India, builds these integrations with sandbox testing, error handling and cancellation flows, starting at ₹40,000. This guide explains GSP versus direct access, schema mapping and the rules that trip teams up, with links to billing software work.

  • Integration from₹40,000 · US$600
  • Usual build2–4 weeks including sandbox testing
  • ConnectsCustom billing, ERP, ecommerce backend
  • DocumentsInvoices, credit notes, debit notes
  • QuoteItemised, about 2 working days
  • Maintenance2 months free after go-live
  • IRN and signed QR
  • GSP or direct IRP
  • JSON schema mapping
  • Sandbox first
  • Cancel within 24 hours
  • Credit and debit notes
  • E-way bill details

Three freelance developers in India · WhatsApp replies every day of the week, IST

  • 3Developers on your integration
  • 2Working days to a written quote
  • 2Months of free maintenance
  • 0Middleman fees added by us

The short answer

What is e invoice API integration and how much does it cost?

E invoice API integration means your software sends each GST invoice as JSON in the government schema to an Invoice Registration Portal, directly or through a GST Suvidha Provider, and stores the returned IRN, acknowledgement number and signed QR code on the invoice. BtechWaleTech builds it from ₹40,000, usually in 2–4 weeks including sandbox testing, cancellation and credit-note flows.

Using TallyPrime rather than custom software? Start with Tally API integration. Processing invoices you receive instead? See invoice processing automation.

Last updated

E invoice API integration at a glance
Who needs itBusinesses notified for e-invoicing, generating B2B, SEZ and export invoices from their own systems
What your system sendsInvoice data as JSON in the e-invoice schema
What comes backIRN, acknowledgement number and date, signed invoice and signed QR code string
Access routeThrough a GSP, or direct IRP access where you are eligible
Starting priceFrom ₹40,000 (US$600)
Full billing systemNew billing or ERP software from ₹60,000
Support2 months free, then from ₹8,000/mo a month

What the integration covers

Parts of an e invoice API integration project

Some teams only need the generate call wired into existing software; others need the whole lifecycle. The quote lists each part separately so you pay for what you use.

Schema mapping

Your invoice tables mapped to the e-invoice schema: supply type, document details, seller, buyer, dispatch and ship-to, items with HSN, totals, and optional export and e-way bill sections.

Generate IRN and store the response

The API call, token handling and retries, plus safe storage of the IRN, acknowledgement number and signed JSON, because the IRP does not keep them for you.

QR code on the printed invoice

The signed QR string from the response converted to an image and placed on your PDF and print templates.

Cancellation within 24 hours

A cancel action in your software with reason codes, time checks and clear messages when the window has passed.

Credit and debit notes

Notes reported as their own documents, linked to the original invoice inside your system for your records.

E-way bill from IRN

Transport details sent with the invoice or afterwards, so goods movement paperwork follows from the same data.

Error queue and alerts

Rejected invoices land in a queue with the portal's message in plain language and a fix-and-retry button.

Ecommerce and ERP hooks

Triggers from your store backend, ERPNext, Odoo or a custom ERP when a B2B order is invoiced.

Why choose us

Three ways to produce GST e-invoices, compared

All three are legitimate. The right one depends on invoice volume, how customised your billing is, and who maintains the software.

Three ways to produce GST e-invoices, compared
Point of comparison Portal offline tool (JSON upload) Built-in e-invoicing in packaged software Custom API integration by BtechWaleTech
Effort per invoice Prepare, upload, download, attach by hand Low, if your process fits the package None after setup; happens on save
Works with custom billing code Only via manual export No, needs that package Yes, built into your software
Handles errors Read messages on the portal Inside the package Error queue in your system with retry
Cancellation within 24 hours Manual on the portal Usually supported Button in your software with time checks
Access route Portal login Package vendor's GSP arrangement Your choice of GSP or direct IRP
Fits high volume Poorly Yes Yes, with queuing and retries
Who controls changes You The package vendor You own the code
Cost pattern Staff time Licence or subscription Build from ₹40,000, then any GSP charges you choose

If you issue only a few B2B invoices a month and already use packaged accounting software with e-invoicing built in, you probably do not need a custom e invoice API integration at all.

Pricing

E invoice API integration pricing

The price of an e invoice API integration is driven by how clean your invoice data already is, how many document types you need (invoices only, or credit notes, debit notes and exports too), whether e-way bill details are included, and how many systems trigger invoices (one billing app, or a store backend plus an ERP). Adding e-invoicing to well-structured existing software sits near ₹40,000. If the billing logic itself needs rebuilding, or you want a new invoicing module, the project moves towards ₹60,000. Any GSP subscription is a separate arrangement between you and the provider.

Starting prices in INR and USD
ServiceIndia (INR)Worldwide (USD)Typical timelineWhat is included
Static website from ₹10,000 from US$150 1 to 2 weeks Up to 100 pages, Responsive design, Contact form and enquiry setup, Basic SEO tags and sitemap
SEO website (299+ pages) from ₹20,000 from US$300 3 to 5 weeks 299+ SEO pages, Keyword and page planning, Schema, sitemap, and internal linking, Design to deployment included
Ecommerce store from ₹50,000 from US$750 4 to 8 weeks Product and category pages, Payment gateway setup, Order and inventory basics, Performance tuning
Android & iOS app from ₹40,000 from US$600 6 to 10 weeks Android and iOS app (Flutter or React Native), Login, forms and push notifications, Admin panel and API connection, Google Play and App Store publishing
Custom web app or software from ₹60,000 from US$900 6 to 12 weeks Custom features and APIs, User accounts and roles, Admin panel, Deployment and handover
AI automation from ₹40,000 from US$600 2 to 4 weeks Workflow mapping, Tool and CRM integrations, AI agent or automation build, Testing and handover
Monthly SEO from ₹10,000/mo from US$150/mo Ongoing, monthly Technical fixes, On-page and content work, Local SEO and listings, Search Console reporting
Maintenance and support from ₹8,000/mo from US$120/mo Ongoing, monthly Content updates, Bug fixes, Backups and security checks, Speed and uptime checks

All prices are starting points, quoted in INR for India and USD for international clients, not fixed quotes. Final cost depends on the number of pages, features, integrations, content, and timelines. Share your requirement and you get an itemised estimate with nothing hidden. See full pricing.

Who needs e invoice API integration?

You need GST e-invoicing if you are a notified taxpayer; you need an API integration specifically when your invoices are produced by software that cannot generate IRNs on its own, or when manual uploads have become a bottleneck.

CBIC Notification 10/2023–Central Tax brought businesses whose aggregate turnover exceeded five crore rupees in any financial year from 2017-18 onwards under e-invoicing from 1 August 2023. The GSTN e-invoice FAQ explains that the system covers invoices, credit notes and debit notes issued to registered persons, supplies to SEZs, exports and deemed exports, while B2C invoices are not reported to the IRP. Whether a particular business is covered is a question for its CA; our job starts once that answer is yes.

Three situations call for a custom integration: custom billing software written years ago that has no e-invoice feature; an ecommerce or distribution backend that invoices B2B orders; or an ERP whose e-invoicing module does not fit their workflow. In all three, the goal is the same: the invoice is saved, the IRN comes back, and the printed copy carries the QR code without extra steps. For whole-system rebuilds, see billing software developer.

How the e-invoice API flow works, end to end

Your system authenticates, sends invoice JSON, receives a signed response with the IRN and QR code, stores it, and prints the QR on the invoice. Cancellations and e-way bills are separate calls on the same IRN.

Authenticate

Your software obtains a session token using credentials issued by the IRP or your GSP. Tokens expire, so the integration refreshes them automatically instead of failing mid-batch.

Generate

The invoice is converted to the schema and posted. The IRP validates key fields, checks the document is not already registered and, if all is well, returns the IRN, a 15-digit acknowledgement number and date, the signed invoice and the signed QR code.

Store and print

The GSTN FAQ is clear that the IRP returns only signed JSON, not a PDF, and does not archive it. Your software must save the response and render the QR code image on the invoice copy.

Follow-up actions

Within 24 hours you may cancel the IRN. Transport details can generate an e-way bill from the IRN. Corrections after that go through credit or debit notes and return amendments.

Because the IRN is a unique 64-character hash built from the supplier GSTIN, document type, document number and financial year, sending the same invoice twice is rejected as a duplicate. The integration therefore treats "already registered" as a signal to fetch and store the existing IRN, not as a failure.

GSP or direct IRP access: which should you choose?

Choose a GSP when you want a provider to handle connectivity, support and sometimes extra features; choose direct IRP access when you are eligible, have developers to maintain the integration and prefer fewer parties in the chain.

The GSTN e-invoice FAQ lists three modes: API integration directly with the taxpayer's system, API integration through a GSP or ASP, and the free offline bulk generation tool. GSTN's published comparison of the six Invoice Registration Portals (dated November 2023) shows that eligibility for direct access differs by portal: on some IRPs the direct API option was offered only above an aggregate turnover of 100 crore rupees, while others opened direct integration to all e-invoicing taxpayers. The same document notes that core e-invoice APIs are free of cost on the IRPs. Rules change, so we confirm current eligibility on the portal you pick before the build.

Practically, a mid-sized business with one billing system is often best served by a GSP connection, because the GSP handles the credential process and gives you a support desk. A larger group with in-house IT and several systems may prefer direct access. Either way, we keep the route behind one internal interface, so switching later changes configuration, not your invoicing code.

Mapping your invoice data to the e-invoice JSON schema

Mapping is where most of the work sits. Every field your software stores has to land in the right place in the schema, in the right format, with the right code lists.

The GSTN FAQ describes the schema (INV-01) as a single national standard based on PEPPOL and UBL, with mandatory and optional sections and cardinality rules for each field. In practice the payload has transaction details (supply type, reverse charge), document details (type, number, date), seller and buyer details including GSTINs, state codes and place of supply, optional dispatch-from and ship-to details, an item list with HSN, quantity, unit, rate, discounts, taxable value and tax amounts, value totals, and optional payment, reference, export and e-way bill sections.

The traps are predictable: unit codes that do not match the allowed list, state codes stored as names, rounding that makes item totals differ from the invoice total by a paisa, HSN codes missing on service lines that need SAC, and free-text addresses that exceed field lengths. We write a mapping document with your accountant, then build validation into your software so bad data is caught before it reaches the portal. The HSN master on the e-invoice portal is a useful reference during this step.

Testing an e invoice API integration in the sandbox

Every integration should be tested in the IRP sandbox before touching production. The NIC portal points developers to its API sandbox, and GSTN's IRP comparison lists sandbox URLs for each portal.

Sandbox testing is not a single "does it work" check. We build a test plan that covers each document type you issue, intra-state and inter-state supplies, exports, SEZ supplies, reverse charge, discounts, multiple tax rates on one invoice, invoices with and without e-way bill details, duplicate submissions, cancellation inside and after the window, and token expiry in the middle of a batch. Each case has an expected result, and the run is repeated after every change.

Production access is a separate step with its own registration, and credentials never move from test to live code by copy-paste; they live in environment settings on your server. Our API developer page explains how we structure test and live configurations for other government and payment APIs too.

Handling e-invoice API errors without blocking billing

Design for rejection from the start: every failed call should land in a visible queue with a readable reason, the invoice should stay in a clear "pending IRN" state, and a fix-and-retry path should exist for the billing team.

The GSTN FAQ notes that when validation fails, the IRP rejects the invoice with error codes describing the reason. Those messages are written for developers, so the integration translates common ones into instructions your staff can act on: "Buyer GSTIN is not active — check with the customer", "Item total does not match — check rounding on line 3". Network failures and timeouts are retried automatically with backoff; validation errors are not retried until someone fixes the data.

One case deserves special care: a timeout after the IRP actually registered the invoice. Retrying blindly produces a duplicate error. The integration handles this by checking whether an IRN already exists for that document before resubmitting and, if it does, fetching and saving it. Alerts go to WhatsApp or email when the queue grows or when an invoice approaches the 30-day reporting limit described below.

E-invoice cancellations and credit notes through the API

An IRN can be cancelled through the Cancel API within 24 hours of reporting, only in full, and not if a connected e-way bill is active or verified in transit. After that, corrections go through credit or debit notes or return amendments.

These rules come from the GSTN e-invoice FAQ, which also states that once an IRN is cancelled, that invoice number cannot be used again for another e-invoice, even inside the window, because the IRN is derived from the document number. So the integration needs to issue a fresh invoice number after a cancellation and keep the cancelled one on record with its reason code. The FAQ adds that amendments are not possible on the IRP itself; changes are made on the GST portal while filing GSTR-1, or through the amendment mechanism if GSTR-1 has already been filed.

Credit and debit notes issued under Section 34 of the CGST Act are reported as documents of their own. The FAQ says only those notes need reporting, not purely financial or commercial credit notes. Inside your software we link each note to its original invoice for your own tracking, and the UI shows staff which option is still available: cancel, or issue a note.

The 30-day reporting limit and what it means for your integration

GSTN advised that from 1 April 2025 taxpayers with an aggregate annual turnover of 10 crore rupees or more cannot report an e-invoice on the IRPs more than 30 days after the document date. The rule covers invoices, credit notes and debit notes.

For software, this turns a "we'll fix it later" backlog into a hard deadline. The integration therefore tracks each pending document's age, warns early when something has sat in the error queue for too long, and escalates to a named person well before day 30. A daily summary on WhatsApp or email lists pending documents by age so nothing is forgotten over a month-end or holiday.

If your turnover is below that threshold today, building the same safeguard costs little and keeps you ready as the business grows. Whether the limit applies to you is a compliance question for your CA; our role is to make sure the system surfaces problems while they can still be fixed.

Generating e-way bills from the same e-invoice data

If your goods need an e-way bill, the transport details can be sent along with the e-invoice or afterwards using the IRN, so dispatch paperwork comes from the same data your billing team already entered.

The e-invoice schema has an optional e-way bill section, and when it is selected certain transport fields become mandatory, as the GSTN FAQ describes. We add those fields to your dispatch screen, not the billing screen, because transporter ID and vehicle number are often known only when the truck is loaded. The integration can then request the e-way bill as a follow-up on the IRN.

Remember the dependency: while a connected e-way bill is active, the IRN cannot be cancelled. The cancel button in your software checks for that and explains the order of steps if a cancellation is needed. Businesses that move goods daily often pair this with transport management software so vehicle data is already available.

E invoice API integration for ecommerce and distribution backends

An online store or B2B ordering app should request an IRN only for orders that need an e-invoice, typically registered business buyers who entered a GSTIN, and should do it when the tax invoice is finalised rather than when the order is placed.

Store backends mix consumer orders with business orders. The integration adds a rule: if the order carries a buyer GSTIN and the business is notified for e-invoicing, generate the IRN at invoicing time; otherwise follow your normal B2C process. Checkout also validates the GSTIN format so bad data does not reach the invoice at all.

Returns in ecommerce matter too. A return processed after the 24-hour cancellation window becomes a credit note, reported through the API with its own document number. For distributors, the same logic lives inside a B2B ordering app or a distributor management system, where dealers place orders and invoices are generated centrally.

E-invoice integration with ERPs, Tally and custom software

Where your ERP or accounting package has built-in e-invoicing that fits your process, use it. Custom integration earns its keep when you run custom billing code, several systems produce invoices, or the built-in module cannot cope with your document types.

For ERPNext, Odoo or a custom ERP, we hook into the point where a sales invoice is submitted, call the IRP or GSP, and write the IRN, acknowledgement details and QR string back to the document. For custom PHP, Python, Java or .NET billing apps the pattern is the same, placed in the save or approve action. TallyPrime users usually rely on Tally's own features; where Tally sits alongside a custom order system, we make sure the invoice numbering and IRN data stay consistent between them, as described on Tally API integration.

Whichever system you run, keep one rule: exactly one system is responsible for requesting the IRN for a given invoice. Two systems both trying to register the same document is a common and avoidable source of duplicate errors.

Credentials, storage and ownership of the integration

API credentials, the signed invoices and the code all belong to you and sit in your environment. We work with access you grant, and hand over everything at the end.

E-invoice credentials are tied to your GSTIN, so they are stored in server-side configuration or a secrets manager, never in the browser or in source code. The signed JSON for each document is stored in your database with backups; the GSTN FAQ advises proper storage because signed invoices are not available for download from the IRP later. Access logs show who generated or cancelled each IRN.

At handover you receive the source code, mapping document, test plan with results, and a short runbook for common errors. You get two months of free maintenance, which matters here because schema updates and portal advisories do arrive. After that, care is available from ₹8,000/mo a month, or your in-house team can take over. General terms are on our terms page and specifics go into your quote.

How much does e invoice API integration cost and how long does it take?

Adding e invoice API integration to existing, well-structured billing software starts at ₹40,000 and takes about 2–4 weeks. Messy data, many document types or several source systems add time and cost.

The biggest variable is data quality. If your software already stores GSTINs, state codes, HSN codes and units cleanly, mapping is quick. If addresses are free text, units are typed by hand and tax is calculated only on totals, some clean-up in the billing screens is needed first. The second variable is scope: invoices alone, or credit notes, debit notes, exports, SEZ supplies and e-way bills too.

Timeline in outline: a few days to review your data and choose the access route, a week for mapping and core generate calls, a week for cancellation, notes, errors and printing, and a sandbox test cycle before production registration. Our wider ERP software development cost guide covers the case where invoicing is one module in a bigger rebuild.

E invoice API integration readiness checklist

Work through these points before development starts. Most are data and decision questions, not technical ones.

  • Confirmation from your CA that e-invoicing applies and from which date.
  • The document types you issue: invoices, credit notes, debit notes, exports, SEZ supplies.
  • Access route decided: GSP (and which one) or direct IRP where eligible.
  • Sandbox credentials requested for the chosen route.
  • Clean masters: customer GSTINs, state codes, HSN or SAC codes, unit codes.
  • Invoice numbering rules, including what happens after a cancellation.
  • Who fixes rejected invoices, and who is alerted as the 30-day limit approaches.
  • Printing templates that will carry the QR code.
  • Where signed JSON will be stored and how it is backed up.

Worked example: a parts manufacturer on custom billing software

A hypothetical case to make the steps concrete. Suppose an engineering-parts manufacturer in Rajkot runs a custom PHP billing application built years ago, issues B2B invoices to dealers across Gujarat, Maharashtra and Tamil Nadu, and has been uploading JSON through the offline tool every evening.

The first week is data work: customer GSTINs are validated, state names become codes, units are mapped to the allowed list, and HSN codes are made mandatory on the item master. The team chooses a GSP connection because nobody in-house wants to manage credentials directly. Development then adds a generate call to the "approve invoice" action, stores the signed response, and prints the QR on the existing PDF template.

Cancellation is added as a button that is only visible within 24 hours and hidden if an e-way bill is active; after that the screen offers "issue credit note". A pending-IRN queue with WhatsApp alerts goes to the accounts head each morning. After sandbox tests covering intra-state and inter-state invoices, credit notes and duplicate submissions, the integration moves to production. This example is illustrative only, not a description of a real client or measured outcome.

E-invoice integrations for businesses across India

We build remotely for manufacturers, distributors and B2B sellers anywhere in India. The pattern is similar everywhere: invoices come from custom or semi-custom software, and the team wants IRNs without manual uploads.

The work suits industrial and trading regions such as Vadodara, Ankleshwar, Vapi, Pithampur, Aurangabad, Faridabad, Chennai and Morbi, along with distributors in Kolkata and Nashik. All work happens over WhatsApp, calls and screen sharing; we never need to visit your premises to connect software to an IRP.

Calls happen in English or Hindi, whichever your accounts and IT people prefer. Invoices in regional languages are fine as long as schema fields carry the required values, which your billing software controls.

Access route

GSP versus direct IRP access for e invoice API integration

Eligibility for direct access differs by IRP and can change; we confirm it on the chosen portal before building.

GSP versus direct IRP access for e invoice API integration
FactorThrough a GSPDirect IRP accessChoose this when
Eligibility Available to e-invoicing taxpayersDepends on the IRP; some set a turnover cut-offDirect only if your chosen IRP allows it
Support GSP help desk plus portal supportPortal support onlyGSP if you have no in-house IT
Cost GSP's own subscription termsCore IRP APIs are free per GSTNDirect if volume is high and IT is strong
Parties in the chain Your system, GSP, IRPYour system, IRPDirect if you want fewer dependencies
Extra features Some GSPs add dashboards or bulk toolsCore APIs onlyGSP if you want those extras
Switching later Change GSP, keep code behind one interfaceMove to a GSP if eligibility changesEither, if the code is designed for it

Error handling

What the integration does when an e-invoice call fails

Portal error codes vary by IRP and version, so the integration maps them to these categories rather than hard-coding every message.

What the integration does when an e-invoice call fails
SituationLikely causeAutomatic actionHuman action
Validation rejected Wrong GSTIN, state code, unit or HSNQueue with plain-language reasonFix master data, press retry
Duplicate document Same invoice sent twice or after a timeoutFetch and store the existing IRNNone, unless numbering is wrong
Totals mismatch Rounding across linesQueue, highlight linesCorrect rounding rule in billing
Token expired Session timed out mid-batchRefresh token and resendNone
Portal slow or unavailable Network or portal loadRetry with backoff, alert if prolongedWatch the queue; check portal notices
Cancellation refused Past 24 hours or e-way bill activeExplain the rule on screenIssue a credit note instead
Near 30-day limit Document stuck in the queueEscalating daily alertsResolve before the deadline

Scope and starting price

E invoice API integration cost by scope

Starting prices; your itemised quote follows a data review. International teams integrating Indian entities see USD figures, for example AI automation from US$600.

E invoice API integration cost by scope
ScopeIncludesStarts atTypical time
Invoice IRN integration Mapping, generate call, storage, QR on printFrom ₹40,0002–3 weeks
Full document lifecycle Adds cancellation, credit and debit notes, error queueFrom ₹40,0003–4 weeks
With e-way bill Transport details and e-way bill from IRNFrom ₹40,0003–4 weeks
Ecommerce or multi-system Store backend plus ERP triggers, one IRN owner per documentFrom ₹40,0004–5 weeks
New billing module Invoicing, masters, printing and e-invoicing built freshFrom ₹60,0006–12 weeks
Ongoing care Schema updates, advisories, monitoringFrom ₹8,000/mo a monthAfter 2 free months

Across India

Where e invoice API integration is needed most

Remote integrations for B2B sellers in these cities and elsewhere. Each card links to our page for that city.

How it works

How your e invoice API integration is delivered

  1. Share a sample invoice and your stack

    Send a PDF of a typical invoice and tell us what software produces it. We confirm what data exists and what is missing before quoting anything.

  2. Receive the itemised quote

    Within about two working days you get a quote split by document type, access route, error handling and printing. No billing happens before written approval.

  3. Map data and choose the route

    We write the field mapping with your accountant, clean masters where needed, and help you register for sandbox access with a GSP or the IRP.

  4. Build and test in the sandbox

    Generate, cancel, notes, e-way bill and error handling are built and run against a written test plan until every case passes.

  5. Register for production and go live

    Live credentials are configured on your server, a small first batch is watched closely, and alerts for the queue and deadlines switch on.

  6. Hand over and support

    You receive code, mapping document, test results and runbook. Two months of maintenance follow at no charge, covering schema changes and advisories.

Questions

E invoice API integration: questions answered

What is e invoice API integration?

E invoice API integration connects your billing software, ERP or store backend to a GST Invoice Registration Portal. Your system sends each eligible invoice, credit note or debit note as JSON in the e-invoice schema, receives the IRN, acknowledgement number and signed QR code, stores them and prints the QR code on the invoice, all without manual uploads.

How much does e invoice API integration cost?

BtechWaleTech builds e invoice API integration from ₹40,000 when your existing billing data is reasonably clean. Credit notes, e-way bills, several source systems or data clean-up add to the quote. If you need a new billing module altogether, that starts at ₹60,000. Any GSP subscription is agreed directly between you and the GSP.

Who must generate GST e-invoices?

CBIC Notification 10/2023–Central Tax extended e-invoicing from 1 August 2023 to taxpayers whose aggregate turnover exceeded five crore rupees in any financial year from 2017-18 onwards, for B2B, SEZ and export documents. Some categories are exempt. Whether your business is covered is a question for your CA; we build the integration once that is confirmed.

Should I use a GSP or direct IRP API access?

Use a GSP if you want a provider's support desk and simpler onboarding, which suits most mid-sized businesses. Consider direct access if your chosen IRP allows it for your turnover, you have in-house IT to maintain it, and you prefer fewer parties. GSTN's IRP comparison shows direct eligibility varies by portal, so we check it before building.

What does the IRP return after generating an IRN?

According to the GSTN e-invoice FAQ, the IRP returns a signed JSON containing the IRN, a 15-digit acknowledgement number and date, the signed invoice and a signed QR code string. It does not return a PDF, and it does not store the e-invoice for later download, so your software must save the response and create the printed invoice with the QR code.

Can I cancel an e-invoice through the API?

Yes, within 24 hours of reporting, using the Cancel API, and only for the whole invoice. The GSTN FAQ says cancellation is not allowed if a connected e-way bill is active or verified in transit, and the cancelled invoice number cannot be reused for another e-invoice. After 24 hours, corrections are made with credit or debit notes or return amendments.

How are credit notes handled in e-invoicing?

Credit and debit notes issued under Section 34 of the CGST Act are reported to the IRP as their own documents and receive their own IRN. The GSTN FAQ notes that purely financial or commercial credit notes do not need reporting. Our integration links each note to the original invoice inside your software so your team can trace it later.

What is the 30-day rule for e-invoice reporting?

GSTN advised that from 1 April 2025, taxpayers with aggregate annual turnover of 10 crore rupees or more cannot report e-invoices, credit notes or debit notes on the IRPs more than 30 days after the document date. Our integration tracks the age of every pending document and sends escalating alerts well before that limit.

How do you test an e-invoice integration safely?

In the IRP or GSP sandbox, never in production first. We write a test plan covering every document type you issue, intra-state and inter-state supplies, exports, SEZ supplies, reverse charge, multiple tax rates, duplicates, cancellation inside and outside the window, and token expiry. Each case has an expected result and is rerun after every change.

Why does the IRP reject my invoice as a duplicate?

The IRN is built from your GSTIN, document type, document number and financial year, so the same combination can only be registered once. Duplicates often happen when a request times out after the IRP actually succeeded. Our integration checks for an existing IRN before retrying and, if one exists, fetches and stores it instead of failing.

Can e-way bills be generated with the e-invoice API?

Yes. The e-invoice schema has an optional e-way bill section, and transport details can be sent with the invoice or afterwards against the IRN. We usually capture transporter and vehicle details on the dispatch screen, since they are known only at loading, and remind staff that an active e-way bill blocks cancelling the IRN.

Do B2C ecommerce orders need an IRN?

The GSTN FAQ says B2C invoices are not currently reported to the IRP by notified persons. Taxpayers with aggregate turnover above 500 crore rupees have a separate dynamic QR code requirement on B2C invoices. In an online store, our integration requests an IRN only for invoices to registered buyers who supplied a GSTIN, and handles consumer invoices through your normal process.

How long does e invoice API integration take?

Usually 2 to 4 weeks for existing software with clean data: data review and route selection, mapping and core calls, then cancellation, notes, errors and printing, followed by a sandbox test cycle and production registration. Data clean-up, exports, SEZ supplies or several source systems add time, which the itemised quote spells out.

Can you add e-invoicing to old custom billing software?

Usually yes. We hook into the point where an invoice is approved, call the IRP or GSP, save the response and add the QR code to the print template. If the underlying data is messy, such as free-text addresses or missing HSN codes, the billing screens get validation first. Language or framework is rarely the blocker.

Does e invoice API integration work with ERPNext or Odoo?

Yes. Both have their own e-invoicing options for India, and if those fit your process they are the simplest route. When they do not, for example because of custom document types or several companies, we write the integration at the point where a sales invoice is submitted and write the IRN and QR data back to the document.

Where are e-invoice credentials and signed invoices stored?

On your server or cloud account. Credentials sit in server-side configuration or a secrets manager, never in the browser or source code. Signed JSON for every document is stored in your database with backups, which matters because the GSTN FAQ says signed e-invoices are not available for download from the IRP later.

Is e-invoice API usage free?

GSTN's comparison of the six IRPs states that core e-invoice APIs are free of cost on the respective portals. If you connect through a GSP, that provider's own terms apply. Your costs are therefore the integration build, any GSP subscription you choose and the hosting of your own software, which you pay directly.

Do you give GST advice as part of the integration?

No. We are developers, not tax advisers. Your CA decides whether e-invoicing applies, which documents to report and how to treat corrections. We turn those decisions into software: correct mapping, validations, cancellation and note flows, and alerts. Where a rule is ambiguous, we raise it with you and your CA before building.

What happens after the free maintenance period?

The first two months after go-live are covered at no charge, including fixes and changes required by schema updates or portal advisories. After that you can continue with care from ₹8,000/mo a month or hand the system to your in-house team using the runbook and mapping document. Terms are written into your quote.

E invoice API kaise integrate kare?

Pehle apne CA se confirm kijiye ki e-invoicing aap par lagu hai. Phir GSP ya direct IRP route chuniye, sandbox credentials lijiye, apne billing data ko e-invoice JSON schema se map kijiye, aur generate, cancel aur credit note ke calls sandbox mein test kijiye. Hum yeh poora kaam remotely karte hain aur do working days mein quote dete hain.

How do I pay for the integration?

Indian businesses pay by UPI or bank transfer; clients outside India pay in USD by Wise, bank wire or PayPal. The milestones are listed in the written quote you approve before work starts. GSP fees and hosting, if any, are paid directly by you to those providers, so you always see what each part of the system costs.

Next step

Send one invoice PDF and the name of your billing software

We will tell you what data your e-invoice integration needs, which access route fits, and send an itemised quote in about two working days. Nothing is billed until you approve it in writing.