#yesmeno
1 messages · Page 1 of 1 (latest)
hi there!
it's the maxium value during the period, so yes it will reset at the next period.
so you'll need to implement some logic on your end for this to work as you want to.
Thanks @deep veldt ! Is there some recommendation on how to do this? I'm thinking of storing when a subscription will renew, and then report the usage a day after, and then only report if there is a change...
but maybe isntead of using usage, you could just have a regular Subscription and increase the quantity when needed? https://stripe.com/docs/api/subscriptions/create#create_subscription-items-quantity
Ah... is there an advantage of doing it like this? So instead of just reporting a new usage (with set) I'd just update the quantity of the subscription?
Ah... is there an advantage of doing it like this?
based on the use case you just described, it would be much simpler.
So instead of just reporting a new usage (with set) I'd just update the quantity of the subscription?
correct
I recommend doing some tests in test mode to see if that works as expected
and you can use Test Clocks to help you with this: https://stripe.com/docs/billing/testing/test-clocks
Ah and with prorated prices that would actually be exactly what I want.
Can I prevent customers from changing the quantity themselves? Even if they have the customer portal ?
yes the customer as many options to restrict what customers can/cannot do