#Gleb-subscription-licenses

1 messages · Page 1 of 1 (latest)

lapis pewter
#

Hi 👋 if you're updating the number of licenses, then yes you want to update the quantity.

scenic eagle
#

Thanks @lapis pewter. There's another thing. In my example when we update from 1 to 2 licenses in the middle of the billing cycle, the invoice is being prorated. Let's say it's $10 per license. So next time they pay - It'll be $20 for the next cycle and $5 for the previous period with the total of $25. But when we go the opposite direction, we don't want to pay the refund. Although, the next cycle should start form 1. We know that there's a way to disable the prorations with prorationBehavior set to none. And it works fine when we know the biggest amount of licenses across the billing cycle. However, we know only the latter amount when we update. Hope this makes sense.
Is there a way to achieve what we want?

lapis pewter
#

Not sure I follow. When you're updating the quantity do you know whether it will be an increase or decrease?

scenic eagle
#

Yes, we know, because we can get the quantity by requesting it from Stripe. So, we want to charge for the maximum amount of licenses across the billing period. For instance, if the period is month:

  1. Jan 1 - the client payed for 1 license;
  2. Jan 2 - the client added 9 licenses (total is 10);
  3. Jan 15 - the client decreased licenses to 5;
  4. Jan 16 - the client added 1 license (total is 6);
    We don't want to prorate anything starting from Jan 2, because it was a point where the client bought 10 licenses in total, which mean that they can use all the 10 up to the Feb 1 no matter how they change their licenses amount unless it's more than 10. But on Feb 1 they start from 6 licenses because that's the amount they ended with.
lapis pewter
#

Hm, this would be a really complex flow, let me think through if our system could support it.