SaaS Billing & Subscription API

Jan 2025 → Apr 2025

A custom subscription billing and invoicing integration built for a B2B SaaS startup, handling multi-tenant billing, metered usage, and automated invoicing.

go
stripe
redis
docker

Overview

A robust, multi-tenant billing system integrated with Stripe for a B2B SaaS platform. The service tracks customer usage and automatically calculates monthly subscription charges based on metered API consumption.

Key Features

  • Metered Billing: High-throughput usage ingestion pipeline using Redis for caching and buffering.
  • Stripe Integration: Deep integration with Stripe Billing for handling subscriptions, coupons, and failed payments.
  • Automated Invoicing: Custom invoice PDF generation and automated email delivery.

Tech Stack

  • Backend: Go (Golang)
  • Caching & Queueing: Redis
  • Database: PostgreSQL
  • External APIs: Stripe API