#sarthakarora1208
1 messages · Page 1 of 1 (latest)
That guide doesn't cover the actual Payout process, but about sending funds to the connected account Stripe balance
Generally you'd use webhook(s). Details on payout failures here: https://stripe.com/docs/payouts#payout-failures
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?
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
But you can find out which Balance Transactions were a part of the Payout: https://stripe.com/docs/expand/use-cases#charges-in-payout
Hmmm, okay so working backwards, I can find out the source transfer for each payout.
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
When I try calling the api for a payout id on a connected account, I get the error no payout found.
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_aR9Y05jfulLm6M
You need to pass the Stripe-Account header: https://stripe.com/docs/connect/authentication
Got it! It works now.