#rasrules_code

1 messages ยท Page 1 of 1 (latest)

grave surgeBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

little citrus
#

Hello

uncut copper
#

Hey bismarck!

little citrus
#

No if it fails synchronously there will be a 4xx response to your API request

#

No Events are triggered

#

But you just handle this in your backend based on the request's response failure

uncut copper
#

So, you mean that it will do any needed check and failed instantly without actually doing the payout. If it doesn't fail instantly it will be queue to be proccesed later, right?

little citrus
#

I'm not sure what you mean by that

#

A Payout creation request will only fail synchronously if there aren't sufficient funds or if the external account fails the validation checks.

#

In this case, no Events are triggered.

#

If the Payout fails asynchronously, like the bank sends us a message back after a day stating the bank account was closed or something, then there would be a payout.failed Event

uncut copper
little citrus
#

Yes

#

payout.created will be immediate and then payout.paid later

uncut copper
#

awesome!!!

#

I was doing testing with livemode off. and all the events happen really fast. So, I was a bit worried

little citrus
#

Yeah we don't delay in test mode like in live mode so that you receive all the Events for your testing

uncut copper
#

one more question pls. is there a method to check for the bank account before creating the payout?
if the external account fails the validation checks

little citrus
#

Those validation checks will mostly happen when you add the external account

#

So that mostly shouldn't be an issue

uncut copper
#

Yeah but after the account was added, it could become invalid later also.

little citrus
#

Yeah it can, but not likely from this validation stand point. You can't do a check with the bank for whether the account is still valid if that is what you are asking?

uncut copper
#

Yeah, check if the default external account is still valid to avoid even attempting the transfer. but it is probably a rare edge case

#

thank you for all your help!!! this answer all my doubts. ๐Ÿ™