#Muttakin Islam Hasib
1 messages · Page 1 of 1 (latest)
Can you share the request ID (req_xxx) where you see this error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
const balance = await this.stripeClient.balance.retrieve({ stripeAccount: user.stripeAccountId })
const { amount, currency } = balance.instant_available[0]
if (amount <= 0) throw new UnprocessableEntityException('No available balance to transfer')
await this.stripeClient.payouts.create(
{ amount, currency, statement_descriptor: ServerConfig.BRAND_NAME },
{ stripeAccount: user.stripeAccountId },
)
return 'Transfer successful'
Here how I was implemented
Your check is amount <= 0, but it should be amount <= the amount you intend to transfer
It may be that the connected account has balance of $1, but you tried to payout $10
In such a case, it will still be insufficient balance
we have available, pending, Instant with the same amount
is there any extra fee for an instant payout?
I'd need the request ID (req_xxx) to check why such error is returned. Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
is there any extra fee for an instant payout?
Yes
From https://stripe.com/docs/connect/instant-payouts
Instant Payouts cost 1% of the payout amount, with a minimum fee of 50¢.
what is the minimum fee for US
This channel is for developers and technical integration questions. For pricing information, I'd recommend reaching out to Support as I don't have the necessary expertise https://support.stripe.com/contact
so for payout i have to implement like this way ‘amount - (amount / 100) * 0.1’
I'm not too sure how sufficient fund is calculated. Sharing the failed request ID will be helpful for me to double check whether the pricing has any impact to the available funds
ok
from which webhooks event i can get the request id?
@azure plume here is the request ID: req_cQ7MrLU14y42m7
At the point when you made the request, the available balance is USD 0. I see that the the connected account acct_1MdMcIDEB6vXJtSP is set to payout automatically. Why do you still perform manual payout?
I want to give the option to our customers for an instant payout
can you please recheck the code? where I made mistake?
I think my logic is not correct
in this code