Endpoint for Connected Accounts

45 views
Skip to first unread message

kristel aban

unread,
Nov 22, 2024, 5:48:16 AM11/22/24
to Stripe API Discussion
Hi,

I would like to know how to get the Endpoint for this data:
(Attached to this email)


I was able to retrieve the Account Details but I need more of the other fields like the Balance and Connected Accounts



Screenshot 2024-11-21 at 5.08.28 PM.png

Karl Reid

unread,
Nov 22, 2024, 5:52:35 AM11/22/24
to Stripe API Discussion, kristel...@gmail.com
Hi there,

Generally you can access all the same information you can on your account on connected accounts, by making the regular API calls while using the Stripe-Account header.
So for example to get the balance on a connected account you'd use the normal Balance Retrieve API and use that header to make the request on a connected account.

If the data you're looking for is the "information needed" , that's the `requirements` hash on the Account object, see https://docs.stripe.com/connect/handling-api-verification#determine-if-verification-is-needed for extensive documentation on that. 

If you further questions or specific asks about retrieving specific information, I'd suggest contacting us at https://support.stripe.com/?contact=true 
All the best,
Karl

kristel aban

unread,
Nov 22, 2024, 10:37:49 AM11/22/24
to Karl Reid, Stripe API Discussion

Hi Karl,

Basically, I want to retrieve all the details  that dashboard is showing.
Example: For the Account is restricted with a balance >100 and with a Transaction Date less than a year , Business Type. 

The filter used from the Dashboard doesn't match with the Accounts object API

Karl Reid

unread,
Nov 22, 2024, 11:33:19 AM11/22/24
to Stripe API Discussion, kristel...@gmail.com, Stripe API Discussion, Karl Reid
Hi there,

Yes, the API does not provide direct ways to list or filter accounts by their balance, or by derived properties like recent transaction dates. It only provides the filters documented at https://docs.stripe.com/api/accounts/list . It is possible to use the Dashboard and some of reporting products for richer queries like that.

To re-implement such views in your own logic what you could do is list accounts and then as you iterate through the returned in your application code, you can filter out and build your own list of the objects you want to work with.
i.e. list the accounts via the API, for each account, check the values of `requirements` /`charges_enabled` / `payouts_enabled` (per the previous link) to determine if it's restricted; maybe make an extra API call to list transactions on the connected account [0] to determine when the most recent one occurred.

You can also use webhooks to keep a local database of this information like the state of accounts and their data of their most recent transaction, and use that to power your use case instead of the API, that's also a good option here.

All the best,
Karl

Reply all
Reply to author
Forward
0 new messages