Get Utility exchange rate

Retrieves the current exchange rate for a specified operator and currency. The endpoint returns the exchange rate applied by LedgerBlock, along with the currency, operator, and the time the rate was last updated.

Request

Method: GET

Endpoint:

{{base_url}}/api/v1/utility/exchange-rates?operator=Nigeria t2 Mobile&currency=NGN

Query Parameters

ParameterTypeRequiredDescription
operatorStringYesName of the operator for which the exchange rate is requested.
currencyStringYesCurrency code for the requested exchange rate.

Authentication & Headers

HeaderTypeRequiredDescription
AuthorizationStringYesBearer ${api_key} — your activated merchant API key.
x-merchant-refStringYesYour unique merchant reference.

Request Body

This endpoint does not require a request body.

Response

Success Response

{
  "status": "success",
  "message": "Fetched",
  "data": {
    "data": {
      "currency": "NGN",
      "operator": "Nigeria T2 Mobile",
      "rate": "1340.212500",
      "updatedAt": "2026-08-27T12:00:34.50149Z"
    }
  }
}

Response Fields

FieldTypeDescription
statusStringIndicates whether the request was successful.
messageStringResponse message.
data.dataObjectContains the exchange rate information.
currencyStringCurrency code associated with the exchange rate.
operatorStringName of the operator associated with the exchange rate.
rateStringCurrent exchange rate for the specified operator and currency.
updatedAtStringTimestamp indicating when the exchange rate was last updated.

Did this page help you?