#oskar-connect
1 messages · Page 1 of 1 (latest)
there's no direct endpoint for this really
one way of interpreting it is that it's the sum of all pending payouts https://stripe.com/docs/api/payouts/list#list_payouts-status plus any pending balance on the account https://stripe.com/docs/api/balance/balance_object#balance_object-pending
How would this be applied to getting the pending payouts for a express connect account? I just tried specifying the connect account id in the destination parameter for the request but it just gives me a "no such account" error.
you use the Stripe-Account header
that's how you make any API call(including listing payouts or retrieving the balance) on a connected account (destination is not related here, that's about finding payouts that went to a certain bank account, not Stripe account)
@quasi grail (sorry for the delay, meant to reply much sooner 😦 )
Thanks, the payouts list seems to come out empty. I guess this is because the amount listed under "Future payout" in Stripe has not yet been turned into an actual Payout being created?
The actual payout will be created on the date of payout I assume?
try checking the Balance of the connected account and looking at the pending hash
I don't know how the dashboard does things but in general the way this works if you process a charge today, and we will have it in your bank account within X days(X depends on https://stripe.com/docs/payouts#standard-payout-timing). In the mean time the chage amount is in your pending balance, and then we also eventually create a pending Payout object(moving the balance into that)