#jared_subscription-proration-invoices

1 messages ยท Page 1 of 1 (latest)

quiet blazeBOT
#

๐Ÿ‘‹ 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.

rigid flare
#

Here's the invoice

tepid wing
#

Hello ๐Ÿ‘‹

Can you share the request ID for the API request where you update the Invoice?

rigid flare
#

Hey! I'm using the TS SDK - where do I find the request id?

tepid wing
rigid flare
#

I would expect the invoice to be $99 * 3 and am confused about the "unused time" entries

tepid wing
#

Ah, that is because of how we prorate

#

The idea is, the customer has already paid for the full billing period at one quantity

tepid wing
#

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)

rigid flare
#

Is the proration_behavior field related to this?

tepid wing
#

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

rigid flare
#

Ok thanks for your help - I'll reach out if I have more questions

tepid wing
#

Great ๐Ÿ™‚ I'm happy to shed what ๐Ÿ’ก I can

quiet blazeBOT