Lago
PlatformOpen-source metering and billing engine for usage-based and hybrid pricing
- Erişim
- API key
Hakkında
Open-source billing platform that turns usage events into invoices for usage-based, subscription and hybrid pricing. Self-host the AGPL-3.0 code with Docker, or use Lago Cloud in the US or EU. Payments go through connected providers such as Stripe or Adyen.
Neler yapabilirsin
- Ingest usage events and aggregate them into billable metrics
- Price plans with usage, seats, prepaid credits, commitments and fixed fees
- Generate invoices and show customers their current usage in real time
Başlarken
- Self-host with Docker Compose or sign up for Lago Cloud
- Create an API key
- Create a billable metric, a plan and a subscription
Örnek kod
curl -X POST https://api.getlago.com/api/v1/events \
-H "Authorization: Bearer $LAGO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"event": {"transaction_id": "txn_0001", "external_subscription_id": "sub_1234567890", "code": "api_calls", "properties": {"custom_field": 12}}}'Ayrıntılar
- Barındırma
- Hazır hizmet (bulut), Kendi sunucunda
- Kullanılabildiği yerler
- Tüm dünya
- Resmi SDK'lar
- JavaScript/TypeScript, Python, Ruby, Go
- MCP sunucusu
- Yerel sunucu