Figment Global Solutions
API

GST API Integration with SAP and Tally: e-Invoice, e-Way Bill and Return Filing Options

GST API integration with SAP and Tally explained: how e-invoice, e-way bill and return APIs connect to SAP ECC, S/4HANA and TallyPrime, with a comparison.

Figment Global Solutions logoFigment Global Solutions 7 min read
Diagram of GST API integration with SAP and Tally, showing SAP and TallyPrime connected through a GSP to the IRP, e-way bill system and GST portal

GST API integration with SAP and Tally lets your ERP send invoices straight to the Invoice Registration Portal (IRP), get the IRN and signed QR code back on the invoice, raise e-way bills, and push return data to the GST portal without manual uploads. SAP and TallyPrime are the two most common systems in Indian finance teams, but they approach integration very differently. SAP is usually connected through an integration layer and a GSP. TallyPrime has its own built-in connected e-invoicing.

This guide explains the options for each, when a third-party GST API makes sense, and what to check before you start. For an overview of every API and ERP Figment connects to, see our GST API integration page.

What a GST API integration covers

Through the API, the ERP generates and cancels e-invoice IRNs, raises and updates e-way bills, pushes and fetches return data, and verifies GSTINs. All of these reach the government systems through a GST Suvidha Provider (GSP), either one you choose or one built into your software.

GST API integration with SAP

How SAP handles India e-invoicing

SAP's India e-invoicing solution is built on its eDocument framework. When a billing document is posted, an eDocument is created and its status is tracked in the eDocument Cockpit. The invoice data is sent by API call, through a cloud or on-premise integration layer, to a GSP, which forwards it to the IRP. SAP's own guidance is that you need a tie-up with a GSP, and that the invoice output should ideally be printed only after the IRN has been received in the eDocument Cockpit.

Integration options for SAP ECC and S/4HANA

OptionHow it worksSuits
SAP standard + integration layer SAP eDocument with SAP's integration middleware connecting to a GSP Large SAP landscapes already using SAP's compliance and integration products
Direct GSP connector An ABAP or middleware connector calls the GSP's REST APIs at billing or outbound delivery and writes the IRN, QR code and e-way bill number back to the document Companies wanting fewer layers and direct control of error handling
File-based (fallback) Invoice JSON is exported, uploaded to the IRP and the response imported back Low volumes or temporary fallback only

SAP Business ByDesign works differently. SAP notes that ByDesign cannot support full end-to-end integration with the e-invoice system out of the box. It offers a JSON file approach (generate the IRN request file, upload it to the e-invoice portal, upload the response back) and a synchronous GSP approach set up through an implementation partner.

What to plan for in an SAP project

  • Output control: the invoice print or PDF should wait for the IRN and QR code
  • Document types: map billing types to INV, CRN and DBN, and supply types (B2B, exports, SEZ, and RCMDOM and RCMIMP for RCM self-invoices from 1 January 2027)
  • Cancellation: link the SAP cancellation of a billing document to IRN cancellation within the 24-hour window, and to a credit note after it
  • Multi-GSTIN: map each company code and plant to the right GSTIN and API credentials
  • Error feedback: show IRP error codes in the cockpit or a custom report so billing teams can fix and resubmit

GST API integration with Tally

TallyPrime's built-in e-invoicing

TallyPrime has connected e-invoicing built in. Tally is itself a GSP, and TallyPrime's online e-invoicing requests are processed through Tally GSP. Once "Allow e-Invoicing" is set to Yes in the sales voucher type, TallyPrime sends the invoice to the IRP and fetches the IRN and QR code within seconds. If "Enable e-Way Bill" is also set, it generates the e-way bill in the same process. When the IRP is not reachable, TallyPrime can export e-invoice data as a JSON file. Tally's help documentation covers sales invoices, POS invoices, debit and credit notes, and from Release 3.0 e-invoices can be generated for any GSTIN.

For many small and mid-sized businesses running only on TallyPrime, this built-in route is enough.

When Tally users need a separate GST API

A separate GSP API connected to Tally makes sense when:

  • Tally is one of several systems. A group with SAP at head office and Tally at branches wants one GSP, one log and one reconciliation across all GSTINs.
  • Billing happens outside Tally. Invoices come from a billing app, e-commerce platform or custom system, and Tally is used only for accounts.
  • Volumes are high. Bulk IRN generation, scheduled e-way bill updates or multi-IRP fallback are needed.
  • Returns and reconciliation are run centrally. GSTR-1, GSTR-2B and IMS work is done in dedicated GST software that pulls data from Tally.

In these cases the integration is usually built by your Tally partner, with a Tally customisation (TDL) or a connector that reads vouchers from Tally, calls the GST API and writes the IRN, QR and e-way bill number back to the voucher.

SAP vs Tally: integration at a glance

PointSAP ECC / S/4HANATallyPrime
Built-in e-invoicing Through eDocument with a GSP connection Yes, through Tally GSP
GSP choice Your choice of GSP Tally GSP for built-in flow; separate GSP via connector
e-Way bill Through the GSP connection Generated with the e-invoice if enabled
Typical project Integration project with IT and an SAP partner Configuration; a connector only for special cases
Multi-GSTIN groups Mapped by company code and plant Per company, or centrally via a connector

Pre-integration checklist

#Check
1 List every system that raises invoices, by GSTIN
2 Map document and supply types, including RCM self-invoices from 1 January 2027
3 Clean customer masters: GSTIN, state code, PIN code
4 Check item masters: HSN codes and current GST rates
5 Decide where the IRN, QR and e-way bill number are stored on the document
6 Define the cancellation and credit-note flow
7 Test every case in a GST API sandbox
8 Complete KYC and sign the API agreement with your GSP
9 For return APIs, enable API access on the GST portal for each GSTIN and authorise it with an OTP
10 Create the e-invoice API user: API Registration → User Credentials → Create API User → Through GSP, then select your GSP
11 Create the e-way bill API user: Registration → For GSP, select your GSP and create the API username
12 Get production keys and go live one API at a time

How Figment connects to SAP and Tally

Figment Global Solutions is a GSTN-authorised GSP. Its e-Invoice API and e-Way Bill API work with SAP ECC and S/4HANA and Tally Prime. They are REST/JSON APIs on the official IRP and NIC interfaces, and e-invoices are routed across two or more IRPs for failover. The same APIs also work with Oracle, Microsoft Dynamics 365 and in-house systems; see the GST API integration page.

To start, you request sandbox access. Figment's API team confirms your use case and emails sandbox credentials with test GSTINs, sample payloads, the Postman collection and documentation. The team helps with field mapping, testing and go-live on every working day, and production keys typically follow within two weeks of sandbox access.

The GSP APIs also cover return filing (GSTR-1, GSTR-3B, GSTR-9/9C, IMS), so one provider can serve both e-invoicing and returns. For teams that want a ready application rather than building their own reports, GSTCPC handles GST returns, reconciliation and e-invoice and e-way bill generation from the same records.

Key takeaways

  • SAP integrates through its eDocument framework or a direct GSP connector. Either way you need a GSP.
  • TallyPrime has built-in e-invoicing and e-way bill generation through Tally GSP.
  • Tally users need a separate GST API mainly for multi-system groups, external billing or central reconciliation.
  • Map document types, clean masters and plan cancellations before you start.
  • Test every case in a sandbox before production keys are issued.

Frequently Asked Questions

SAP's own guidance is that a GSP tie-up is needed. Direct IRP API access is available only to taxpayers who meet NIC's eligibility criteria.

Share this article

Compliance support

Need Help with Compliance?

Tell us which returns are hurting.

Our team will walk through it with you...