Sell units the customer pays for up front
The price is the pack. The included units are what that payment buys. Card, Wave, and MTN pay it on checkout. Events spend the units. A low balance buys the same pack again.
This period
API calls
12 400 of 20 000
Est. 24 000 F CFA
How it works
Create a pack
Set the price and how many units it buys, in the dashboard or with the API.
The customer pays
Hosted checkout takes card, Wave, or MTN. A completed payment credits the units.
Events spend units
Send usage as it happens. A short balance refuses the event and spends nothing.
A low balance buys another pack
Under 20% of the last pack, a saved card is charged, or the customer gets the checkout link.
Use with other lomi. products
What is lomi. usage billing?
Usage billing sells a prepaid pack. The customer pays first. Events spend the units.
Key facts
- The price is what the customer pays. included_units is how many units that payment buys.
- Card, Wave, and MTN pay the pack on hosted checkout.
- Events spend quantity. A short balance is refused and nothing is consumed.
- Under 20% of the last pack, a saved card is charged or the customer gets the same checkout link.
Usage billing vs checkout subscriptions
Subscriptions bill a fixed amount each period. Usage billing sells a prepaid pack of units.
How usage billing works
- Create a usage product with a pack price and included units.
- Send checkout so the customer pays before events can spend units.
- Send usage as it happens. Retries with the same event id are safe.
- Read the meter balance to show units still available.