Skip to main content
GET
/
api
/
v3
/
rate
/
{from}
/
{to}
Get exchange rate
curl --request GET \
  --url https://sandbox-api.kotanipay.com/api/v3/rate/{from}/{to} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Available exchange rate.",
  "data": {
    "from": "USD",
    "to": "EUR",
    "value": "0.85"
  }
}
An integrator can use this endpoint to get the exchange rate between two currencies.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

from
string
required
to
string
required

Response

success
boolean
Example:

true

message
string
Example:

"Available exchange rate."

data
object