SaaS Billing Engine

Platform-level subscription plans, add-ons, proration, grace periods, and automated invoicing.

Subscription Plans

๐ŸŒฑ
Starter
โ‚น999
/month ยท โ‚น10,190/year
  • Admin Users 1
  • Donors Limit 500
  • Donation Causes 5
  • PDF Receipts โœ…
  • GauCoins Module โŒ
  • Cow Adoption โŒ
  • Membership โŒ
  • Events 3/month
  • Gallery Storage 1 GB
  • Support Community
โšก
Standard
โ‚น2,499
/month ยท โ‚น25,490/year
  • Admin Users 5
  • Donors Limit 5,000
  • Donation Causes 20
  • PDF Receipts โœ…
  • GauCoins Module โœ…
  • Cow Adoption 25 cows
  • Membership 3 tiers
  • Events Unlimited
  • Gallery Storage 10 GB
  • Support Priority
โญ MOST POPULAR
โญ
Premium
โ‚น4,999
/month ยท โ‚น50,990/year
  • Admin Users 20
  • Donors Limit 25,000
  • Donation Causes Unlimited
  • PDF Receipts โœ… Custom
  • GauCoins Module โœ… Advanced
  • Cow Adoption Unlimited
  • Membership Unlimited
  • Events Unlimited
  • Gallery Storage 50 GB
  • Support Dedicated
๐Ÿ†
Enterprise
Custom
/month ยท Custom/year
  • Admin Users Unlimited
  • Donors Limit Unlimited
  • Donation Causes Unlimited
  • PDF Receipts โœ… White-label
  • GauCoins Module โœ… Custom
  • Cow Adoption Unlimited
  • Membership Unlimited
  • Events Unlimited
  • Gallery Storage Unlimited
  • Support SLA + CSM

Platform Add-ons

๐Ÿ‘ค
Extra Admin Seats
Add more tenant admin users beyond plan limit
โ‚น299/seat/mo
๐Ÿ’ฌ
Bulk SMS Credits
Transactional SMS for OTP, receipts, reminders
โ‚น199/1,000 SMS
๐Ÿ’พ
Extra Storage
Additional S3 storage for media and PDFs
โ‚น149/10GB/mo
๐Ÿ“Š
Advanced Analytics
Cohort analysis, donor LTV, retention metrics
โ‚น499/mo
๐ŸŒ
Custom Domain SSL
Bring your own domain for admin panel
โ‚น99/mo
๐ŸŽฏ
Priority Support SLA
Dedicated Slack + 4-hour response SLA
โ‚น999/mo
โšก
API Rate Limit Boost
Increase API limits 10x for high-volume use
โ‚น299/mo
๐Ÿ“ฑ
White-label Mobile
Custom Play Store / App Store listing
โ‚น4,999 one-time
๐Ÿ“ฆ
Data Export Service
Full data export (donors, transactions, history)
โ‚น199/export

Billing Lifecycle

Day 1
Invoice Generated
Monthly invoice created at subscription renewal date
Day 7
Payment Due
Invoice due date. First payment attempt.
Day 8
Grace Period Starts
Tenant enters GRACE state. Full functionality maintained. Reminder sent.
Day 12
Grace Reminder
Second payment retry. Urgent reminder via email + SMS.
Day 15
READ_ONLY Mode
Write operations blocked. Donors can still view. Final payment retry.
Day 22
SUSPENDED
All access blocked. Data retained. Reactivation possible on payment.
Day 90+
TERMINATED
Data deletion begins after 90 days post-suspension.

Proration Rules

Plan Upgrade (mid-cycle)
Credit = (remaining_days / cycle_days) ร— (new_price - old_price)
Plan Downgrade
Effective from next billing cycle. No refund.
Annual โ†’ Monthly Switch
Not allowed mid-cycle. Effective at annual end.
Add-on Purchase
Immediate. Prorated for remaining cycle days.
Add-on Cancellation
Effective at end of billing cycle.
BillingProvider Interface (TypeScript)
export interface BillingProvider {
  createSubscription(params: {
    tenantId: string;
    planId: string;
    billingCycle: 'monthly' | 'yearly';
  }): Promise<Subscription>;

  upgradeSubscription(params: {
    subscriptionId: string;
    newPlanId: string;
  }): Promise<{ prorationCredit: number }>;

  generateInvoice(
    subscriptionId: string
  ): Promise<Invoice>;

  retryPayment(
    invoiceId: string
  ): Promise<PaymentResult>;

  applyGracePeriod(
    tenantId: string
  ): Promise<void>;

  suspendTenant(
    tenantId: string,
    reason: string
  ): Promise<void>;
}

Sample Invoice (PDF Template)

Handlebars Template
๐Ÿ„
Gaudaan
Platform Invoice
INVOICE
INV-2025-0248
01 March 2025
Billed To
Dharma Gau Raksha
Mumbai, Maharashtra
GSTIN: 27ABCDE1234F1Z5
Invoice Details
Period: Mar 01 โ€“ Mar 31, 2025
Due: Mar 07, 2025
PAID
Description Amount
Enterprise Plan โ€“ Monthly
Unlimited donors, all modules, SLA support
โ‚น8,474.58
GST @ 18% โ‚น1,525.42
Total โ‚น9,999.00
Gaudaan Technologies Pvt Ltd ยท PAN: XXXXX1234X ยท GSTIN: 27XXXXX1234X1Z5