#mclowrider_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/1470792419669839955
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello jazz
Hello! Taking a look ๐
Sure ๐๐พ
When cancelling a subscription, the auto_advance property on outstanding invoices is set to false so it's up to you whether you want to collect payment. https://docs.stripe.com/billing/subscriptions/cancel#handle-invoice-items-when-canceling-subscriptions
For the subscription you shared, the invoice.payment_failed event happened due to a retry of a payment that was already in progress before cancelling the subscription. This is safe to ignore if you don't with to collect payment.
That subscription was canceled by the API though. It wasnt as a result of a request?
Do we still need to explicitly delete all invoices even thouigh the subs was deleted by Stripe?
Also, why was the subscription deleted in this scenario whilst payment was in progress?
Your integration sent an API request to cancel the subscription here: https://dashboard.stripe.com/acct_1Eqgp1B6RcW2vRiF/logs/req_6eHvav9yfUUNCa
No problem! It looks like that happened while the customer was in the middle of payment through the customer portal.
Yeah, it does. So we have to delete the invoices in this case?
You cannot delete finalized invoices but it's your choice whether you collect payment, leave the invoice as open and uncollected, void it, etc. according to your business accounting needs.
So when we void the invoices, do payments stop being attempted? And no payment evensts would be sent after that point?
Also is there a setting we can set for the API to auto-delete invoices when subscriptions are deleted?
hi there, taking over for jazz as they had to step away, one moment
when you cancel a subscription, collection attempts are automatically disabled. see https://docs.stripe.com/billing/subscriptions/cancel#handle-invoice-items-when-canceling-subscriptions
When you cancel a subscription, all open and draft invoices for that subscription have their auto_advance property set to false. This pauses automatic collection for these invoices and prevents automatic reminder emails from sending. You can still manually attempt to collect payment and send emails.
We still got a paymnet failed event though after the sub was cancelled
right, because that payment attempt was already in-progress before the Subscription was cancelled
the Invoice went into payment_action_required here, at 2026-02-07 19:52:34 UTC: https://dashboard.stripe.com/acct_1Eqgp1B6RcW2vRiF/events/evt_1SyHYVB6RcW2vRiFxCGiHQzw
and the Subscription was deleted here, at 2026-02-07 19:57:03 UTC: https://dashboard.stripe.com/acct_1Eqgp1B6RcW2vRiF/events/evt_1SyHcpB6RcW2vRiFyhWjw81C
and then finally failed at 2026-02-07 20:05:43 UTC
Cool, what should we do in these cases?
you can ignore the payment failed event, or check the status of the related Subscription at the time of the event to determine whether or not to act upon it
If it's deleted, just ignore subsequent invoice events?
yes, if that matches your use case. other users prefer to continue attempting to collect payment after the subscription is cancelled, which is why this occurs
the subscription is, but the Invoices related to it may or may not be
Ok. We have seen instances when the payment succeeds but the sub is already deleted.
What do we do in that case?
if you want to, you can write code to void all Invoices related to a Subscription after it is cancelled. I'm unaware of any setting that will do this automatically for you
When we void the invoice, does it issue a refund in cases where payment has been taken?
you can only void Invoices that are still open. if payment has already occurred on the Invoice and you want to issue a refund, you would need to do that manually
OK thanks denton ๐๐พ