#mclowrider_api

1 messages ยท Page 1 of 1 (latest)

fiery krakenBOT
#

๐Ÿ‘‹ 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.

proven ice
#

Hello jazz

drowsy ether
#

Hello! Taking a look ๐Ÿ™‚

proven ice
#

Sure ๐Ÿ‘๐Ÿพ

drowsy ether
#

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.

proven ice
#

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?

drowsy ether
proven ice
#

Oh yes it did!

#

Forgot that sorry ๐Ÿคฆ๐Ÿพโ€โ™‚๏ธ

drowsy ether
#

No problem! It looks like that happened while the customer was in the middle of payment through the customer portal.

proven ice
#

Yeah, it does. So we have to delete the invoices in this case?

drowsy ether
#

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.

fiery krakenBOT
proven ice
#

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?

real elk
#

hi there, taking over for jazz as they had to step away, one moment

proven ice
#

We still got a paymnet failed event though after the sub was cancelled

real elk
#

right, because that payment attempt was already in-progress before the Subscription was cancelled

#

and then finally failed at 2026-02-07 20:05:43 UTC

proven ice
#

Cool, what should we do in these cases?

real elk
#

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

proven ice
#

If it's deleted, just ignore subsequent invoice events?

real elk
#

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

proven ice
#

Even thiough the sub has been terminated?

#

Its in a terminal state, no?

real elk
#

the subscription is, but the Invoices related to it may or may not be

proven ice
#

Ok. We have seen instances when the payment succeeds but the sub is already deleted.

#

What do we do in that case?

real elk
#

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

proven ice
#

When we void the invoice, does it issue a refund in cases where payment has been taken?

real elk
#

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

proven ice
#

OK thanks denton ๐Ÿ‘๐Ÿพ