#davidc - account api

1 messages ยท Page 1 of 1 (latest)

urban lightBOT
green stag
amber cobalt
#

There is no request ID

#

I only tried to retrieve account information

green stag
#

When you make a request for the Account info that is an API request

#

There is a log of all those requests in your Stripe Account

#

Can you share the request were you were able to get the last4 from an external account and one were you didn't?

amber cobalt
#

okay one sec

green stag
#

davidc - account api

amber cobalt
#

it is

#

req_S8vJYlMNxj4fnA

green stag
amber cobalt
#

sorry what does it mean?

deft wolf
#

๐Ÿ‘‹ stepping in as Snufkin needed to step away

amber cobalt
#

I only want to know why /retrieve/id does not return last4 from external account

deft wolf
#

last4 should always be present if you are retrieving an external account. Snufkin is asking that you provide the request ID for your GET request where you are retrieving the account so we can see how you are doing so and what account you are retreiving.

amber cobalt
#

interesting

#

you know data is single array from external_accounts

#

but now i see empty array data

#

you know i only can see last4 in data

deft wolf
#

You are listing Connected accounts in this case, correct?

amber cobalt
#

yes

#

so i save the connected account in my DB and trying to see last4 whenever I need it

deft wolf
#

Hmm all the recent GET requests I see for your account are to retrieve a specific Connected Account. Are you sure you aren't retreiving one that doesn't haev an external account added?

amber cobalt
#

i am sure

deft wolf
#

Can you give me an example account ID where you aren't seeing last4 returned?

amber cobalt
#

sure one sec

deft wolf
#

To clarify โ€” you do see other information about the external_account yes? Just not last4? Or is the entire external_accounts.data hash empty?

amber cobalt
#

yes

#

data is empty

#

acct_1LxuozGgtDvFfFKa

deft wolf
amber cobalt
#

interesting.

#

i already connected it

#

can you check again?

#

now i see this connected account on my app after refreshing

#

last4 is 6789

deft wolf
#

Nope that Connected Account doesn't have an external account.

#

It is an Express Account. To get an External Account added it has to go to the Express Dashboard or through the hosted Connect Onboarding flow. You don't add external accounts to Express Accounts as the platform.

amber cobalt
#

yes its an express account

#

if i did not add external accounts to Express Accounts as the platform, I don't always get empty data?

deft wolf
#

You must have onboarded at least some of your accounts

#

Like I can see acct_1LxY5kGaEVGRaB1q does have an external account

#

So you must have gone through onboarding for that account and added one?

amber cobalt
#

is it question?

#

or just description?

amber cobalt
#

or i have to onboarded at least some of my accounts.

deft wolf
#

Yes you would need to onboard some of your test accounts to be able to properly test.

#

If you don't go through onboarding then no external account would be returned as would be expected

amber cobalt
#

oh gotcha

#

thanks

#

now so reasonalble

#

then can you please tell me the main example or concept of onboarding?

deft wolf
#

You'll see in that guide that you use an Account Link to redirect to Express Onboarding

amber cobalt
#

cool thanks

#

oh i just found the case why last4 not returned

#

I connected the express account in connect stripe dashboard by redirecting from my app to stripe.
And set up it and seems it is working fine so far

#

but when i try to set up payment account again and redirect to connect.stripe dashboard.
Before page loading, I returned to my app.

#

Then this behvior make my last4 lost.

#

is it a known issue?

deft wolf
#

I don't really understand, sorry.

#

What do you mean by "but when i try to set up payment account again and redirect to connect.stripe dashboard."?

amber cobalt
#

when trying to connect the express account, it should be redirect to connect.stripe.com. correct?

deft wolf
#

Yes when attempting to onboard.

amber cobalt
#

yes exactly

#

so it worked fine onboarded.

#

then i tried to set up with another account,

#

btw before loading the full page, i stopped the redirecting in connect.stripe.com and return to my app

#

in this case, my connected account was initialized

deft wolf
#

Okay so sounds like your Connected Account was created but then Onboarding wasn't completed. So yes, expected that there wouldn't be any external account and thus no last4

amber cobalt
#

sounds similar.

#

but it was already created and onboarded successfully

#

but whey attempting again,

#

i see this page again

#

then go back to my application, then it was lost

deft wolf
#

Yes every time you see that page it is a new account.

amber cobalt
#

even i already created and onboareded successfully, then why it was lost?

#

oh sorry for my stupid question

#

this is just my app`s UX issue

deft wolf
#

If you want to update details on an account that has already gone through onboarding, then you go to the Express Dashboard at that point.

#

You don't go through onboarding again. That is for new accounts

amber cobalt
#

absolutely right

#

then will be any solution to redirect to edit page from the app using link?

#

seems if some payment was processed with this connected account, then it redirects to transaction history

#

like this, if i want to edit my connected account, then how i will get the edit redirection link?

deft wolf
amber cobalt
#

okay

deft wolf
amber cobalt
#

let me take a look thanks

#

can i have another question?

deft wolf
#

Of course

amber cobalt
#

i already have a connected account.

#

but when creating payment intent, I see the error No such destination acct_###

#

then will be any way to check if the saved connected account is valid?

deft wolf
#

When you onboard accounts you want to set up Webhooks to listen for account.updated which will provide you with information on the account object. In the account object you want to focus on the requirements hash. If that is empty, the account is fully onboarded. You can also use the charges_enabled and payouts_enabled properties to know if the account is active or not.

amber cobalt
#

oh gotcha

#

very clear

#

Thank you again

deft wolf
#

Happy to help

amber cobalt
#

You saved me.

#

Thanks again

#

๐Ÿ‘