#maks25-pricing-model
1 messages · Page 1 of 1 (latest)
Hi
yeah you'd have to update the item object with the right quantity
How do I get the item obj?
Within the dashboard that is
Oh I see
it's the si_XXXXX id
Thank you
Are the subscription_item_id items completely unique. Or can there be collissions within multiple customers?
ok thanks
And then my last question is regarding prorations
We bill based on quantity. So I just want to make sure that whatever the max quantity was in any given month, it gets billed for that.
Ex. A customer had 15 units at the beginning of the month, then 25 unites and then on the last day only 18. I want them to be billed for 25 without any pro-rata.
Are the subscription_item_id items completely unique. Or can there be collissions within multiple customers?
I haven't tested this yet so could be wrong but since the subscription item ids are linked to a subscription which is unique, i'd expect item ids to be unique as well
ok, thank you
What about charging based on the max quantity for the period?
Do you know what the setting for that would be?
We are using Graduated Pricing
Can you share a price ID for one of these prices?
Price IDs aren't sensitive. No one could access it unless they had your Stripe secret key.
Okay so the first thing to recognize about this price object. It's licensed, not metered. So this will bill at the start of the period. Not the end.
this is the recurring.usage_type property.
So you can change this to usage_type = metered. In that case you can also the aggregate_usage property to set how usage should be aggregated for the billing period.
Ex. A customer had 15 units at the beginning of the month, then 25 unites and then on the last day only 18. I want them to be billed for 25 without any pro-rata.
How would you know what to bill then?
Yeah this would need to bill at the end of the period to understand how much to charge.
I guess the best option is to the pro-rata
then*
Is there a way not to pro-rata down until the end of the period?
You mean if they change their subscription amount during the billing period?
yes
Basically what I am trying to accomplish is them paying for the max number of items per month, but billed in advance.
So if they go from 20 to 21 items mid month. They would be billed an additional 1 item for that month, mid month
But if they then go down from 21 to 20 before the next billing starts, they don't get reinbursed.
Obviously on the next cycle if the amount is 20, they will only get charged for 20
Right, That is the use case for the recurring.aggregate_usage property. It specifies how to calculate the amount to charge.
I see
If you use recurring[aggregate_usage]: max that will set the price as the max for that period.
Thank you
Now, if I update the price obj to that. When I update the quantity on the item, I can then leave the parameter proration_behavior out right? Or should I set it to 'none'
I would run a few tests on this first to make sure the behavior is exactly what you expect.
I hope it works out well for you!
Thank you