#johnm-externalaccount-java

1 messages · Page 1 of 1 (latest)

crude jolt
boreal crag
#

Thanks

crude jolt
#

Let me know if you're stuck

boreal crag
#

Well.. my question is... I can get a object of class ExternalAccount out of the list. But how do I get the contents of this class ? there apparently is only one getter for this class, and it is getId. How can I access the other attributes of the class ? I want to get the field last4 in this class

crude jolt
#

You cast it to (BankAccount)

#

and then you can access the getters of that class

boreal crag
#

Ah

#

Are connect accounts allowed to have multiple external accounts ?

#

Or, I guess I should ask.... which would be the current external account... the api says the most recent .... sort of sounds like a history

sly mountain
#

Connect accounts can have multiple accounts. There isn't really a "current" account. You can set the default external account when creating or updating a connect account though.

boreal crag
#

even in the case of a express account ? I don't remember seeing in the onboarding process where you could add multiple bank accounts.

#

Ok, is there a way to determine what the default account is then ? We want to send an email so that when a payout occurs we can let the connected account know which bank account to expect the payout.

sly mountain
#

Hmmm. Have you tested out adding new external accounts to Express accounts?

boreal crag
#

I will. Thanks. Time for dinner

#

later

sly mountain
#

Feel free to come back with more questions 👋

sly mountain
#

Just in case you come back I do not believe you can add additional external accounts for either Standard or Express accounts, only Custom.

sly mountain
#

So since the onboarding only allows the adding of a single external account and the addition of multiple accounts is not supported for Express,