Karl Reid
unread,Nov 22, 2024, 11:33:19 AM11/22/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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