#julio_docs
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1237838815666766009
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
If you list external accounts it is only going to show the currently attached external account(s)
It sounds like you are expecting for historical external accounts that are no longer attached to also be shown?
yes! for example what we want is to show a dashboard so that our connected account holders can see their payout history and check the payout status. So i have stripe account id so from this starting point how could i list all payouts?
You would just use https://docs.stripe.com/api/payouts/list + pass the Stripe Account Header (see: https://stripe.com/docs/connect/authentication) of the account you want to list payouts for
Ah actually when you do that you can expand data.destination
That will show you the details of the external account the payout was sent to
Regardless of whether it is still attached or not
Are you familiar with expansion?
If not, see: https://docs.stripe.com/expand
const payouts = await stripe.payouts.list({}, {
stripeAccount: stripeAccountId,
}); oh so like this?
ohhhh now i can see them!
Try: const payouts = await stripe.payouts.list({}, { stripeAccount: stripeAccountId, expand: [data.destination] });
Happy to help
how do i close this thread?
It will close automatically shortly
ok, have a great afternoon!