Overview
POST /partner/wallets/preview-conversion is a read-only calculation: it returns the exchange rate, gross/net amounts, and fee for converting amount (in the source wallet’s currency) into the destination USD wallet, computed from your company’s configured exchange rate and fee tables. No funds are moved.
Call this before POST /partner/wallets/xaf-usd-conversion to show the converted amount to your own user before they confirm.
When to use it
- You want to show “You will receive ~$X” before a user confirms a top-up of their USD wallet.
- You want to check the current rate without committing to a conversion.
Prerequisites
- An active wallet in
XAForXOF, and an activeUSDwallet, both belonging to your company. - An exchange rate configured for your company (contact support if
POSTreturns a 400 about a missing rate).
Request
Headers
Body
Response
200 — Preview
Error responses
Code examples
cURL
Related
POST /partner/wallets/xaf-usd-conversion— actually perform the conversion.GET /wallets— list your wallets and their IDs.