Create Exchange Transaction

Creates a fiat-to-fiat exchange between two payment accounts with different currencies.

  • SELL: amount is in the source account currency (the amount sold).
  • BUY: amount is in the destination account currency (the amount received). feeFromAmount is not supported for BUY.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
uuid
required
[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

ID of the source account

uuid
required
[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

ID of the destination account. Must have a different currency than the source account

string
enum
required

Type of exchange: SELL or BUY.

Allowed:
amount
object
required

Amount to exchange, greater than 0. For SELL in the source account currency, for BUY in the destination account currency.

number

Exchange rate to apply; when omitted the current quoted rate is used

boolean
Defaults to false

Is the fee deducted from the amount. Not supported when type is BUY

string
length ≤ 32

Note for the transaction

string
length between 1 and 200

Comment for the transaction

Headers
uuid
required
[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

UUID of the merchant

string

Unique key for safely retrying the request. A repeated key returns the result of the original request instead of creating a duplicate. Reusing a key with a different request body is rejected.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json