Rates & estimates
Show live exchange rates and the exact amount a recipient will get before you send.
Both endpoints require the payment.view scope.
Exchange rates
GET /rates returns MigraPay's current rates against a base currency, for every currency you can hold. Use them for display; a payout's final amount, with fees, comes from an estimate.
Prop
Type
curl "https://business-api.migrapay.com/v1/api/rates?base=CAD" \
-H "Authorization: Bearer $MIGRAPAY_API_KEY"{
"status": "success",
"message": "Exchange rates retrieved successfully.",
"data": {
"base": "CAD",
"rates": { "USD": 0.724113, "NGN": 1085.547221 },
"previous": { "USD": 0.722587, "NGN": 1082.276406 },
"refreshedAt": "2026-08-12T16:00:00.000Z"
}
}rates maps each currency to the amount of it one unit of base buys (up to 6 decimals). base itself is not listed. previous holds the prior reading so you can show movement. Errors: 400 UNSUPPORTED_BASE_CURRENCY, 503 RATES_UNAVAILABLE.
Estimate a payout
GET /payouts/estimate prices a payout with MigraPay's rate and fees, either from the amount you send or from the amount the recipient should get.
Prop
Type
curl "https://business-api.migrapay.com/v1/api/payouts/estimate?from=CAD&to=NGN&amount=250" \
-H "Authorization: Bearer $MIGRAPAY_API_KEY"{
"status": "success",
"message": "Estimate computed successfully.",
"data": {
"fromCurrency": "CAD",
"fromAmount": 250,
"toCurrency": "NGN",
"toAmount": 271050,
"fees": 0,
"amountWithFee": 250,
"payoutRate": 1084.2,
"payinRate": 0.000909,
"formattedRate": "CAD 1.00 = NGN 1,084.20",
"action": "youSend",
"rail": "bank"
}
}| Field | Description |
|---|---|
fromAmount, toAmount | What leaves your wallet and what the recipient gets, in major units. |
fees | Fee for this payout, in the source currency (already in amountWithFee). |
amountWithFee | Total debited from your wallet. |
payoutRate | Destination units per one source unit, after MigraPay’s margin. |
formattedRate | Rate ready for display. |
rail | The payout rail this quote is priced for. |
Holding a quote
Each estimate is held for 60 seconds. A payout for the same currencies and the same source amount (fromAmount) created within that minute delivers the quoted toAmount, as long as the rate has not moved. With receiverGets, send the returned fromAmount as the payout fromAmount.
Errors: 400 VALIDATION_ERROR, 400 INVALID_AMOUNT, 503 RATES_UNAVAILABLE, 503 RATE_UNAVAILABLE (data.currency names the currency without a rate).