Example
An AI platform lets users buy 500 credits for $10 as a one-time purchase. The credits never expire and can be used at any pace.
Setting up
- CLI
- Dashboard
Set Preview with
interval: "one_off" on the plan’s price, or on the item price, for a one-time charge:autumn.config.ts
atmn push, then apply with atmn push --yes.How it works
When a customer purchases a one-off plan:- Autumn creates a Stripe invoice (not a subscription) and charges it immediately
- The feature balance is provisioned with the purchased quantity
- The balance has a
one_offinterval — it never resets or expires
One-off purchases don’t create Stripe subscriptions. They generate a one-time invoice instead.
Purchasing a one-off plan
For prepaid one-off plans, pass the desiredquantity via the options array:
One-off prices within a subscription
A subscription plan can include both recurring and one-off prices. When it does, Autumn splits them at checkout:- Recurring prices bill every cycle as part of the Stripe subscription
- One-off prices are charged once on the first invoice only
Example
A Pro plan charges $20/month plus a one-time $50 setup fee. The customer’s first invoice is $70, and subsequent invoices are $20.
- CLI
- Dashboard
Add a non-consumable feature for the setup fee, then include it as a separate one-off item alongside the recurring base price:When you attach the plan, you can select a quantity for the setup fee. The $20/month base price recurs on every invoice. The setup fee item is charged once on the first invoice only.
autumn.config.ts