#harisabbasi12
1 messages · Page 1 of 1 (latest)
Yes, i want to initiate payout of 30$ on a connected account to their external account. Is this possible?
Sure: use the create payout endpoint: https://stripe.com/docs/api/payouts/create?lang=node
And use the Stripe-Account header to make the request on a connected account: https://stripe.com/docs/connect/authentication
Uhh nice, i got it
const payout = await stripe.payouts.create({
amount: 3000,
currency: 'usd',
},
{
stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
}
);
so i would be doing something like this?
Yes, just make sure to replace '{{CONNECTED_ACCOUNT_ID}} with an actual account ID (acct_xxx)
Cool perfect thank you