Pretium
  • Introduction
  • API Reference
    • Account
      • Detail
      • Wallet
      • Countries
      • Exchange Rates
    • Kenya
      • Mobile Money
        • Collect
        • Disburse
        • Status
        • Transactions
Powered by GitBook
On this page
  1. API Reference
  2. Account

Exchange Rates

This API provides partners with buying and selling rates for crediting or debiting their wallet balance, either in USD or by converting local currencies to USD.

To get selling rates, add "selling_rate": true and "from": "KES" in the request body. For buying rates, add "buying_rate": true and "to": "KES" in the request body.


 POST {{uri}}/account/exchange-rate
{
    "code": 200,
    "message": "Exchange rates",
    "data": {
        "from": "KES",
        "to": "USD",
        "rate": 133.79
    }
}
{
   "code": 400,
   "message": "Failed - Bad Request"
}
PreviousCountriesNextKenya

Last updated 6 months ago