#bernardo quina - payouts
1 messages · Page 1 of 1 (latest)
Yes!
You pass the account in the headers of your request, or via options in the client libraries
which language/library do you use?
See the snippet examples there and add the account you're interested in
I'm using node, but I got it thanks! The problem was I wast trying to pass the "stripeAccount" parameter as well as other filtering parameters but it turns out I can only do one or the other. If I set filtering parameters it assumes I'm trying to retrieve payouts from my account and not the connect one.
Can you share the snippet? I suspect you need to break the params into two objects
stripe.payouts.list({...filters}, {stripeAccount: 'acct_123'})
try {
const pendingPayouts = await context.stripe.payouts.list({
stripeAccount: business.stripeAccountId,
// destination: stripeAccount.external_accounts.data[0].id,
// arrival_date: { gte: Date.now() },
})
console.log('pending payouts: ', pendingPayouts.data)
} catch (error) {
console.log('stripe error: ', error)
}
That is it! Wow thank you so much for your help!