#JJcoordinate-connect-payouts
1 messages ยท Page 1 of 1 (latest)
Yes
So that should be possible, though not all at once.
You can use this API to list all payouts, and specify parameters like destination filter down the results. destination could be used to only show payouts for a single connected account for example.
https://stripe.com/docs/api/payouts/list
Then you can list all of the balance transactions that were included in a given payout:
https://stripe.com/docs/api/balance_transactions/list?lang=go#balance_transaction_list-payout
Thank you, you've been a great help๐ ๐
Slight correction, the destination parameter there is for the external bank account being paid out to
TO get the payouts for one of your connected accounts, use the stripe-account header to make the request as that connected account:
https://stripe.com/docs/api/connected_accounts
One other tip, we cover this in the expand use cases here:
https://stripe.com/docs/expand/use-cases#charges-in-payout
and you can apply the same logic for connected account requests