#Kutay
1 messages · Page 1 of 1 (latest)
Can you send me the ID of a request (req_123) from a time that you saw this error?
sorry where can i see this request id?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
Gotcha, so if you are making that call from the platform, and want to create a payout on some connected account, you can provide its account ID like so: https://stripe.com/docs/api/connected_accounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
sorry i couldn't see what i need in that page
shouldn't i use the stripe.payouts.create method?
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
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
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
That being said, we do have test cards that make their funds go straight to available so that you can test payouts immediately https://stripe.com/docs/testing#available-balance
thank you!