v1
latestOpenAPI 3.0.12026-07-2679100267.2 KBCalculate a currency conversion and lock an exchange rate before initiating a transfer.
post/v1/global-payout/money/convert
Headers
Authorizationstring required
Example:Bearer <token>
Bearer token for authentication.
accountIdstring required
Example:890022ce-bae0-45c1-9b9d-ee7872e6ca27
The parent accountId of the business.
Request body
Example request
{
"amount": 15,
"currency": "USD",
"destinationCurrency": "EUR",
"transactionType": "EXCHANGE"
}Response
Conversion calculated successfully.
Example response
{
"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",
"feeCurrency": "USD"
}
}