#connie_docs
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/1329545722072273029
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
There is a lot going on here -- can you be a bit more specific? Just one example with what you expected to see versus what you actually saw?
Sure. I added an agent (one of our products), which updates the associated Stripe subscription and triggers a proration. This is the ID of an invoice with a line item representing the prorated amount to charge the customer for the additional agent, and another line item which is a credit for the unused time - in_1QhcVJLBCOYLGWIcKPJFffEJ. This is the expected behavior.
But when we created a proration before this, the customer was charged for the prorated amount, but there was no credit line item (ID for that invoice: in_1QhbkDLBCOYLGWIcFSdeO7xe)
Thanks, taking a look
Just a heads up that the server is quite busy right now so this is going to take a few minutes.
Nothing is immediately jumping out to me.
The fact that you have made so many updates on this Subscription does make it hard to debug though.
Could you create a fresh Subscription and make a single update that reproduces the behavior?
I could not reproduce the first behavior; it only happened twice. We have only been able to reproduce the second one consistently (where the credit item does get applied).
Hmm yeah I would not have expected there to not be a proration credit there...
Yeah. I was curious if having a "past due" monthly invoice could prevent the credit line item from getting applied (this was the past due invoice I was referring to: in_1QSEUxLBCOYLGWIcYUivVOep). I wish I thought of it sooner before all those updates were made ๐
No that shouldn't matter.
Proration doesn't take into account the status of the previous Invoice
(That is a common confusion with Stripe Billing)
Ah okay, good to know. Thanks for clarifying that.
So just for my reference, would there ever be a reason that the credit line item would not be applied in cases where we increase a quantity of a subscription line item that results in a proration?
Really only if you were setting proration_behavior: 'none' as far as I know.
Oh or using Metered billing -- proration doesn't apply in that case.
Okay, so when we're not using metered billing, and we set proration_behavior: 'always_invoice', we can always expect an invoice with one line item representing the prorated amount to charge and another line item representing the credits for unused time?
Yes