Skip to main content
POST
/
payouts
/
calculate
/
exchange-rate
Determine exchange rate and fee
curl --request POST \
  --url https://gateway.useyala.com/api/public/payouts/calculate/exchange-rate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "sourceAmount": 1000,
  "sourceCurrency": "USD",
  "destinationCurrency": "NGN",
  "feeBearer": "tenant",
  "method": "swift",
  "destinationCountryCode": "NGA"
}
'
{
  "statusCode": 200,
  "message": "success",
  "data": {
    "sourceAmount": 1000,
    "totalDeductible": 1000.060659,
    "convertedAmount": 1648542.48,
    "destinationAmount": 1648442.48,
    "sourceCurrency": "USD",
    "destinationCurrency": "NGN",
    "exchangeRate": 1648.54248,
    "feeBearer": "TENANT",
    "includedFees": [
      {
        "method": "Nip",
        "amount": 100,
        "currency": "NGN",
        "settlementDuration": "< 48 hours"
      }
    ]
  }
}

Usage notes

  • Call this endpoint before initiating a payout to show customers the exact costs.
  • The feeBearer determines whether the tenant or customer absorbs transaction fees.
  • Use the includedFees array to display rail-specific fees and settlement durations.
Cache calculator responses briefly (30–60 seconds) to reduce latency while the user reviews quotes.

Authorizations

x-api-key
string
header
required

Body

application/json

Payout exchange rate and fees calculator

sourceAmount
number<float>
required
Example:

1000

sourceCurrency
string
required
Example:

"USD"

destinationCurrency
string
required
Example:

"NGN"

feeBearer
enum<string>
required
Available options:
customer,
tenant
Example:

"tenant"

method
enum<string>
required
Available options:
swift,
nip,
hk_fps,
china_wire,
faster_payments,
wire,
ach,
sepa
destinationCountryCode
string
required
Example:

"NGA"

Response

A successful response

statusCode
integer
Example:

200

message
string
Example:

"success"

data
object