#tunnnna
1 messages · Page 1 of 1 (latest)
👋 Hi there, Happy to help!
You need to refer to the destination field in the webhook respone:
https://stripe.com/docs/api/payouts/object#payout_object-destination
Then you should find the connect account Id in the account of the destination card:
https://stripe.com/docs/api/cards/object#card_object-account
If the destination field in the webhook respone is a bank, what should I do?
You shouldn't have empty destinationvalue because the default value will be the the default external account then
https://stripe.com/docs/api/payouts/create#:~:text=If no destination is supplied%2C the default external account for the specified currency will be used
Are you confusing bank and blank? (Excuse me if I'm wrong.)
What I would like to know is which api should I use to find the conected account by ba_xxx , when the destination field in the webhook respone is ba_xxx.
ah sorry, yes I'm confusing bank with blank
You can retrieve the payout, you got from the webhook, using API https://stripe.com/docs/api/payouts/retrieve and expand the destination field
Here is how you expend a field using Stripe APIs
https://stripe.com/docs/api/expanding_objects