Handle subscriptions, payments, and usage tracking for all your products
Full Stripe support for subscriptions, invoices, and webhooks
Track usage per customer and enforce limits automatically
One billing service for all your SaaS products
curl -X POST http://localhost:8500/customers \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com", "company_name": "Acme Corp"}'
curl http://localhost:8500/plans?product=push_api
curl -X POST http://localhost:8500/subscriptions \
-H "Content-Type: application/json" \
-d '{"customer_id": 1, "plan_id": 2, "payment_method": "pm_card_visa"}'
curl -X POST http://localhost:8500/usage \
-H "Content-Type: application/json" \
-d '{"customer_id": 1, "service_name": "push_api", "metric_name": "notifications_sent", "quantity": 100}'
| Method | Endpoint | Purpose |
|---|---|---|
| POST | /customers | Create customer |
| GET | /customers/{id} | Get customer |
| GET | /products | List products |
| GET | /plans | List pricing plans |
| POST | /subscriptions | Create subscription |
| DELETE | /subscriptions/{id} | Cancel subscription |
| POST | /usage | Record usage |
| GET | /usage/{customer_id} | Get usage stats |
| POST | /webhooks/stripe | Stripe webhooks |
| GET | /health | Health check |