#Makalsky-payouts

1 messages ยท Page 1 of 1 (latest)

tidal nacelle
#

There isn't really a simple way to get that through the API, but let me double check and make sure I'm not missing anything

bold shoal
#

I will settle for a complicated way too ๐Ÿ™‚

tidal nacelle
#

I think the only way you an get this through the API would be to go through all the payouts that happened after the balance transaction/payment occurred, and then check whether the list of balance transactions for the payout include the one you're looking for (https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout). If you're willing to store this information in your DB, a better way to do this is for each Payout that is created you retrieve the list of balance transactions that are tied to it (again with https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout), and then store that in your DB so you always know what payout the transaction was tied to

bold shoal
#

That was my second approach, to store it ourselves. Otherwise traversing through all the payouts will be quite cumbersome.
I wonder how Stripe dashboard get s this information though?

tidal nacelle
#

It's using dashboard-only API attributes that aren't available in the general API

bold shoal
#

ok, thank you for your help