The SaaS Subscription Billing Stack: From Invoice to Cash

SaaS Subscription Billing Stack Invoice to Cash
SaaS Finance · Cash & Billing
AS
Ankit Sarawagi|Founder, CFOmatrix·July 2026·10 min read
Every SaaS company runs a machine that turns a signature into cash and then into recognised revenue. That machine is the billing stack, and most founders bolt it together far too late, after invoices are already going out wrong, GST is misapplied and failed payments are quietly leaking revenue. The stack has to do six things well: subscribe, meter, invoice, collect, dun and recognise. For a fixed subscription the metering is light. For AI SaaS on variable compute, metering becomes the heart of the system, because the same per-customer usage data drives your invoice, your gross margin and your revenue recognition. This post lays out the components, the plan types the stack must support, why you meter per customer from day one, the prepaid wallet model, dunning to protect retention, and the India specifics of GST and export billing. It is part of our SaaS finance pillar guide.
✍ Key Takeaways
  • The stack runs one loop: subscribe, meter, invoice, collect, dun, recognise. Every leak in SaaS cash traces back to one of these six steps.
  • Meter per customer from day one. Tag every unit of usage by customer, because the same data gives you the invoice AND per-customer gross margin.
  • The stack must flex with pricing. Per-seat, tiered, consumption and hybrid all need different metering and invoicing, and pricing is migrating toward consumption and outcome.
  • Use a prepaid wallet, never bill usage in arrears. Arrears billing on variable consumption is a collections nightmare.
  • Dunning protects NRR, GST protects cash. Recover failed payments with retries, and get GST, LUT and e-invoicing right or you forfeit real money.
6 steps Subscribe, meter, invoice, collect, dun, recognise Per-customer Tag usage from day one for margin, not just invoices 18% / 0% GST on domestic sales vs zero-rated exports (with LUT)

What a Billing Stack Actually Does

A billing stack is the set of systems that carries a customer from a signed contract all the way to cash in the bank and revenue in the books. People call it quote-to-cash. Under the jargon it is a single loop that repeats for every customer, every billing period: subscribe, meter, invoice, collect, dun, recognise. Skip or fumble any one step and you get the same symptoms every time, wrong invoices, disputed GST, cash that never arrives, and a P&L that does not reconcile.

The quote-to-cash loop
The six steps every SaaS and AI SaaS billing stack has to run
1
Subscribe
Create the plan and contract: price, term, proration, renewal date and any commitment. This is where per-seat, tiered, consumption or hybrid pricing is set up.
2
Meter
Track usage per customer. Light for a fixed subscription, central for AI SaaS: this data drives the invoice, the gross margin and the revenue number.
3
Invoice
Raise a compliant tax invoice with the right GST treatment, currency and e-invoicing where applicable. The invoice must match the metered usage exactly.
4
Collect
Charge the payment method through a gateway: card, mandate, bank transfer or a draw-down from a prepaid wallet balance.
5
Dun
Retry failed charges, prompt card updates and recover involuntary churn before you suspend service. This step directly protects net revenue retention.
6
Recognise
Post revenue over the service period under Ind AS 115, holding the un-earned part as deferred revenue and feeding the accounting system.
Quote-to-cash is not a single tool; it is a loop you design and reconcile, whether you build it or buy a platform.

The mistake founders make is treating billing as a checkout button rather than a finance system. The checkout is step four of six. Get the whole loop right and your invoices, your cash and your books all tell the same story. Get it wrong and you spend board meetings explaining why three numbers disagree.

The Components You Actually Need

You do not need to build all of this from scratch, and you should not. Many billing platforms bundle several components. But you own the design and, critically, the reconciliation back to your books. Here are the six pieces and what each one is responsible for.

The six components of a SaaS billing stack
What each one owns, and why it matters for finance
ComponentWhat it does
Subscription / billing managementPlans, contracts, proration, upgrades, renewals and cancellations
Payment gatewayCharges cards, mandates and bank transfers, in INR and USD
Usage meteringTracks consumption per customer for consumption and hybrid pricing
Dunning & retriesRecovers failed payments, prompts card and mandate updates
Tax & GST / e-invoicingApplies 18% domestic GST, zero-rates exports, issues e-invoices
Revenue-recognition integrationPosts deferred and recognised revenue into the accounting system
Buy the platform if you like, but you still own the reconciliation from billings to revenue to the general ledger.

Notice how the first and last components are the bookends: subscription management defines what the customer owes, and revenue recognition defines what you have earned. The four in between move the money and keep it compliant. AI SaaS operators feel the metering component most, because variable compute means the meter is not a nice-to-have, it is the thing that keeps your invoices and your margin honest.

Plan Types the Stack Has to Support

Your stack is only as flexible as the pricing it can bill. Four plan types cover most SaaS, and the stack must handle all of them because pricing is migrating: from per-seat to consumption, and toward outcome. If your billing can only do per-seat, you cannot ship the pricing your market is moving to. Build for the move now.

Four plan types, four different billing demands
What the stack must be able to do for each
Plan typeHow it is billedWhat the stack needs
Per-seatPrice × number of usersSeat counts, proration on add/remove
TieredFixed price per plan tierPlan catalogue, upgrade and downgrade logic
ConsumptionPer-unit of usage consumedAccurate metering, wallets, rate cards
HybridBase fee plus usage on topBoth subscription and metering together
Most AI SaaS lands on consumption or hybrid; a stack locked to per-seat cannot follow the market. See AI SaaS pricing for the full migration.

The migration is not academic. Per-seat pricing is disconnected from a variable compute cost, so it quietly erodes margin as heavy users consume more than they pay for. Consumption pricing reconnects price to cost, and outcome pricing anchors to the value delivered. Whatever you charge today, your stack should be able to bill usage tomorrow. The full playbook is in AI SaaS pricing.

Metering: Tag Usage by Customer from Day One

Metering is the component founders underestimate and AI SaaS operators cannot live without. The rule is simple: tag every unit of usage by customer from the very first day. Not because the invoice needs it, though it does, but because the same tagged data is the only way to see per-customer gross margin. In an AI business one customer can consume ten times the compute of another on the same price, and blended margin hides it completely.

“The metering you build to send invoices is the exact same metering that tells you which customers are actually profitable. If you tag usage by customer from day one, you get billing and per-customer margin for free. Retrofit it later and you get neither cleanly.”

Ankit Sarawagi, from working across SaaS and AI SaaS startups

This is the AI-SaaS operator’s edge. Variable compute means metering and prepaid wallets matter far more than they ever did for classic per-seat SaaS. The teams that instrument usage per customer early can reprice loss-making accounts at renewal, negotiate volume commitments that unlock vendor discounts, and defend their gross margin account by account. The teams that do not are flying blind on the one number investors trust most. Go deeper in deferred revenue and billing.

The Prepaid Wallet Model: Never Bill Usage in Arrears

Once you meter usage, you have to decide how the customer pays for it. There are two clean ways and one that wrecks your cash. For enterprise, take a volume commitment. For everyone else, use a prepaid wallet: the customer tops up a balance and usage draws it down. What you must avoid is billing usage in arrears, delivering first and invoicing a variable amount at month end.

Prepaid wallet vs usage in arrears
Get paid before or as you deliver, never long after
PREPAID WALLET / TOP-UP
Use this
  • Customer tops up, usage draws it down
  • You are paid before you deliver
  • Un-consumed balance is deferred revenue
  • No collections risk, no disputed invoices
USAGE IN ARREARS
Avoid this
  • You deliver first, invoice at month end
  • Every invoice is a different size
  • Customers dispute unexpected spikes
  • You finance their usage and chase payment
A prepaid wallet balance is deferred revenue until consumed, so the SaaS cash advantage carries over to usage pricing.
⚠️ Watch Out: usage billing in arrears

In the AI SaaS companies I have worked with, arrears billing on variable usage is the fastest route to a cash and collections mess. Every invoice is a different size, customers dispute the spikes, and you are effectively lending them the compute while you wait to be paid. Default to a prepaid wallet, or a volume commitment for enterprise, and keep arrears off the table entirely.

The volume commitment has a second benefit beyond cash: when an enterprise customer commits to a minimum volume, you can commit that volume to your compute and model vendors, unlock a discount, and pass part of it back. It is the same commitment chain that makes consumption pricing work. Master the full mechanics in deferred revenue and billing.

Dunning: Recover Failed Payments, Protect NRR

The quietest revenue leak in SaaS is the failed payment. A card expires, a charge is declined, and a paying customer silently drops off, not because they wanted to leave but because the payment never went through. This is involuntary churn, and it is a fixable finance problem, not an unavoidable loss. The system that fixes it is dunning, and good dunning directly protects net revenue retention.

The failed-payment recovery flow
How dunning turns an involuntary churn back into a paying customer
1
Charge fails (mostly expired or declined cards)
The single biggest cause is card expiry, followed by insufficient funds and bank declines. Left alone, this becomes silent churn.
2
Smart retries on a timed schedule
Reattempt the charge when funds are most likely present, rather than hammering the same declined card immediately.
3
Prompt card and mandate updates
Nudge the customer by email and in-product to update details, and handle card and mandate expiry proactively before the next cycle.
4
Recover, then only suspend as a last resort
Escalate through reminders before cutting off service. A recovered payment is retained revenue that protects your NRR directly.
Treat involuntary churn from failed payments as recoverable revenue, because a large share of it genuinely is.

Because net revenue retention is the single most important SaaS number, and failed payments quietly drag it down, dunning earns its place in the stack. Every payment you recover is revenue you already sold, kept without any new sales effort. Read how retention compounds in the SaaS finance pillar guide.

India Specifics: GST, Currency and Exports

An Indian SaaS billing stack has to get tax right automatically, because the rules differ by customer location and currency. Domestic sales carry 18 percent GST on a compliant tax invoice, and e-invoicing applies once turnover crosses the notified threshold. Exports of services are generally zero-rated, but only if a Letter of Undertaking (LUT) is filed, and only from the date it is in place.

Getting India billing right in the stack
Configure by customer location and currency, not by hand
Domestic: 18% GST in INR, with e-invoicing
Indian customers are billed in ₹ with 18 percent GST on a compliant invoice, and e-invoices once you cross the turnover threshold.
Exports: zero-rated in USD, with an LUT on file
Overseas customers are usually billed in $ as a zero-rated export of services, valid only from the date the LUT is filed.
!
File the LUT before you invoice the new year
If you export in April but file the LUT in May, April’s exports carry GST. File at the start of the financial year.
Capture vendor GST numbers on purchase invoices too, or you forfeit input tax credit, a pure cash loss.

“Set the billing system up so tax follows the customer automatically. Domestic gets 18 percent GST, exports are zero-rated once your LUT is in, and the currency follows too. Do it by rule, not by hand, and file the LUT before the first export invoice of the year.”

Ankit Sarawagi

The billing stack is where these rules either work quietly in the background or blow up into disputed invoices and forfeited credit. Configure the treatment by customer location and currency, INR for domestic and typically USD for exports, and let the system apply it. The full detail is in GST for SaaS.

Is your billing stack leaking cash, margin or GST?

CFOmatrix gives founders a fractional CFO: metering that reveals per-customer margin, wallet and commitment structures, dunning that protects retention, and GST and export billing configured correctly. Tell us your stage and we will map your quote-to-cash.

Talk to CFOmatrix

Frequently Asked Questions

What is a SaaS billing stack?

A billing stack is the set of systems that carry a customer from signing up to cash in the bank and revenue in the books, sometimes called quote-to-cash. It runs the full loop: subscribe (create the plan and contract), meter (track usage per customer), invoice (raise a compliant tax invoice), collect (charge the payment method), dun (retry and recover failed payments), and recognise (post revenue over the service period). For a fixed subscription the metering step is light; for usage-based AI SaaS it is the heart of the system, because your invoice, your gross margin and your revenue recognition all depend on accurate per-customer usage data.

What components do I need in a SaaS billing stack?

Six components cover most SaaS and AI SaaS businesses: subscription and billing management (plans, contracts, proration, renewals), a payment gateway (to charge cards, mandates and bank transfers), usage metering (to track consumption per customer for consumption pricing), dunning and retries (to recover failed payments and prompt card updates), tax and GST handling (correct GST on domestic invoices, zero-rating on exports, and e-invoicing where applicable), and a revenue-recognition integration (to post deferred and recognised revenue into the accounting system). You can buy a billing platform that bundles several of these, but you still own the design and the reconciliation to your books.

How do I bill usage-based pricing?

Start with metering: tag every unit of usage by customer from day one, because that same data drives the invoice, per-customer gross margin and revenue recognition. Then choose how the customer funds it. For enterprise, take a volume commitment so you can commit that volume to your compute vendors and unlock discounts. For everyone else, use a prepaid wallet where the customer tops up a balance and usage draws it down. Avoid billing pure usage in arrears, where you deliver first and invoice a variable amount at month end, because that becomes a collections nightmare with disputed spikes and cash you are financing yourself.

What is a prepaid wallet model in billing?

A prepaid wallet, or top-up model, is where the customer loads a credit balance in advance and their usage draws it down, like a metered prepaid account. When the balance runs low they top up again. It suits usage-based AI SaaS where consumption varies month to month and the customer will not sign a fixed commitment. It keeps you cash-positive because you are paid before you deliver, and the un-consumed balance sits as deferred revenue until the usage is actually consumed. It is the cleanest way to get the cash advantage of subscriptions onto variable usage pricing.

How do I recover failed SaaS payments?

Failed payments, mostly expired or declined cards, are a silent drain on recurring revenue, so build dunning into the stack. Use smart retries that reattempt the charge on a schedule timed to when funds are likely present, prompt customers to update card details before and after a failure, handle mandate and card expiry proactively, and escalate through email and in-product nudges before you suspend service. Good dunning recovers a meaningful share of otherwise-lost revenue, which directly protects net revenue retention. Treat involuntary churn from failed payments as a fixable finance problem, not an unavoidable loss.

How do I handle GST on SaaS invoices in India?

Domestic sales to Indian customers attract 18 percent GST, which your billing system must add and show correctly on a compliant tax invoice, and e-invoicing rules apply once your turnover crosses the notified threshold. Sales to customers outside India are generally an export of services and are zero-rated, but only if a Letter of Undertaking (LUT) is filed, and only from the date it is in place, so file it at the start of the financial year before you invoice. Configure the stack to apply the right treatment automatically by customer location and currency, INR for domestic and typically USD for exports, and to capture vendor GST numbers so you do not forfeit input tax credit.

This is general educational information for founders, current to mid-2026, drawing on the author’s experience across SaaS and AI SaaS startups, and is not legal, tax or investment advice. GST treatment, e-invoicing thresholds, LUT requirements and revenue recognition under Ind AS 115 depend on your specific facts and change over time; verify the current position or consult a professional before acting on a specific matter.

AS
Founder, CFOmatrix  |  Finance Strategy & Equity Compliance

CFOmatrix is a knowledge platform focused on how finance actually works inside growing companies. This post draws on hands-on experience building SaaS and AI SaaS billing stacks, from subscription and usage metering to prepaid wallets, dunning and GST-compliant invoicing for domestic and export customers.

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

Insights

More Related Articles

Deferred Revenue and Billing: The SaaS Cash Advantage

ARR-Based Financing: Growth Capital Without Dilution

SaaS Company Structure: India, Delaware or the Flip