Generate Currency Quote

Want to swap currencies?

This endpoint provides a rate and other relevant details for converting a specified amount from one currency to another.

Endpoint

{baseurl}}/exchange-rate/quote

Method: GET

Query parameters are required for this request.

FieldData TypeDescription
amountNumber >=1Required. This specifies the amount of money to be converted. It must be a number greater than or equal to 1.
currencyFromString. Enum NGN USD EUR GBP KES TZS GHS RWF XAF XOF ZAR UGX AUD CAD ETB EGP MAD MWK ZMW SLL MURRequired. This is the starting currency for the transaction.
currencyToString. Enum NGN USD EUR GBP KES TZS GHS RWF XAF XOF ZAR UGX AUD CAD ETB EGP MAD MWK ZMW SLL MURRequired. This is the target currency for the transaction.

A successful response will look like this:

{
  "success": true,
  "statusCode": 200,
  "message": "Exchange rate fetched",
  "data": {
    "data": {
      "success": true,
      "statusCode": 200,
      "message": "Quote fetched successfully",
      "data": {
        "id": "clubg9uy10003m27tidh9u200",
        "sendAmount": 3000,
        "receiveAmount": 3.01,
        "rate": 0.001004,
        "currencyPair": "NGN/USD"
      }
    }
  }
}