Exchange rates represent the current conversion price between Nigerian Naira and stablecoins. Before you create a TEMPORARY virtual account or an NGN payout offramp, you should fetch the latest rate and supply the returnedDocumentation Index
Fetch the complete documentation index at: https://docs.dubupay.com/llms.txt
Use this file to discover all available pages before exploring further.
rate_id in your request body to lock in a guaranteed conversion price. Rates are live market quotes with a short validity window — always fetch fresh before use.
Authentication
All endpoints require either a Bearer token or an API key.Get exchange rates
GET https://api.dubupay.com/api/v1/payments/rates
Returns the current exchange rates for NGN conversions. You can filter by currency pair and side (buy or sell).
Query parameters
Source currency (e.g.,
NGN).Target currency (e.g.,
USDT or USDC).Trade direction. Typically
buy or sell.Response
List of rate objects for all available pairs (or the filtered pair if query params are provided).
Example — fetch all rates
Example — fetch NGN/USDT rate only
Example response
How rates are used
TEMPORARY onramps — locked rate
When you create a TEMPORARY onramp, you pass therate_id from this endpoint. The rate is locked for the 25-minute lifetime of the virtual account. If a deposit arrives within the window, the conversion happens at the locked rate — even if the market has moved.
PERMANENT onramps — floating rate
PERMANENT onramps do not lock a rate at creation time. Instead, the prevailing market rate at the moment a deposit arrives is used for conversion. This gives customers a reusable account without requiring you to refresh rate IDs.NGN payout offramps — locked rate required
When you create an offramp withsettlement.mode set to NGN_PAYOUT, you must supply a rate_id. This locks the USDT→NGN rate for the payout so the recipient receives a predictable amount.