#planetcreate

1 messages · Page 1 of 1 (latest)

lethal flareBOT
strange fog
wintry seal
#

oke thx i will try it.

#

that link dos not help my in my situation, what i do is i create a accountLinks, than in a webhook i save the bankaccountid in my user data base and when a user makes a requast to get payout i will get the bankaccount id out the data base and peforme a payout.create. so i dont now where te problem a curse in my code.

strange fog
#

you need to know the Account ID acct_xxx of the connected account that owns the bank account and that you're trying to make the payout to. If you know that, then you pass it as Stripe-Account in the API request to create the payout and it works.

wintry seal
#

ooo oke so i have to save the account id

strange fog
#

if you don't have the acct_xxx ID saved in your database from when you created the Account, note that it's also included in webhooks.
https://stripe.com/docs/connect/webhooks

As we state in the event object reference, each event for a connected account also contains a top-level account property. It identifies the account that the webhook is sent to and the data[object] it belongs to. Because these objects belong to other accounts, you must make the API requests as the corresponding connected account to access them.