Usage-based billing charges customers based on how much they actually use your product. This guide walks through setting up metered billing end-to-end.Documentation Index
Fetch the complete documentation index at: https://docs.monigo.co/llms.txt
Use this file to discover all available pages before exploring further.
Overview
1. Define a metric
A metric is a named unit of measurement. Create metrics in Dashboard → Metrics or via the API. Common examples:api_calls— number of API requestsstorage_gb— gigabytes of data storedtransactions— payment transactions processedactive_users— monthly active users
2. Create a pricing plan
A Plan defines how metrics map to prices. Monigo supports: Flat rate — fixed price per unit3. Subscribe a customer to a plan
4. Ingest usage events
Send events in real time as your customers use your product:5. Billing cycle end
At the end of each billing period, Monigo:- Aggregates all usage for each customer
- Applies pricing tiers
- Generates an invoice
- Triggers payment via your connected provider
- Delivers a
invoice.paidorinvoice.failedwebhook

