Description

This endpoint exchanges a specific amount from one currency to another.

Request

POST /rates

Headers

api-key: your_secret_key_here

Body

{
    "from_currency": "KES",
    "to_currency": "SSP"
}

Response

{
    "status": true,
    "message": "success",
    "data": {
        "from_currency": "KES",
        "to_currency": "SSP",
        "rate": 43.125
    }
}