Example
A customer on a plan with 1,000 credits/month only uses 600 in January. With rollovers enabled, the remaining 400 credits carry over — giving them 1,400 credits available in February.
Setting up
- CLI
- Dashboard
Add a Push changes with
rollover config to a plan item:autumn.config.ts
atmn push.Rollover configuration
| Field | Description |
|---|---|
max | Maximum amount that can roll over. Set to null for no cap. |
expiryDurationType | "forever" (never expires) or "month" (expires after N months) |
expiryDurationLength | Number of months until rollover balances expire. Ignored if type is "forever". |
How rollovers work
At the end of each billing cycle, when a feature’s balance resets:- Autumn checks how much unused balance remains
- If rollovers are configured, the unused balance is saved as a rollover balance
- The feature resets to its granted amount, and the rollover is added on top
- If a
maxcap is set, the oldest rollover balances are trimmed first (FIFO) - Expired rollover balances are removed automatically
Viewing rollover balances
Rollover balances appear in thebreakdown array when you retrieve a customer’s balances. Each rollover entry has its own expiry date:
Deduction order
Rollover balances are treated asone_off (lifetime) balances. Because Autumn’s deduction order uses shorter intervals first, monthly balances are consumed before rollover balances — ensuring that new allocation is used before carried-over amounts.
Rollovers are only available on
consumable features with a reset interval. Non-consumable features (like seats) don’t reset and therefore don’t support rollovers.
