#davidc - account api
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Can you share the request ID for the request?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
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?
okay one sec
davidc - account api
That request: https://dashboard.stripe.com/test/logs/req_S8vJYlMNxj4fnA is to /v1/payment_intents
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
sorry what does it mean?
๐ stepping in as Snufkin needed to step away
I only want to know why /retrieve/id does not return last4 from external account
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.
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
You are listing Connected accounts in this case, correct?
yes
so i save the connected account in my DB and trying to see last4 whenever I need it
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?
i am sure
Can you give me an example account ID where you aren't seeing last4 returned?
sure one sec
To clarify โ you do see other information about the external_account yes? Just not last4? Or is the entire external_accounts.data hash empty?
Yep so that account doesn't have an external account. See: https://dashboard.stripe.com/test/connect/accounts/acct_1LxuozGgtDvFfFKa/activity
interesting.
i already connected it
can you check again?
now i see this connected account on my app after refreshing
last4 is 6789
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.
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?
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?
i mean are you asking?
or i have to onboarded at least some of my accounts.
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
oh gotcha
thanks
now so reasonalble
then can you please tell me the main example or concept of onboarding?
Sure, you follow https://stripe.com/docs/connect/express-accounts
You'll see in that guide that you use an Account Link to redirect to Express Onboarding
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?
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."?
when trying to connect the express account, it should be redirect to connect.stripe.com. correct?
Yes when attempting to onboard.
yes exactly
so it worked fine onboarded.
then i tried to set up with another account,
so it redirects to connect.stripe.com
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
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
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
Yes every time you see that page it is a new account.
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
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
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?
You can use a login link (https://stripe.com/docs/api/account/create_login_link) if you want to send an Account to their Express Dashboard
okay
Or you can redirect them to https://connect.stripe.com/express_login
Of course
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?
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.
Happy to help