#slanfan-connect-payouts
1 messages ยท Page 1 of 1 (latest)
good question! I think the idea is you'd list pending Payouts(https://stripe.com/docs/api/payouts/list) on the connected account and sum the amounts, there's no direct figure from a single field in the API
But I get zero lines with pending payouts when I try
my first thing to check is are you definitely listing the payouts of the connected account and not your own? (https://stripe.com/docs/connect/authentication, you should be passing Stripe-Account on the call)
let me check
stripe.payouts.list({ status: 'pending', limit: 20 }, { stripeAccount: req.stripeAccount })
seems I'm passing the stripeAccount to get payouts from. But I'm deploying some new code now to make sure this is the case in the backend. Crossing my fingers I will get data now ๐
seems good. If that doesn't work, please post the acct_xxx of the connected account so I can look at it
It worked, sorry for the delay. Caught in a call
There was a filter in the function that filtered away the incorrect stuff ๐ฆ
ah, neat!
so basically shit on my end ๐