#sumeetcallenqcom_api
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/1347572517413322843
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, looking on my end
ok
It looks like that subscription has multiple metered usage prices. I know discount was at play when I saw this error last but does not seem to be the case here. Still looking
I see, https://docs.stripe.com/api/invoices/object#invoice_object-total_pretax_credit_amounts from looking at this event: https://dashboard.stripe.com/test/events/evt_1QzdiBHJgsdx4qPxwFP7WMKw
Since this is a subscription, prorations are calculated as well: https://docs.stripe.com/billing/subscriptions/prorations
I deleted those prorations line items as soon as invoice is created
What do you mean? Can you add a bit more context please?
when a subscrption invocie is triggered by billing threshold, stripe generates proration automatically
for which I have no control over it and I already discussed it in discord earliar, that separate issue
so for work around, what I do is as soon as invoice is created with proration, which is not needed in my case, I delete it on invoice.created webhok
This invoice was refunded fine
https://dashboard.stripe.com/test/invoices/in_1QzHtRHJgsdx4qPxJEIId9Lp
I could suspect 2 things here
Earlier invoice refund either failed due to proration or credit grants applied
Can you please look in context of credit grants, becasue it had credit grants applied to metered price line items ?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hi
I wil be away from keyboard for an hour, can we be still connected ?
We document it here: https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits/implementation-guide
It looks like it's related to credit grants and prorations.
It is best to have a live conversation and we close an inactive thread
ok,
I will do one thing
I will come up with more cases and figure where the issue is and will come back to discord
Sounds good!
Thank you