#Makalsky-payouts
1 messages ยท Page 1 of 1 (latest)
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
I will settle for a complicated way too ๐
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
It's using dashboard-only API attributes that aren't available in the general API
ok, thank you for your help