#Kamon
1 messages · Page 1 of 1 (latest)
Hi, there is no way to make a bulk request. You'd use a cron job for it.
I'm planning on using a cron job, but in that job/task, I need to find which balances need to be paid out.
I see, let me pull our API
You'd look at available balance: https://stripe.com/docs/api/balance/balance_object?event_types-payment_intent.payment_failed#balance_object-available
Yes, I'm aware of that.
If you look at my original question, I'm looking to do that in bulk, i.e I provide a list of accounts and retrieve all of their balances.
You cannot make a bulk request and pass all of the account ids.
Interesting. Is there a suggested method for handling manual payouts?
Based on not being able to do bulk queries like that, I'm sure Stripe has an intended/suggested flow.
You could listen to this webhook event, https://stripe.com/docs/api/events/types#event_types-balance.available and look at the available balance. Then, have a logic to trigger payouts that way
Interesting. How would I tie those balance objects to specific orders or payment intents?
I was able to confirm that you would not, that just shows you the available balance.
You would need to use balance transactions for that: https://stripe.com/docs/api/balance_transactions/list
Gotcha, thanks for the info!