Overview
In cross-border payments, transparency is key. Before initiating a deposit or withdrawal, you should always fetch the current exchange rates and estimate the transaction fees. This ensures your users know exactly what to expect in terms of costs and settlement amounts. The Bullring API provides endpoints to:- Get real-time exchange rates for currency pairs.
- Calculate precise fees for deposits and withdrawals based on the transaction amount.
1. Get Exchange Rate
Endpoint:GET /v1/banking/rate
Exchange rates are dynamic and can fluctuate. Use this endpoint to get the current conversion rate between a source currency (from) and a destination currency (to).
Rates returned by this endpoint are indicative of the market rate at that moment. For the most accurate settlement, you should refresh this rate close to the time of transaction execution.
Example Request
Fetch the rate for converting USDC to NGN.Expected Response
2. Calculate Fees
Endpoints:GET /v1/banking/withdrawal/feeGET /v1/banking/deposit/fee
Understanding the Response
The fee calculation endpoints return a detailed breakdown:amount: The total fee calculated.percentage: The percentage rate applied.flatFee: The fixed fee amount applied.grossAmount: The total amount required (Principal + Fee).netAmount: The amount that will actually be settled or received.
Example: Calculate Withdrawal Fee
Estimate the cost of withdrawing 100,000 NGN.Expected Response
Common Mistakes
- Confusing Net vs. Gross: Ensure you understand the difference between
netAmount(what the recipient gets) andgrossAmount(what you pay). If you want the user to receive an exact amount, use the calculator to determine the necessary gross amount. - Unsupported Pairs: Verify that the currency pair you are requesting is supported. See Supported Currencies.
- Ignoring Minimums: Fee calculations might be valid, but the actual transaction endpoints enforce minimum and maximum limits. Check the specific channel limits via
GET /v1/ramp/banking/channels.