billing

A unified billing platform for multiple SaaS products

Billing Hub is a billing platform used across multiple SaaS products. Built on Stripe, it handles subscription contracts, coupons, and one-time charges through a single External API, and notifies each service of events such as completed payments and subscription cancellations via signed webhooks. Failed deliveries are retried automatically. The subscription state of record is kept in DynamoDB and updated from Stripe's inbound webhooks.

Key Features

External API

A REST API for plans / checkout / subscriptions / coupons / credits / usage-credits / referrals, authenticated with an x-api-key.

API Key Authentication

API keys with a `bh_live_` prefix are stored as SHA-256 hashes and scope access to a serviceId.

Signed Outbound Webhooks

Webhooks signed with HMAC-SHA256 are sent to registered services, with up to 3 automatic retries on 5xx responses.

Stripe-based Payments

Supports creating Stripe Checkout sessions, validating coupons, adding one-time charge items, and setting trial days.

Subscription / Billing / Credit Management

Keeps the subscription state of record in DynamoDB and reflects updates received via Stripe webhooks.

Admin / Self-Service UI

Provides an admin screen for operators and a self-service screen (manage) where users can manage their own subscriptions and coupons, authenticated via Onion SSO.

Status: Internal Platform

See other products

Contact us about billing

Reach out if you're interested in integrating.

billing – Unified billing platform for SaaS products