I've gone through the docs and haven't been able to spot a way to query balance info for Stripe managed accounts. Here's the use case: a 3rd party sets up a managed account through my Stripe Connect enabled platform; I create some charge objects on their account after a few customers buy goods/services (so their balance is now positive); now they want a payout BUT I want to query their balance before issuing the transfer to ensure they're not asking for more than is in their account.
Surely I'm missing something obvious. Thanks in advance.
{ "object": "balance", "available": [ { "currency": "usd", "amount": 0, "source_types": { "card": 0 } } ], "connect_reserved": [ { "currency": "usd", "amount": 0 } ], "livemode": false, "pending": [ { "currency": "usd", "amount": 0, "source_types": { "card": 0 } } ] }
Why is theavailable
andpending
props an ARRAY? It makes no sense to me! – Walter Monecke