Every Indian SaaS founder figures out GST the hard way. This guide to GST integration for SaaS is written for the developers building the billing system: what to capture at signup, how to treat each kind of customer, what an invoice must carry, when e-invoicing applies, and which parts to hand to a GSP or your CA instead of building yourself.
Key takeaways for GST in a SaaS billing system
For cross-border B2B, you don't charge GST on the subscription; the customer self-accounts under reverse charge.
For domestic B2B (customer provides an Indian GSTIN), you do charge GST and your customer claims ITC (input tax credit).
For B2C, you charge GST at the applicable rate.
E-invoicing (IRN generation) is mandatory above a turnover threshold; assume you'll cross it.
GSTIN validation should be real-time at billing time.
What every SaaS billing system needs for GST
GSTIN capture and validation
When a B2B customer signs up, capture the GSTIN. Validate it against the GSTN registry using a paid API (KnowYourGST, Masters India and similar providers). Re-validate at every renewal, because a registration that was active when the customer signed up may not be active a year later.
Tax treatment by customer type
The customer's type decides almost everything downstream, so make it an explicit field on the account rather than something inferred at invoice time.
Customer type | How to identify | GST treatment | Document |
|---|---|---|---|
Domestic B2B | Indian GSTIN provided | Charge GST; customer claims ITC | Tax invoice |
Domestic B2C | No GSTIN | Charge GST at the applicable rate | Invoice |
Cross-border B2B | Foreign business customer | Zero-rated; reverse charge applies on their side | Export invoice |
Cross-border B2C | Foreign individual | Decided by place of supply rules | Invoice |
In code, that decision belongs in one function that every invoice path calls, so the rule lives in exactly one place:
type CustomerType = "domestic_b2b" | "domestic_b2c" | "export_b2b" | "export_b2c";
function gstTreatment(type: CustomerType): "charge" | "zero_rated" | "place_of_supply" {
switch (type) {
case "domestic_b2b":
case "domestic_b2c":
return "charge"; // charge GST; B2B customer claims ITC
case "export_b2b":
return "zero_rated"; // reverse charge on the customer's side
case "export_b2c":
return "place_of_supply"; // resolve with place of supply rules
}
}
Place of supply
For digital services, place of supply usually matches the customer's location. It also decides which tax heads appear on a domestic invoice: an inter-state supply carries IGST, an intra-state one carries CGST plus SGST. Get place of supply wrong and you owe back taxes, so store the customer's state alongside the GSTIN rather than guessing it from a billing address later.
Tax invoice generation
Every tax invoice must contain these fields. Treat the list as a schema your invoice model has to satisfy before it can be issued:
GSTIN of the supplier
Customer GSTIN (if applicable)
Invoice number and date
HSN/SAC code
Taxable value, GST rate and tax amount
Place of supply
E-invoicing (IRN)
Above ₹5 crore turnover, IRN generation is mandatory. The flow is: send the invoice to the GST Network's IRP (Invoice Registration Portal), get back an IRN and a QR code, and include both on the invoice. Integrate with a GSP, or use ClearTax or Tally APIs, rather than talking to the network directly.
Returns and credit notes
Refunding a customer? Issue a credit note, adjust the GST, and make sure the adjustment flows into your returns. Never edit or delete an issued invoice to reflect a refund.
GSTR-1 and GSTR-3B impact
Your billing system feeds your GST returns. Build the export early so month-end is a download, not a scramble. If you sell internationally as well, the same data model supports the pricing decisions in our guide to SaaS pricing for India and global markets.
What to build and what to outsource
Piece | Who should own it |
|---|---|
GSTIN capture, customer type, place of supply, invoice data | Your billing system |
IRN generation | A GSP (GST Suvidha Provider) API |
Return filing | A CA firm or compliance software (ClearTax, Tally, Zoho) |
Don't build a direct GSTN integration unless you're a GST Suvidha Provider yourself. Your job is to feed the GSP and your CA clean data. Payment collection is a separate integration again; our review of Indian payment gateways covers that side.
Common GST pitfalls in SaaS billing
Computing GST on the wrong base. Apply discounts before tax, not after.
Place of supply errors. Most common in cross-border edge cases.
Late e-invoice generation. Penalty risk.
Wrong HSN/SAC code. Software services is typically 9983 or 998314; confirm with your CA.
What we recommend
Build GST into your billing system from day one if you're targeting Indian customers. Use a GSP for IRN. Use a CA-friendly format for returns. Don't treat GST as an afterthought; it gets harder to retrofit. It belongs on the same launch list as data protection, which is why it sits beside our DPDP Act compliance checklist and the post-launch SaaS checklist.
FAQs
What if our customer doesn't have a GSTIN?
Treat them as B2C and charge GST at the applicable rate.
How are software exports to the US or EU treated?
Usually zero-rated under "export of services."
How does reverse charge work?
The buyer accounts for the GST. You don't charge it.
Do we need a CA?
Yes, even for small SaaS.
Building GST into a SaaS product, or adding it to one already live? Talk to Techpuvi about SaaS engineering, or get in touch and we will help you design a billing system that is ready for Indian tax from the first invoice.
