#umairasif7

1 messages · Page 1 of 1 (latest)

tall apexBOT
lusty panther
#

Hi there 👋 what's your question?

oak dragon
#

I am using transfer API to send funds from stripe main connect account to the customer's connect account and after sending the balance, I am immediately using payouts to send that amount to the customer's bank account.

#

Should I wait for the transfer api to get completed and then use the payouts api?

#

Right now I am using transfer api first and right after the transfer api, I am using payouts api. I am not waiting for transfer api's response. But payout api is working fine.

lusty panther
#

You should wait for the Transfer API's response in this case, as there may not always be available funds in the Connect account's balance to sustain the subsequent payout

oak dragon
#

So should I use webhook for transfer api and in that I will send payouts api after successful transfers?

lusty panther
#

That would likely be the best solution. You could either listen for transfer.created and then make a payout for the amount transferred, but and even better solution might be to listen for balance.updated and then programmatically check the amount that is available for transfer before creating it: https://stripe.com/docs/api/events/types#event_types-balance.available

oak dragon
#

Alright, thanks.