#Aero
1 messages ยท Page 1 of 1 (latest)
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?
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_
Gotcha, running some test to see how you can get that.
Thanks in advance!
If you retrieve your account, are you able to see the external accounts listed in the response?
https://stripe.com/docs/api/accounts/retrieve
https://stripe.com/docs/api/accounts/object?lang=node#account_object-external_accounts
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]
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?
When creating a payout I want to pass the destination with it https://stripe.com/docs/api/payouts/object#payout_object-destination
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
Can you share your account ID?
๐
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?
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
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.
That's what I'm trying to achieve, but I'm not able to locate the id of the GBP bank account
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.
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
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
Yes please, and thanks for the help