Metered usage is billed as part of the subscription invoice. At the end of each billing period, Spaire tallies each meter, calculates the charge, and adds it to the invoice alongside the base subscription fee.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.
Add a metered price to a product
Metered prices live on subscription products. Each metered price links one meter to the product and sets a price per unit. To add one:- Open a subscription product
- Click Add metered price
- Select the meter
- Set the price per unit
Usage cap
Optionally set a cap on any metered price. If a customer’s usage exceeds the cap during the billing period, they’re charged the cap amount regardless of actual usage. Caps provide predictable maximum charges for customers — useful for plan limits or overage ceilings.How invoicing works
| Billing cycle | When is usage charged? |
|---|---|
| Monthly | Usage aggregated and invoiced at end of each month |
| Yearly | Usage aggregated and invoiced at end of each year |
Discounts and usage charges
A discount applied to a subscription applies to the entire invoice — including metered usage. There is no way to apply a discount to only the base fee or only the metered portion.Cancellation and usage
When a subscription is canceled at period end (cancel_at_period_end: true), usage continues to accrue during the remaining billing period. A final invoice is issued at period end that includes all usage accumulated during the grace period.
If a subscription is revoked immediately, usage accrued up to that point is invoiced at the time of revocation.
Preview the next charge
Use the charge preview API to show customers what they’ll owe before the invoice is generated:Customer portal
Customers can see their current period usage for each meter in the customer portal — the estimated charge for each meter, and their total upcoming invoice.What’s next
Credits
Let customers pre-pay for usage to avoid surprise invoices.
Meters
Define how events are filtered and aggregated into billable units.

