#amoriceee-upcominginvoice-prorations

1 messages ยท Page 1 of 1 (latest)

icy sleetBOT
median harness
#

Hi ๐Ÿ‘‹

Can you share the ID of an Invoice where the unexpected proration occurs?

mild mica
#

Sure the invoice ID is 904F0657-0145

median harness
#

Sorry, can you share the Stripe invoice ID? It will start with inv_

mild mica
#

I don't have the issue on a finalised invoice as I'm just testing and the subscription was just set up

median harness
#

Okay so where are you seeing the unexpected proration?

mild mica
#

This is for an upcoming invoice

#

It shows the stripe calculations above

median harness
#

Can you share the ID of the Subscripton you are updating? The screenshot isn't really helpful to me

mild mica
#

Sure this is the subscription id

#

sub_1OVGdnBWUfYmuqbZcNluiU3d

median harness
#

Okay and what is the update you are intending to make?

mild mica
#

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

median harness
#

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?

mild mica
#

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

median harness
#

You went from 204 to 306. I'm not sure I understand where the problem is

mild mica
#

Okay sorry i think i understand now

#

its also increasing the quantity for the next billing cycle, which is why its doubling each time

median harness
#

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.

mild mica
#

Perfect, thanks for your help

median harness
#

Great ๐ŸŽ‰ I am happy I was able to assist ๐Ÿ™‚