#Aero

1 messages ยท Page 1 of 1 (latest)

mild cargoBOT
lavish falcon
#

Hi ๐Ÿ‘‹ are you trying to list the external accounts using a restricted key? If so, do you see the same behavior when you try to use your account's secret key?

clever oar
#

Hey Toby, I'm trying to list my own external accounts using the accounts secret key

#

We have two bank accounts linked to our account, a EUR and GBP bank account. I found the id for the EUR account in a payout that was made, but we've yet to do a payout to the GBP bank account

#

Not sure if it's clear what I'm looking for

#

So I'm looking for the id of the GBP bank account

#

Starting with ba_

lavish falcon
#

Gotcha, running some test to see how you can get that.

clever oar
#

Thanks in advance!

lavish falcon
clever oar
#

The account I retrieved doesn't include the external_accounts key in the response

#

I'm getting these keys:

[:id,
 :object,
 :business_profile,
 :capabilities,
 :charges_enabled,
 :controller,
 :country,
 :default_currency,
 :details_submitted,
 :email,
 :payouts_enabled,
 :settings,
 :type]
lavish falcon
#

Hm, this might not be possible to do for your account, what is is that you're trying to accomplish that requires the ID of that external account?

clever oar
#

For that I need the ID of the bank account

#

Without it, it also works since it defaults to the bank account for that currency, but I'd like to be explicit

lavish falcon
#

Can you share your account ID?

quasi gyro
#

๐Ÿ‘‹

#

You can't have multiple external accounts for the same currency linked to your direct account, so you don't really need to set destination here, right?

clever oar
#

True but if, in the future we'd like to change accounts, we'd have a log which account was used locally without having to query stripe for this data

#

Our local logs are also retained much longer than what Stripe offers

quasi gyro
#

Hmm yeah the API isn't really designed for you to retrieve external accounts from your own account. That is for Connected Accounts. So you would need to track this data yourself.

clever oar
#

That's what I'm trying to achieve, but I'm not able to locate the id of the GBP bank account

quasi gyro
#

Right, I'm saying you wouldn't associate a Stripe ID here. You would have your own data tracking which account is added with your own UUID for that bank account if you need to keep track of what account is added outside of looking at the Dashboard.

clever oar
#

That I get, but still doesn't take away from the original request. We'd like to be explicit in the destination that is set for a payout, but need the id of the bank account in order to achieve this

quasi gyro
#

I understand. Unfortunately this isn't possible until you have made a payout and then you have to look at the payout as you mentioned above. I can put in some feedback about this as I do understand your use-case. But currently this just isn't possible

clever oar
#

Yes please, and thanks for the help