Skip to content

Calculate the exchange rate, amount, and fee

GET
/api/v1/exchange_requests/rate
curl --request GET \
--url 'https://core.example.com/api/v1/exchange_requests/rate?currency=example&target_currency=example' \
--header 'session-token: <session-token>'
amount
number format: double
target_amount
number format: double
currency
required
string
target_currency
required
string
to_change
string

Exchange calculation

Media typeapplication/json
object
success
required
boolean
status
required
integer
target_currency_rate
number format: double
amount
number format: double
target_amount
number format: double
commission_amount
number format: double
commission_value
number format: double
Example
{
"success": true,
"status": 200
}

Authorization, validation, or business-rule error

Media typeapplication/json
object
success
required
boolean
status
required
integer
errors
required
One of:
Array<object>
object
code
string
kind
string
nullable
expiration
string
nullable
session
string
nullable
key
additional properties
any
key
additional properties
any
Example
{
"success": false,
"status": 403
}