#amoriceee-upcominginvoice-prorations
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Can you share the ID of an Invoice where the unexpected proration occurs?
Sure the invoice ID is 904F0657-0145
Sorry, can you share the Stripe invoice ID? It will start with inv_
I don't have the issue on a finalised invoice as I'm just testing and the subscription was just set up
Okay so where are you seeing the unexpected proration?
Can you share the ID of the Subscripton you are updating? The screenshot isn't really helpful to me
Okay and what is the update you are intending to make?
I'm looking to update the subscription quantity for Additional Users
But everytime i made an update to the quantity, they're being charged for an extra user each time a request is made
Stripe calculates prorations by taking the difference between the the remaining time on the old quantity and the new. It creates more line items that can look confusing but the amount should be correct.
Can you paste the line items from the Upcoming Invoice API here betweeng three ` marks?
I'm going to recreate the issue on a fresh subscription and get back to you
The subscription id is
sub_1OWMv7BWUfYmuqbZvRVR00wB
This is the subscription when initially set up
This is after an extra user has been added
After a single user has been added, the total payable has increased by 204 GBP rather than 102 GBP
You went from 204 to 306. I'm not sure I understand where the problem is
Okay sorry i think i understand now
its also increasing the quantity for the next billing cycle, which is why its doubling each time
Yup! And it's applying the proration to next billing cycle.
It might be helpful to use Test Clocks https://stripe.com/docs/billing/testing/test-clocks to simulate stepping through time with this subscription. Then you can review how the invoices are generated and how much the customer is charged.
Perfect, thanks for your help
Great ๐ I am happy I was able to assist ๐