#figgil_code

1 messages ¡ Page 1 of 1 (latest)

rotund cliffBOT
#

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

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

hazy osprey
#

Hi there - so you want to know how you can remove external accounts in the case that there is only one external account, or otherwise turn off payouts?

lucid leaf
#

Yeah - essentially we have been dealing with a situation where the banking info on our connected accounts has been getting changed to an untrusted institution, and the advice was to listen to the webhook events and essentially reject or at least put a review period in place before allowing payouts to continue after updates

#

But when we attempt to remove the external account when it is the only one, the call fails

hazy osprey
#

Who is your TAM? They frequently talk to my team about issues their users are having and if there's a record of that conversation it will help me understand the situation better

lucid leaf
#

Matt Ng

hazy osprey
#

attempt to remove the external account when it is the only one, the call fails

As far as I know, there isn't a way around this

lucid leaf
#

Thanks for confirming, I suspected as much from the docs which is why I had tried to pivot to pausing payouts

#

Struggling a bit with how I might do that though

hazy osprey
#

what kind of accounts are you using?

lucid leaf
#

Forgive me if I am misunderstanding the question, but we are a platform account with connected accounts - it is the connected accounts we are listening to changes on and trying to impact.

#

I believe they are custom

hazy osprey
#

I believe they are custom

that's what I was looking for - your platform has more control over this type of connected account

lucid leaf
#

That guide is kinda where I started, but I was struggling to find an API call in there. We are aware of how to pause payouts from the dashboard

#

It describes what the API response of an account get should look like once it has been paused, but doesn't describe the request in order to pause

hazy osprey
#
  '{{CONNECTED_ACCOUNT_ID}}',
  {
    risk_controls: {
      payouts: {
        pause_requested: false,
      },
      charges: {
        pause_requested: false,
      },
    },
  }
);```
#

that's for unpause actually - grabbed the wrong code snippet, but the point is there

lucid leaf
#

huh, I am not sure what you clicked to see that snippet on the page

#

I did try out that command though, and its giving an invalid request error on it

#

req_2GycpTZOmWD1vw

hazy osprey
#

that seems like your ideal solution though

lucid leaf
#

So do we need to speak to our TAM about getting gated into access of that preview?

#

I think what I am seeing when I follow that docs link is maybe different from what you are as well. The docs themsleves don't show any risk-control properties while I am logged in.

hazy osprey
#

Let me shoot Matt a message about this and he can follow up with you

lucid leaf
#

Great, thank you.