#julio_docs

1 messages ¡ Page 1 of 1 (latest)

wide stagBOT
#

👋 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.

umbral nova
#

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?

vivid blade
#

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?

umbral nova
#

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?

vivid blade
#

const payouts = await stripe.payouts.list({}, {
stripeAccount: stripeAccountId,
}); oh so like this?

#

ohhhh now i can see them!

umbral nova
#

Try: const payouts = await stripe.payouts.list({}, { stripeAccount: stripeAccountId, expand: [data.destination] });

vivid blade
#

yes! that this exactly what i needed.

#

wow really thank you for this.

umbral nova
#

Happy to help

vivid blade
#

how do i close this thread?

umbral nova
#

It will close automatically shortly

vivid blade
#

ok, have a great afternoon!