Bill customers based on actual usage at the end of each billing period
Pay-per-use (usage-based) pricing charges customers based on how much of a feature they actually consume, billed at the end of each billing period. This is ideal for products where usage varies significantly between customers.
Example
A notification service charges 1per1,000notificationssent.Acustomerwhosends5,000notificationsinamonthpays5 at the end of that month.
A customer’s usage is tracked via the track endpoint throughout the billing period
Usage first draws down from the included amount (if any) at no charge
Usage beyond the included amount is overage — billed at the configured rate
At the end of the billing period, Autumn generates a Stripe invoice for the total overage
Usage-based features allow overage by default. The check endpoint will return allowed: true even if the customer has exceeded their included balance, as long as a usage-based price is configured.
Check if the customer can use the feature. For usage-based features with overage, allowed is true as long as the feature exists on the customer’s plan:
A common pattern is pairing usage-based pricing with a free plan. Free users are blocked when they exceed their limit, while paying users are billed for overages.