#Flolosain
1 messages · Page 1 of 1 (latest)
Hi there, you can't top up a connected account directly but you can use transfers API to transfer funds to it.
Thanks for your answer, it's what I did. The screen is just for the balance of the admin account, in the balance tab
Not directly to a connected account
When I try to transfer to the seller, code error insufficient balance
Can you share with me the full error response?
can you copy and paste the text here? thanks
When I tried with an express, it doesn't wrk at all
Sure :
{
"error": {
"code": "balance_insufficient",
"doc_url": "https://stripe.com/docs/error-codes/balance-insufficient",
"message": "You have insufficient funds in your Stripe account. One likely reason you have insufficient funds is that your funds are automatically being paid out; try enabling manual payouts by going to https://dashboard.stripe.com/account/payouts.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_oROfA1kaObKiag?t=1667230290",
"type": "invalid_request_error"
}
}
OK, the balance you saw in Dashboard is not yet available in your account. I can't read the language but I guess it says Will be available soon .
use the Balance API to retrieve the available balance via API https://stripe.com/docs/api/balance/balance_retrieve?lang=java#retrieve_balance
You can also use the source_transaction param to tie a transfer to an existing charge. By using source_transaction, the transfer request succeeds regardless of your available balance and the transfer itself only occurs once the charge’s funds become available. Details here https://stripe.com/docs/connect/charges-transfers#transfer-availability
Thanks, but it means when a user is paying, the amount is not available immediately for transfer? It means the platform has to have money in advance?
You can only transfer when the funds are available. Alternatively you can use the source_transaction param so that you can make the transfer API call first, and the transfer will automatically occurs once the charge’s funds become available.
Thanks for your answer!