cURL
curl --request POST \ --url https://api.nomba.com/v1/global-payout/money/convert \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --header 'accountId: <accountid>' \ --data ' { "amount": 15, "currency": "USD", "destinationCurrency": "EUR", "transactionType": "EXCHANGE", "sourceCountryIsoCode": "NG" } '
{ "code": "00", "description": "Successful", "data": { "fromAmount": 15, "fromCurrency": "USD", "fromFormatted": "$15.00", "toAmount": 13.04, "toCurrency": "EUR", "toFormatted": "13,04 €", "spreadAmount": 0.12, "spreadCurrency": "EUR", "exchangeRateId": "01kkk4b7rh8pcvtw1s1nxs144s", "currencyPairName": "EUR/USD", "feeAmount": 0, "feeCurrency": "USD" } }
Calculate a currency conversion and lock an exchange rate before initiating a transfer.
Bearer token for authentication.
"Bearer <token>"
The parent accountId of the business.
"890022ce-bae0-45c1-9b9d-ee7872e6ca27"
Currency conversion payload
15
ISO 4217 source currency code.
"USD"
ISO 4217 destination currency code.
"EUR"
"EXCHANGE"
"NG"
Conversion calculated successfully.
"00"
"Successful"
Show child attributes