Credits are pre-purchased units that sit against a customer’s meter balance. When events are ingested, Spaire deducts from the credit balance first. If the balance hits zero, usage continues and any overage is charged on the next invoice. This lets you offer prepaid plans — customers buy a block of credits and consume from it, rather than accumulating an unknown bill throughout the month.Documentation Index
Fetch the complete documentation index at: https://docs.spairehq.com/llms.txt
Use this file to discover all available pages before exploring further.
How credits work
- You attach a Credits benefit to a product
- When a customer purchases or subscribes, Spaire issues credits to their meter balance
- Ingested events deduct from the credit balance first
- If credits run out, usage accrues and is charged at the end of the billing period via the metered price
- At the start of each new subscription cycle, credits are topped up again
Credits-only mode (no overage billing)
To offer a pure prepaid model with no overage charges:- Add a Credits benefit to your product
- Do not add a metered price to the product
Issue credits with the Credits benefit
The Credits benefit is configured per product and issues credits automatically at purchase time. For subscription products — credits are issued at the beginning of each billing cycle (monthly or yearly). On renewal, the balance is topped up to the specified amount. For one-time products — credits are issued once at time of purchase. They do not renew. To add a Credits benefit to a product:- Open the product
- Under Benefits, add a Meter Credits benefit
- Select the meter this benefit applies to
- Set the number of units to issue
Check a customer’s balance
Customer State API — returns the full customer overview including active meter balances:What’s next
Event Ingestion
Ingest events that deduct from the credit balance.
Billing
How overage charges work when credits run out.

