Example
A project management tool offers a Pro plan at $20/month that includes 10 seats, 50GB storage, and SSO access.
Setting up
- CLI
- Dashboard
Define a recurring plan in your Push changes with
autumn.config.ts:autumn.config.ts
atmn push.Attaching a subscription
Use billing.attach to attach a subscription to a customer. WithredirectMode: "always", a checkout URL is always returned for the customer to complete payment or confirm the plan change.
- Creates a Stripe subscription with the plan’s prices
- Provisions balances for each feature in the plan
- Starts the billing cycle based on the plan’s interval
Billing intervals
Plans support the following billing intervals:| Interval | Description |
|---|---|
week | Billed every week |
month | Billed every month |
quarter | Billed every 3 months |
semi_annual | Billed every 6 months |
year | Billed annually |
pro_monthly plan and a pro_annual plan.
You can also configure a custom interval_count to charge at non-standard intervals (e.g., every 2 months).
Managing subscriptions
Once a customer has an active subscription, you can manage upgrades, downgrades, and cancellations. See Managing Subscriptions for details on:- Upgrades — prorated charges for switching to a higher-priced plan
- Downgrades — scheduled at end of billing period
- Cancellations — immediate or end-of-period
Subscription statuses
| Status | Description |
|---|---|
active | Subscription is in good standing |
trialing | Customer is in a free trial period |
past_due | Payment failed, needs attention |
scheduled | Will activate at end of current billing period (e.g., downgrade) |
expired | Subscription has ended |

