Example case
In this example, we have a video transcription service that offers- 10 minutes of free transcription
- Customers can purchase additional minutes in packages of $10 per 60 minutes.
- The packages will have tiered pricing: if they purchase more than 300 minutes, the additional minutes will be $5 per 60 minutes.
Setup
Let’s create our products. We’ll create our base free product and our prepaid package product.Base Product
Included usage will be set to 10, for 10 minutes of free transcription. Since our free minutes don’t refresh (eg, it’s not 10 minutes per month), we set Reset Interval to “no reset”.

Top-up minutes Product
Now we’ll create our top-up minutes product. We’ll set the included usage to 0, and again set Reset Interval to “no reset”. We’ve added a tiered price for the top-up minutes and importantly set the “usage is prepaid” flag. This tells Autumn to expect aquantity to be sent in when a customer attaches this product.


Implementation
Checking if they can transcribe
Whenever our user wants to transcribe a video, we’ll first check if they have enoughtranscription-minutes left.
Autumn automatically created our customer and assigned them the base product.
Using up minutes
Now let’s implement our usage tracking and use up our minutes.check route again, we’ll get allowed: false. We can use this to prompt our user to purchase a top-up.
Purchasing a top-up
For our top-up flow, when a customer clicks “purchase” and chooses a quantity, we’ll use theattach route to get a Stripe Checkout URL for them to make a payment.
- 300 minutes at $10 per 60 minutes = $50
- 120 minutes at $5 per 60 minutes = $10



