Skip to main content
The Endpoint allows you to convert funds between currency pairs.

Request parameters

Pass these as request body on the /fx-quotes endpoint.
string
The currency you want to convert to. ISO 4217 format.
string
The currency you want to convert from. ISO 4217 format.
number
The amount you want to convert to. This is conditionally required.
number
The amount you want to convert from. This is conditionally required.
string
The ID of the account from which to debit the funds.
string
required
The ID of the counterparty involved in the exchange.
string
required
The ID of the payment details associated with the exchange.

Convert funds between currency pairs.

You can specify either the amount_to or amount_from field, but not both. The endpoint calculates the other amount based on the current exchange rate.

Response Parameters

string
Unique entity identifier.
string
Currency converted to.
number
The exchange rate applied to the conversion.
string
Currency converted from
object
The quote details associated with this forex exchange.
number
Timestamp for when the forex exchange was created.
number
Timestamp for when the forex exchange was last updated.
Example

Initiate Transfer

To initiate a cross currency transfer, you can use the id of the forex exchange in the fx_quote_id field when creating a payment. This will apply the exchange rate from the forex exchange to the payment.

Request parameters

string
required
The ID of the source account to debit.
string
required
The ID of the payment detail record with payment_method: "momo-transfer".
string
required
The payment type of the transfer. It can be bank-transfer, momo-transfer, stablecoin-transfer, and book-transfer.
string
required
Transfer description. Maximum 100 characters.
string
required
Idempotency key. Maximum 64 characters.
string
required
The ID of the forex exchange quote to apply to this transfer.

Request