https://your-domain.com/api
All endpoints on this page require
Authorization: Bearer {token}.Flow overview
Get source wallets
Call
GET /get-User-Wallets-WithActive-HasTransaction to list the user’s eligible source currencies.Get destination wallets
Call
POST /getWalletsExceptSelectedFromWallet to list available destination currencies.GET /get-User-Wallets-WithActive-HasTransaction
Returns the user’s wallets that have active currencies with configured exchange fee/limit rules.Request parameters
The authenticated user’s ID.
Response fields
POST /exchange-review
Validates the source amount against balance and fee/limit rules before proceeding.Request parameters
The authenticated user’s ID.
Source wallet currency ID.
Amount to exchange.
Response fields
POST /getBalanceOfFromAndToWallet
Returns the balance and currency code for a specific wallet.Request parameters
The authenticated user’s ID.
The wallet’s currency ID.
Response fields
true if the wallet exists.Numeric balance formatted to 2 decimal places.
Currency code.
POST /getWalletsExceptSelectedFromWallet
Returns available destination currencies, excluding the selected source currency.Request parameters
The authenticated user’s ID.
The source currency ID to exclude.
Response fields
true if currencies are available.Key-value map of currency_id to
{id, code, balance}. null if no eligible currencies.POST /get-currencies-exchange-rate
Returns the current exchange rate from one currency to another.Request parameters
Source currency ID.
Source currency code (e.g.
USD). Used for API rate lookup.Destination currency ID.
Amount to convert (used for display calculation only).
Response fields
POST /review-exchange-details
Calculates fees and the final converted amount for the exchange.Request parameters
The authenticated user’s ID.
Source amount.
Source currency ID.
Exchange rate from
/get-currencies-exchange-rate.Response fields
POST /exchange-money-complete
Executes the currency exchange. Deducts from the source wallet and credits the destination wallet.Request parameters
The authenticated user’s ID.
Source currency ID.
Destination currency ID.
Source amount to deduct.
Converted amount to credit in destination currency.
Exchange rate used.
Total fees from
/review-exchange-details.Response fields
true on success, false on hard failure.Error message when
status is false.