Exchange Rates API

Access real-time cross-currency exchange rates based on a specific country, simplifying international conversions.

Overview

The Exchange Rates API provides a simple way to get foreign exchange (FX) data for your applications. By specifying a country code, you receive a set of pre-calculated exchange rates between that country's local currency and major international currencies like USD, EUR, and GBP. This removes the need for manual cross-rate calculations.

Get Country-Specific Rates

GET/api/v1/b2b/exchange/rates

Retrieves a set of exchange rates relevant to a specific country by providing its two-letter country code.

For programmatic use, you must specify a country using the ?country=XX query parameter and provide your key in the Authorization header.

cURL
curl -X GET 'https://api.cashpay-all.com/api/v1/b2b/exchange/rates?country=CD' \
-H 'Authorization: Bearer <YOUR_API_KEY>'

Success Response for ?country=CD

JSON
{
  "success": true,
  "country": "CD",
  "local_currency": "CDF",
  "last_updated": "2025-09-06T19:47:08.000Z",
  "rates": {
    "USD_EUR": 0.925,
    "USD_CDF": 2870.00,
    "EUR_USD": 1.08,
    "EUR_CDF": 3100.00,
    "CDF_USD": 0.000351,
    "CDF_EUR": 0.000323
  }
}