Create a Conversion

Creates a conversion between two assets on an Account. The conversion is returned in a created state with the quoted settlement details. No funds move until it is executed.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

The ID of the Account the conversion moves funds within

Body Params
amount
required

The conversion amount, denominated by either the source asset debit (sourceAmount) or the destination asset credit (targetAmount).

exchangeRateToleranceMode

How execution handles a change in the exchange rate or fees between creation and execution. The exchange rate and fees are locked when execution starts. Defaults to strict when omitted.

route
required

Pick the kind of asset the conversion starts from. Each starting asset lists the destinations it supports.

Headers
string
enum

API version for this request: a date, or latest (beta) for the breaking changes that have no date yet. Omit it to use your organization's pinned version. The response echoes the version used.

Allowed:
string

Organization ID to act on behalf of

uuid

Optional UUID to safely retry requests without creating duplicate operations. Subsequent requests with the same key and identical body return the original cached response with an idempotency-replayed: true response header. Keys expire after 24 hours.

Responses

401

Unauthorized

409

IdempotencyConflictError

422

IdempotencyKeyExpiredError

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