#codecoolkid

1 messages · Page 1 of 1 (latest)

harsh thicketBOT
split trail
#

Hi there, the problem is not about the currency, you can't create a transfer because your platform has insufficient balance for the transfer.

slate rune
#

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

split trail
#

Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details

slate rune
#

Yes one sec

#

acct_1KT7GDBJot0EDKkG

azure umbra
#

Hi! I'm taking over this thread.

#

Also are you doing the request in test mode or livemode?

slate rune
#

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

azure umbra
#

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.

slate rune
#

Is there an endpoint in which I can get the conversion rate? to calculate the amount in usd

azure umbra
#

Stripe doesn't offer that, but there are probably other services that can give you the conversino rate.

slate rune
#

perfect thank you!