Skip to main content

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 XAF or XOF, and an active USD wallet, both belonging to your company.
  • An exchange rate configured for your company (contact support if POST returns a 400 about a missing rate).

Request

Headers

Body

Response

200 — Preview

Error responses

Code examples

cURL