#chongz_api

1 messages ¡ Page 1 of 1 (latest)

native vigilBOT
#

👋 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/1303545724226637916

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

covert rivet
#

Stripe doesn't refund the automatically when a subscription is canceled. It will only create the credit to the customer credit balance: https://docs.stripe.com/billing/customer/balance

If you wish to refund the amount, I'd recommend checking the guide on how do this: https://support.stripe.com/questions/refunding-credit-balance-to-customer-after-subscription-downgrade-or-cancellation

Learn how to use the customer credit balance.

alpine cove
#

Got it, that's helpful thank you. This is somewhat tangential, but if I have pending invoices on my Stripe account for customers is there a pretty straightforward way to bulk aggregate those and generate refunds based on the pending invoice amounts to the relevant customers?

covert rivet
#

No, I'm afraid there is no bulk way to do this

alpine cove
#

Got it - as a follow-up is there a way to view all pending invoices through Stripe's UI?

covert rivet
#

Just to be clear, do the pending invoices here refer to the invoices in draft status? Or do you mean the customer credit balance?

alpine cove
#

In this context they'd appear under Pending invoice items when looking up the customer. I'll try to find an example

#

It looks like this

covert rivet
#

Thanks for sharing! When invoice_now isn't set during subscription cancelation: https://docs.stripe.com/api/subscriptions/cancel#cancel_subscription-invoice_now, the proration will be created in the form of pending invoice items instead of creating the credit to the customer credit balance. The pending invoice item will be applied to the next invoice of the customer.

Stripe Dashboard doesn't have a single UI to display all the pending invoice items for all customers. Pending invoice items are only available per customer.

alpine cove
#

Makes sense thanks! To be clear though, even if I set invoice_now that won't help with regards to refunding them, so I should instead update_subscription in some way

covert rivet
#

To be clear though, even if I set invoice_now that won't help with regards to refunding them,
Yup. Manual refund is still required from the customer credit balance as suggested here: https://support.stripe.com/questions/refunding-credit-balance-to-customer-after-subscription-downgrade-or-cancellation

so I should instead update_subscription in some way
Yes. This is recommended, so that the any proration amount can be applied directly to the invoice from the updated subscription.

native vigilBOT
alpine cove
#

Got it - thanks for the help @covert rivet !