#codecoolkid
1 messages · Page 1 of 1 (latest)
Hi there, the problem is not about the currency, you can't create a transfer because your platform has insufficient balance for the transfer.
It has sufficient balance in USD but when I try to do the transfer in MXN currency it says it has not enough balance
await stripe.transfers.create({
amount: 2000,
currency: 'mxn',
destination: 'xxxxxxx'
})
If I do this
await stripe.transfers.create({
amount: 10,
currency: 'usd',
destination: 'xxxxxxx'
})
It works
Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details
Hi! I'm taking over this thread.
Have you checked the available balance of your account with https://stripe.com/docs/api/balance/balance_retrieve as mentioned in the error message?
Also are you doing the request in test mode or livemode?
Its in live mode I have 6usd balance and doing a transfer of 20mxn which is aprox 1 usd
Yes I used the api to get the balance and I get the 6 usd balance
So you only have funds in USD, no MXN, which means it's expected to fail.
If you have only USD in your account, then you need to make the transfer in USD.
Is there an endpoint in which I can get the conversion rate? to calculate the amount in usd
Stripe doesn't offer that, but there are probably other services that can give you the conversino rate.
perfect thank you!