Skip to main content
POST
/
exchange
/
convert
Convert an amount from one currency to another
curl --request POST \
  --url https://api.example.com/exchange/convert \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "750.00",
  "from": "USD",
  "to": "NGN"
}
'
{
  "data": {
    "converted_amount": "100.00"
  }
}

Body

application/json

Conversion params

Conversion params

amount
string
required

Amount, in major units

from
string
required

Source currency

to
string
required

Target currency

Response

200 - application/json

Conversion result

Conversion response

data
object

Conversion response