#akam-proration

1 messages · Page 1 of 1 (latest)

indigo pike
#

Hello!

#

Give me a minute to read through this

#

Yes, you can do this - at the end of the first quarter you'd update the subscription from quantity: 100 -> quantity: 150 and also set proration_behavior: always_invoice(https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior). This will immediately update the Subscription, calculate any needed prorations because of the quantity change, and then invoice them immediately. Because you're just updating the quantity we won't reset the billing cycle anchor (we don't reset the billing cycle anchor is select situations like when a trial ends or you move from a yearly -> monthly price)

winged flame
#

oh, ok. i thought i saw somewhere that any prorating behavior like this automatically reset the anchor. glad to know it might not

indigo pike
winged flame
#

when i do that in test mode, only updating qty, with proration on, and invoice immediately, I only see an invoice that includes the prorated amount + the next year's total. I can see the remaining time on the new qty, the unused time on the prior qty, but also a line item for the next year's term at the new qty

indigo pike
#

Are you doing this through the API or the dashboard?

winged flame
#

That was via dashboard. Eventually would be api

indigo pike
#

Yeah that would explain it - the dashboard is using create_prorations under the hood (which has different behavior from always_invoice). If you use always_invoice with the API you should see the behavior you're aiming for