Conversion Rates
Preview IVB exchange rates, fees and net amounts before initiating a collection or payout.
Use the Rates API to preview current fees, exchange rates, and net amounts before initiating any transfer or collection. Use the returned totals when showing the customer a payment preview. A successful quote does not establish that a currency, token/network pair or payment route is enabled for your business.
Base path: /v1/rates
Authentication: API Key (Authorization: <secret-key>)
Display the full debit amount before initiating a collection. Confirm the payment total explains how to obtain a merchant-specific quote and optionally bind it to the payment. Existing integrations remain compatible.
Endpoints
GET
/v1/rates/fiat-transfer
Preview fees for a bank or mobile money payout
GET
/v1/rates/crypto-transfer
Preview fees for sending crypto to a wallet address
GET
/v1/rates/fiat-collection
Preview fees for collecting a fiat payment
GET
/v1/rates/crypto-collection
Preview fees for collecting a crypto payment
All four endpoints are read-only: no funds are moved, no transaction is created.
Response Fields
Examples below use an illustrative rate of 1 USDT = 1,000 NGN. Fees, minimums and rates vary by operation and business; use your returned quote.
All endpoints return the same base shape. Collection totals are what the customer pays; payout totals are the merchant charge. Do not add the listed fees to those totals again.
rate always means units of fiatCurrency for one unit of token. Buy and sell quotes may use different rates, and a stablecoin is not assumed to equal one US dollar. Fields specific to an endpoint are noted inline.
platformFeeInFiat
number
Ivorypay platform fee expressed in the fiat currency
platformFeeInCrypto
number
Ivorypay platform fee expressed in the crypto token
totalAmountInFiat
number
Collection customer total or payout charge in fiat
amountInFiatLessFee
number
Collection merchant net; payout recipient principal in fiat
fiatCurrency
string
Resolved fiat currency code (e.g. NGN)
totalAmountInCrypto
number
Collection customer total or payout charge in token units
amountInCryptoLessFee
number
Collection merchant net; payout principal in token units
minimumAmountInFiat
number
Minimum fiat amount accepted for this operation
minimumAmountInCrypto
number
Minimum crypto amount accepted for this operation
rate
number
Fiat units per one token, e.g. 1 USDT = 1,000 NGN
token
string
The crypto token used for the quote
gasFeeInCrypto
number
Network fee expressed in the quoted token, already included in the total. Crypto transfer only.
minimumAmountInFiatCurrency
string
Currency code for the minimum fiat amount. Payouts only.
collectionFeeBearer
string
CUSTOMER adds the platform fee to principal; MERCHANT deducts it from proceeds. Collections only.
GET /v1/rates/fiat-transfer
The public request amount remains in crypto-token units in both payout funding modes. With payout wallets enabled, totalAmountInFiat is the matching fiat payout-wallet charge. With the feature disabled, totalAmountInCrypto is the crypto collection-wallet charge. Neither a quote nor a sufficient total across currencies guarantees sufficient available funds in the selected wallet.
Returns a fee and rate breakdown for a bank or mobile money payout (crypto-to-fiat). Use this to show the recipient amount before calling POST /v1/fiat-transfer.
Query Parameters
amount
number
Yes
Amount in crypto to quote against. Must be positive.
token
string
Yes
Crypto token to debit (e.g. USDT, USDC).
fiatCurrency
string
Yes
Target fiat currency for the recipient (e.g. NGN).
payoutMethod
string
No
BANK_TRANSFER (default) or MOBILE_MONEY. Use the same method when initiating.
For fiat payouts, additional response fields are:
recipientAmount
Fiat amount the recipient is quoted to receive. Also returned as amountInFiatLessFee.
payoutDispatchAmount
Fiat amount used for dispatch on the selected rail.
payoutTermsVersion
Version of the payout calculation; pass this value unchanged on initiation.
payoutQuoteFingerprint
Fingerprint of the quoted terms; pass it unchanged on initiation to detect changed pricing.
payoutMethod
Method used for this quote.
Use the same crypto amount, token, fiat currency and method in the fiat transfer. If terms have changed, obtain a new quote and customer confirmation instead of silently accepting a different recipient amount.
Request
Response
GET /v1/rates/crypto-transfer
Returns a fee and rate breakdown for a crypto payout to a blockchain wallet address. Includes on-chain gas fees. Use this before calling POST /v1/crypto-transfer.
Query Parameters
amount
number
Yes
Amount in crypto to send. Must be positive.
token
string
Yes
Crypto token to send (e.g. USDT, USDC).
fiatCurrency
string
Yes
Your fiat currency used to calculate fee equivalents (e.g. NGN).
address
string
Yes
Recipient's wallet address. Used to estimate gas for the specific destination.
Request
Response
GET /v1/rates/fiat-collection
Returns a fee and rate breakdown for a fiat collection. Current fiat collections settle in USDT. The token query parameter changes the quote unit; it does not change the settlement token of a payment. Use USDT to preview the implemented fiat collection flow.
Display totalAmountInFiat as the customer payment and amountInCryptoLessFee as net settlement. The saved collection fee preference determines whether fees are added to principal or deducted from proceeds. For a payment-specific quote with the customer and method inputs, use Collection totals and customer approval.
Query Parameters
amount
number
Yes
Fiat principal before the fee-bearer calculation. Must be positive.
token
string
Yes
Quote token. Use USDT for current fiat collection settlement.
fiatCurrency
string
Yes
Fiat currency of the payment (e.g. NGN).
Request
Response
GET /v1/rates/crypto-collection
Returns a fee and rate breakdown for accepting a crypto payment directly from a customer's wallet on a specific blockchain network.
Query Parameters
amount
number
Yes
Token principal before the fee-bearer calculation. Must be positive.
token
string
Yes
Crypto token the customer will send (e.g. USDT, USDC).
fiatCurrency
string
Yes
Your fiat currency used to calculate fee equivalents (e.g. NGN).
Request
Response
Error Responses
400
Your provided fiat currency is currently not supported
fiatCurrency is not active on Ivorypay
400
Currencies are currently not activated for conversion
No active currencies configured on the platform
400
token must be a supported crypto currency
token is not a valid enum value
400
network must be a supported blockchain network
network is not a valid enum value
400
amount must be a positive number
amount is zero or negative
401
Unauthorized
Missing or invalid API key
Supported Values
token
Use Supported tokens and networks to discover active pairs for your business and API-key environment. IVB's LIVE catalog includes USDT, USDC, SOL, BTC and ETH; this does not enable every token on every network or grant every business access to them. Do not use the wider SDK enum as an availability list.
For fiat collection settlement, use USDT. Other quote tokens do not change that settlement contract.
fiatCurrency
The local currency catalog includes:
NGN
Nigerian Naira
KES
Kenyan Shilling
ZAR
South African Rand
XOF
West African CFA Franc
XAF
Central African CFA Franc
CDF
Congolese Franc
RWF
Rwandan Franc
SLE
Sierra Leonean Leone
UGX
Ugandan Shilling
ZMW
Zambian Kwacha
Collection and payout eligibility are checked independently. Merchant grants, country, operator and payment method still apply. Consult Mobile Money Payments for country/network coverage and the bank directory for bank payouts. Provider availability can change without a pricing change.
USD or TZS pricing may be available without an enabled bank or mobile money route. A quote is not a promise that either collection or payout can be initiated. Other enum values, including GHS, do not establish an active payment currency.
The general Rates queries do not select a country or mobile money operator. For a collection tied to a customer's phone and chosen network, use the payment-specific collection quote with the same initiation inputs. Do not infer an operator-specific fee from a general rate preview.
Networks
Use the exact network code returned by Supported tokens and networks, such as BSC_MAINNET for an enabled USDT pair. Keep the network and API-key environment consistent; a Test network is not a Live route.
Code Examples
Node.js
cURL
Python
Best Practices
Quote before initiating. Display the returned breakdown. A quote does not lock a rate; initiation can reject changed terms. For fiat payouts, pass the returned quote fingerprint and terms version as described below.
Respect the minimum amounts. If the user's amount is below
minimumAmountInFiatorminimumAmountInCrypto, reject it on your side before calling the transfer endpoint: it will fail otherwise.Use
gasFeeInCryptofor crypto transfers. Show it as part of the returned total; do not add it a second time.Do not cache rate responses. Exchange rates are volatile. Always fetch a fresh quote immediately before displaying to a user or initiating a transaction.
Last updated