#putte

1 messages ยท Page 1 of 1 (latest)

mortal shellBOT
knotty bough
vague vapor
#

I'm not following

#

Nonetheless I am able to make the transfer and all, but there I'm using the account_id of the connect account

#

"acct_XXXXXXX..."

knotty bough
#

Whoops sorry wrong link

#

If you list the account's connected accounts, that will show you what you can pay out to with that create payout call

vague vapor
#

Yes it does

#

So these are test accounts so there are no sensetive information:

#

So the first image is the error message from stripe

knotty bough
#

Can you send me the ID of the request when you got this error (req_123)?

vague vapor
#

the second is when I used the api that you sent, for the same account, you can find the id under "stripe_account_id" on the first image

#

req_oZdb95BdpWbNXS

knotty bough
vague vapor
#

I'm not following

mild bough
#

๐Ÿ‘‹ stepping in here as Pompey needs to step away

vague vapor
#

What parameter should I use in the destination in the payout object

mild bough
#

Tha bank account object (ba_xxxx) is the correct parameter

#

However, this is on your Connected Account as my colleague stated, whereas currently you are trying to pay out your platform which doesn't have that bank account attached, thus the error.

#

In order to pay out on your Connected Account

vague vapor
#

Well I am not trying to payout to the platform. I am trying to make a payout to the connected account

#

Or maybe I misunderstood you?

mild bough
#

Yeah exactly. So if you pass the Stripe Account header with the Connected Account ID like it shows in that doc you will make a payout on the Connected Account instead of on your platform

vague vapor
#

So I should use the paymentIntents API instead of the Payout API?

mild bough
#

Nope

#

Can you drop your code here for how you are creating a payout?

#

I'll show you how to create it on your Connected Account

vague vapor
#

const data = {
amount: balance_data.available[0].amount / 100,
currency: balance_data.available[0].currency.toLowerCase(),
destination: account.external_accounts.data[0].id,
statement_descriptor: 'Company_Name',
method: 'standard',
metadata: {
user_id: user_id,
stripe_event_id: payload.id,
stripe_account_id: payload.account
},
}

const payout = await stripe.payouts.create(data)

#

The data is retrieved from the balance.available webhook

mild bough
#

Cool so you do: const data = { amount: balance_data.available[0].amount / 100, currency: balance_data.available[0].currency.toLowerCase(), destination: account.external_accounts.data[0].id, statement_descriptor: 'Company_Name', method: 'standard', metadata: { user_id: user_id, stripe_event_id: payload.id, stripe_account_id: payload.account }, {stripeAccount: 'acct_xxxxx'} }

vague vapor
#

Ok let me try it out

#

It seems to work

#

God bless you. But let me make a suggestion that you might pass to someone that manages the documentation

#

It does not state that you can add an object after the data parameter where you specify the connect account ID in order to make payouts to connected accounts

#

Just a suggestion

mild bough
#

And it is peppered throughout the Connect documentation

#

But I will still pass along feedback that this was hard to find!

vague vapor
#

Yeah perhaps but I would never have looked there to be honest. It should be specified in the Payout section of the documentation according to me

#

Great! Have a nice day/evening