#stevent-manual-payouts

1 messages · Page 1 of 1 (latest)

slate rapidsBOT
hexed kernel
#

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

hollow garden
#

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.

stable ingot
#

Hi @hollow garden I'm taking over

hollow garden
#

Hi!

stable ingot
#

So basically you want to know source of the balance change, i.e., from Checkout or Invoice.

hollow garden
#

If we have to use balance.available that koopa mentioned, yeah I'd need to know the source.

stable ingot
hollow garden
#

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?

stable ingot
#

Even though the payment was succeeded, the fund isn't immediately available for payouts

hollow garden
#

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

stable ingot
#

Why not just using auto payout? the default payout schedule is daily automatic.

hollow garden
#

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 🙂

stable ingot
#

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.