$0K+
Monthly recurring billing processed
0.0%
Invoicing accuracy
0+ hrs
Manual billing time saved / mo
The Challenge
Growing SaaS teams were stitching together spreadsheets and ad-hoc scripts to handle usage-based billing, leading to invoicing errors and delayed revenue recognition.
The Approach
Built a dedicated billing service with a rules engine for usage metering, automated invoice generation, and a self-serve customer portal, integrated into each client's product via a lightweight SDK.
Under the Hood
Event-driven microservices architecture with a Node.js/TypeScript core, PostgreSQL for transactional data, Redis for usage-event buffering, and a queue-based worker fleet for invoicing and retries.
Key Features
- Usage-based, tiered, and seat-based pricing models
- Automated invoicing with retry and dunning workflows
- Self-serve customer billing portal
- Real-time usage dashboards for internal teams
Challenges
- Designing an idempotent event pipeline to avoid double-billing during retries
- Modeling flexible pricing rules (tiered, metered, seat-based) in a single schema
- Keeping invoice generation consistent across time zones and billing cycles
