#aardvark2_api

1 messages ยท Page 1 of 1 (latest)

drowsy pantherBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

drowsy onyx
#

Is this a bug?
No, the invoice preview will show you the upcoming invoice always

small elm
#

So if I increase the quantity from 10 to 11 and each seat costs $100, and I set a proration date of today, then it'll give me an upcoming invoice for today of $100. But if I keep the quantity at 10 and set the proration date of today, it gives me an upcoming invoice for next year of $1000. Why does it do that instead of showing me the invoice for today like I requested?

drowsy onyx
#

Yes that should be the case

small elm
#

So I should not expect it to heed the proration date I set?

#

Wondering why it would be a feature to ignore the given proration date

drowsy onyx
#

proration date is ignored if there is no change on the invoice ? If you want to reset the billing cycle to today then you should use another attribute ?

small elm
#

Why is the proration date ignored though? I would've expected the endpoint to error out and tell us we can't use proration without subscription changes if that's the case

#

The goal is to show the customer how much they will need to pay today

#

Currently we just send the info to that endpoint without checking if anything has actually changed. We were expecting Stripe to tell us $0 due today if nothing has changed. Instead it tells us the entirety of the next billing cycle is due today

drowsy onyx
#

The goal is to show the customer how much they will need to pay today
The customer paid already for the current period... I'm not sure I understand the issue you are facing here

drowsy onyx
#

it just preview the upcoming invoices

small elm
#

but if we set the proration date to today, it just shows us how much they will have to pay today

drowsy onyx
#

No, proration day has effect when there is an update, sorry but I think we are turning around here ๐Ÿ˜…

small elm
#

Right, there should only be a prorated amount when there's a change. If there's no change, the amount should be 0, right?

#

Like why would the API even allow me to set a proration date if there is no change?

#

Shouldn't it tell me the proration date cannot be used if that's the case, instead of just silently ignoring it?

drowsy onyx
#

If there's no change, the amount should be 0, right?
No the invoice preview API returns next invoice.

drowsy onyx