#jared_subscription-proration-invoices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1299072818276728852
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello ๐
Can you share the request ID for the API request where you update the Invoice?
Hey! I'm using the TS SDK - where do I find the request id?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
I would expect the invoice to be $99 * 3 and am confused about the "unused time" entries
Ah, that is because of how we prorate
The idea is, the customer has already paid for the full billing period at one quantity
req_P8K3LjLiASWZ5g
The "unused time" line item credits them back for the time remaining in the billing period at the old quantity
Then we bill the remaining time for the current billing period at the new quantity
So
- "unused time" = the remaining time on the old quantity
- "remaining time" = the remaining time on the new quantity
(remaining time of the current billing period)
Is the proration_behavior field related to this?
Kind of but not really. That just determines if we will add the line items to the upcoming invoice (default behavior) or create a brand new invoice just for the changes
Our API reference doc has a pretty decent explanation of this here: https://docs.stripe.com/api/subscriptions/update
Ok thanks for your help - I'll reach out if I have more questions
Great ๐ I'm happy to shed what ๐ก I can