Overview
The billing lifecycle describes how customer subscriptions progress from creation through renewal, upgrades, cancellation, and expiration. Autumn handles all the complexity of managing this lifecycle automatically.Subscription States
Customer subscriptions (CustomerProduct) go through several states:
State Definitions
trialing
- Customer is in free trial period
- Full access to features
- No payment required yet
- Automatically transitions to
activewhen trial ends
active
- Subscription is active and paid
- Customer has full access
- Recurring billing happens automatically
past_due
- Payment failed but subscription still active
- Stripe retries payment automatically
- Customer may have limited access (configurable)
- Transitions to
unpaidafter max retry attempts
canceled
- Subscription is canceled but still active until period end
- Customer retains access until
ended_attimestamp - No renewal will occur
unpaid
- Payment failed after all retry attempts
- Subscription is effectively ended
- Customer loses access
ended
- Subscription fully terminated
- No access to features
- Can be reactivated by attaching a new product
Billing Cycles
Billing cycles determine when customers are charged:Subscription Billing
Recurring charges happen at the interval defined in the price:Billing Anchor
The billing anchor determines when the first charge occurs and sets the cycle:By default, the billing anchor is set to the subscription start time. You can customize it to align billing across multiple subscriptions or to a specific day of the month.
Usage Billing
Usage-based charges are billed at the end of each period:Subscription Creation
When a customer subscribes via/attach:
1. Product Attachment
2. Checkout Flow
For paid products, Autumn returns a Stripe Checkout URL:3. Subscription Activation
After successful payment:- Stripe sends webhook to Autumn
- Autumn creates
CustomerProductrecord withstatus: "active" - Customer gets immediate access to features
- Entitlements are activated
Free Trials
Free trials give customers temporary access before payment:Customers can only use each free trial once. If they previously trialed a product, they’ll be charged immediately on re-subscription.
Upgrades and Downgrades
Autumn automatically handles plan changes:Upgrade (to higher-priced plan)
- Proration calculated: Customer gets credit for unused time on Starter
- Immediate charge: Prorated amount for Pro plan
- Access granted: Instant access to Pro features
- Billing aligned: Next charge on original billing date
Downgrade (to lower-priced plan)
- Schedule change: Downgrade scheduled for end of billing period
- Continued access: Customer keeps Pro until period ends
- No immediate charge: Credit applied to next invoice
- Switch occurs: Starter plan activates on renewal date
Downgrades are scheduled (not immediate) to ensure customers get the full value of what they paid for.
Add-ons
Add-on products can be attached alongside base plans:- Both subscriptions bill independently
- Can have different billing cycles
- Can be canceled independently
Cancellation
Two types of cancellation:1. End of Period Cancellation
2. Immediate Cancellation
Payment Failures
When a payment fails:1. Initial Failure
2. Automatic Retries
Stripe automatically retries failed payments:- Retry 1: After 3 days
- Retry 2: After 5 days
- Retry 3: After 7 days
- Retry 4: After 9 days
3. Successful Retry
4. Final Failure
Invoices
Autumn generates invoices for all charges:Subscriptions Object
Autumn tracks Stripe subscriptions:- Track billing periods
- Aggregate usage across multiple features
- Sync with Stripe subscription lifecycle
Next Steps
- Learn about Products and Plans to understand what customers subscribe to
- Explore Pricing Models to configure billing
- Read about Customers to manage customer state
- Check the API Reference for
/attachand subscription management