#stevent-manual-payouts
1 messages · Page 1 of 1 (latest)
stevent-manual-payouts
You can listen to the balance.available Event on your webhook endpoint that tells you what your balance is when it increases and then you can create a Payout via the API https://stripe.com/docs/api/payouts/create to send funds to your bank account
That looks very promising, however our balance is also affected by other products such as Checkout. It looks like balance.available doesn't differentiate the source of the balance change.
Hi @hollow garden I'm taking over
Hi!
So basically you want to know source of the balance change, i.e., from Checkout or Invoice.
If we have to use balance.available that koopa mentioned, yeah I'd need to know the source.
OK. There's a List balance transaction API https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list that allows you to retrieve the transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). But there's no property to indicate the product (i.e., checkout or invoice) that was involved in the transaction.
Ah dang. Thanks for checking!
I have another idea though from talking with someone else
Can I just listen for invoice.payment_succeeded
And immediately issue a payout for the invoice amount?
Even though the payment was succeeded, the fund isn't immediately available for payouts
Ah. Any idea how long it takes? I could listen for invoice.payment_succeeded and schedule a job for the next day to issue the payout, for example
If that timing is known and consistent, or discoverable
Why not just using auto payout? the default payout schedule is daily automatic.
We're using Stripe Connect to payout to some customer accounts, so we don't want to drain our Stripe balance every day (need it to do payouts into the connected accounts)
If I could just wait a day for the balance to be "available" though that would work
Let me know if that makes sense 🙂
OK, so basically you want to manually control the payout to connected accounts and only create payouts when the time is right for you. Yup it totally makes sense.