#sarthakarora1208

1 messages · Page 1 of 1 (latest)

molten carbonBOT
lilac moon
#

That guide doesn't cover the actual Payout process, but about sending funds to the connected account Stripe balance

strong plume
#

Yeah, I looked into this, I am listening for the payout.paid webhook but that doesn't return the transfer id for me. How do I map a payout back to the transfer?

lilac moon
#

Yeah it doesn't work like that. There's no direct 1:1 map between a single transaction and a payout – a payout encompasses many trasnactions

strong plume
#

Hmmm, okay so working backwards, I can find out the source transfer for each payout.

lilac moon
#

Yes, but there'll likely be multiple Balance Transactions in a single Payout. Buy using the API call at the link above, you can find just the transfer related transactions in the Payout using the type param: https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-type

strong plume
#

When I try calling the api for a payout id on a connected account, I get the error no payout found.

lilac moon
strong plume
#

req_aR9Y05jfulLm6M

lilac moon
strong plume
#

Got it! It works now.