#nshah97_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/1230202238882807899
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Let me do some digging - give me a minute
Aha! So I think you can get that amount by using the Upcoming Invoices API, specifying subscription and subscriptuion_cancel_now: true (https://docs.stripe.com/api/invoices/upcoming#upcoming_invoice-subscription_cancel_now)
Right, so which field in the response would be the prorated refund amount?
You should see it in total
and you can try it out in testmode to see the full response you'd get from the upcoming invoices api
Okay great thank you