#Kutay

1 messages · Page 1 of 1 (latest)

north bloomBOT
jolly bridge
#

Can you send me the ID of a request (req_123) from a time that you saw this error?

woven sonnet
#

sorry where can i see this request id?

jolly bridge
#

You can get it from your API library when making the call https://stripe.com/docs/api/request_ids or you can get them from your dashboard: https://dashboard.stripe.com/test/logs

woven sonnet
#

i think the problem was i did not specified the connected account which payout should be done. but i don't know how to specify it. here is my code:

#

const payout = await stripe.payouts.create({
amount: totalAmount,
currency: "usd",
})

#

request id is req_OU0045iArz8cwJ

jolly bridge
woven sonnet
#

sorry i couldn't see what i need in that page

#

shouldn't i use the stripe.payouts.create method?

jolly bridge
#

Yes

#

The part of the API ref that I linked to just used that other call as an example, you can include that stripe account parameter on any call

woven sonnet
#

okay thank you it worked now. but i have one more question, now it says 'You have insufficient funds in your Stripe account for this transfer.'. connected account's available balance is 0 but pending balance is exactly the same with the amount that i want to payout

#

i think i need to enable manual payouts first

jolly bridge
#

So as you note there are different states that this balance can be in. Balance will be pending while it is still on the way from the bank, once it actually lands on your account it becomes available. Only available balance can be paid out, you can float your own available funds from your platform to your connected accounts while their payments are still pending, but you can't pay out pending funds

woven sonnet
#

thank you!