#trina_webhooks

1 messages ¡ Page 1 of 1 (latest)

wind idolBOT
#

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

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

inner cove
#

Hello, checking in to this and will get back with what I can find.

#

Do you have a more recent example? Those events are out of retention. I can still look in to this but fresher data may help

slate sparrow
#

sure, let me take a look

inner cove
#

Appreciate it. If you have one from the last 30 days, that should be fresh enough

slate sparrow
#

evt_1PpTFGCFE1KEriEVyRaub6lm
evt_1PpTFKCFE1KEriEVtQ24JD3c
unable to get new mandate id as new invoice not raised yet

#

is there a way to retrieve the new mandate Id? as I cannot see it on PaymentMethod object.

rustic briar
#

Hello! I'm taking over and catching up...

#

evt_1PpTFKCFE1KEriEVtQ24JD3c is the mandate.updated Event you mentioned above. It has revocation_reason set to bank_ownership_changed which is explained in our API reference:

The destination bank account is no longer valid because it has been transferred to a new bank or to a new branch. A new mandate with the updated account details has been submitted on your behalf and you will be notified when it is accepted.

So in this case you're correct, this customer doesn't currently have an active mandate. You need to wait for the new mandate to be accepted.

slate sparrow
#

Ok thanks, is there any way to track when this new mandate is accepted apart from mandate.update event?

#

Appreciate the link!

rustic briar
#

No, I don't believe so. You should get another mandate.updated Event when the new one has been accepted.

slate sparrow
#

And apart from this event, the only way I can retrieve the new mandate Id is via a new charge?

rustic briar
#

Yes.

slate sparrow
#

Thanks. It seems pretty limiting- if mandate.updated event is not properly captured the chance is missed until next invoice cycle

rustic briar
#

You can always check for/fetch the Event from the API. We also have robust retries for webhooks, so it's unlikely you'll miss it.

slate sparrow
#

gotcha, thanks so much!

rustic briar
#

Happy to help!

slate sparrow
#

Sorry what would happen if we are waiting for new mandate, and customer needs to be charged?

rustic briar
#

It's likely the charge would fail due to no active mandate.

#

You would need to wait for the new mandate to become active.