#MorenoMdz
1 messages · Page 1 of 1 (latest)
hello! are you trying to retrieve those payouts? If so, can you share the request id [0]? it'd look like req_xxx
sec
Basically trying to retrieve from code and from the dashboard, for example with const p = await stripe.payouts.retrieve(payoutId) in Node
Trying to get the requestId
req_SRI28HHPmFDMvy
for example
req_3bI48chtMpoS3f
The request is being made on acct_1JHVgaJxJIrs34m7, but the Payout exists on acct_1JPubb2Vn94NNVaN. Use the Stripe-Account header to make the request on the connected account : https://stripe.com/docs/connect/authentication
Nice thats a huge progress, I am getting some data from the API now, what about this payout:
p req_58AOgtnPAbCFcS
it's also under a different connected account. The webhook which you received should contain the connected account id : https://stripe.com/docs/connect/webhooks
po_1MlLQ9FVvDuAQkhUxmddoBra belongs to acct_1MlLKOFVvDuAQkhU
yep, because these payouts exist on the connected account, not on your account
kk
alright that does it then
Is there a way I can find the correct account coming from just the payout?
We have some users that ended up having multiple connected accounts with us
you should have been notified of these payouts via a webhook right?
yes
check the event's account parameter : https://www.stripe.com/docs/api/events/object#event_object-account