Example
You have a Pro plan that gives users100 basic messagesper month, and10 premium messagesper month. These 2 balances are separate and independent of each other. To give your users more flexibility, you instead decide to use a credit system, where:Instead of having 2 separate balances for each message type, your Pro plan can have
basic message: costs 1 credit per messagepremium message: costs 10 credits per message200 creditsper month. Your users can use the credits in any combination of basic and premium messages they want.
Creating a credit system
- Navigate to the features page, under Products.
- Click “Create Credit System”
- Add the features that can draw from this credit system.
- For each feature, define how many credits each unit of usage should cost (eg, 3 credits per “premium request”).
- Click “Create”
ExampleIf each
premium_request is worth 3 credits, then using 6 premium requests will cost 18 credits.Tracking and limiting credit usage
When implementing a credit system into your application, you should interact with the underlying features — not the credit system itself. This means passing in the underlyingfeature_id when checking or tracking usage.
Checking access
Before allowing a customer to use a feature,check if they have enough credits to do so. If each “premium request” is worth 3 credits, then this example will check if the customer has at least 18 credits remaining.
If a feature is not defined in the credit system, it will return
allowed: falseTracking usage
Since the customer has sufficient credits, you can let them use their 6 “premium requests”. Afterwards, you can track the usage to update their balance. This will decrement the customer’s balance by 18 credits (6 requests * 3 credits per request).Monetary credits
You may want your credit system to represent a monetary value: eg, $10 of credits. To implement this, you can map each credit to a cent value (eg, 1 credit = 1 cent).- When creating your credit system, define credit amounts in the per-cent cost
Eg: if each
premium_request costs 3 cents, our credit cost should be 3.- When adding the credits to a plan, set the granted amount of credits in cents
Eg, if customers get 5 USD credits for free, they should have an included usage of
500.- When charging for the credits, set the cost of each credit to 1 cent
Credits Example
FAQs
Do I need two credit systems for “monthly credits” + “one-time credits”?
Do I need two credit systems for “monthly credits” + “one-time credits”?
No — you typically want one balance, and you grant it from two different plan items:
- Monthly subscription grant: credits with
interval: "month"(these reset/expire each month). - One-time top-ups: credits with
interval: "one_off"/ one-off prepaid (these never reset)
What’s the difference between “rollover” and “one-off” credits?
What’s the difference between “rollover” and “one-off” credits?
- One-off credits: do not have a reset, so they don’t need rollover.
- Rollover: only applies to recurring grants (eg, monthly). If rollover is enabled, any unused credits at reset time are carried into the next interval. Over time, this can make the balance grow month-to-month.
Do I have to use a credit system?
Do I have to use a credit system?
Only if you want Autumn to manage the mapping from actions → credit cost.
- If you already compute “credits consumed” in your app, you can skip credit systems and just
tracka single consumable feature likecredits.

