Send money in one currency and deliver in another using the FX engine integration, with locked quotes, at-market execution, and detailed fee breakdowns.
A cross-currency payment converts funds from one currency to another as part of the payment
flow. For example, sending USD from your account and delivering EUR to a counterparty in Germany.OpenFX handles the currency conversion internally through the FX Engine (Layer 1). You do
not need to perform a separate conversion before creating a payment — the conversion is
embedded in the payment itself.
The payment executes at the current market rate at the time of processing. This is the simplest
approach and works well when exact rate certainty is not required.
Copy
{ "executionPreference": "at_market"}
Advantages: No need to create a quote first. Single API call.Trade-off: The actual rate may differ slightly from what was previewed, especially if there
is a delay between preview and execution (e.g., during compliance screening).
Advantages: Rate certainty. The counterparty receives exactly the amount shown in the quote.Trade-off: Requires an extra API call to create the FX quote first. The quote has a short
expiration window (typically 60 seconds).
When to use which: Use at_market for automated, programmatic payments where rate
fluctuation is acceptable. Use use_quote when you are showing a confirmation screen
to a user and need the exact price to match what they approved.
The totalDebitAmount is always the sum of sendAmount + all fees. This is the exact amount
debited from your source account. Use this field for reconciliation.