#.ib3n

1 messages · Page 1 of 1 (latest)

icy umbraBOT
onyx comet
#

You can listed to webhook event balance.available for this

sick seal
#

Does this webhook event fire for all connected accounts?

#

Thanks for your response

onyx comet
#

It should, yes

sick seal
#

There may be multiple transfers created for this account, is there a way to know which transfer has become available?

#

Once again, I really appreciate your help!

onyx comet
#

hmm, I don't think there's a specific transfer linked to those events unfortunately. thinking of a workaround..

onyx comet
#

sorry for the delay

#

So my understanding is that transfers are instant. They don't really have a status of pending as such.

are you using source_transaction parameter for creating transfers before funds are available?

sick seal
#

Yes i'm using the charge associated with an invoice on the invoice.paid event as the source_transaction property

onyx comet
#

Gotcha. I haven't tried this myself but do you see transfer.created webhook event right after you send the request to create the transfer? OR do you see that after the funds are available?

sick seal
#

Right after we send the create transfer request

onyx comet
#

but there's no way to co-relate a balance.available webhook to a specific transfer 😅

icy umbraBOT
sick seal
#

ok that makes sense, I can listen to the balance.available hook and use the event.account property to check the transfers to that destination account

#

If I don't associate the transfer with the invoice charge using source_transaction - are the funds immediatley available?

onyx comet
#

no, if you don't use source_transaction parameter then the transfer creation request would likely fail if your platform account balance is less than transfer amount

sick seal
#

Ok thank you so much hanzo, you've been an unbelievable help, hope you have a great day!