Skip to main content
POST
transactions - Create a swap promise (quote)

Headers

authorization
string
required

The API key as a string.

signature
string
required

See the Generating Signature section for more details.

timestamp
number
required

A timestamp in milliseconds. See the Timestamp Security section for more details.

timstamp-tolerance
number

An additional, non-required parameter, that you can send to specify the number of milliseconds after the timestamp for the request to be valid. See the Timestamp Security section for more details.

Body

application/json
from_currency
string
required

Currency ticker to swap from.

Example:

"ARS"

to_currency
string
required

Currency ticker to swap to.

Example:

"BTC"

amount_currency
string
required

Currency in which amount is expressed. Must equal from_currency or to_currency.

Example:

"ARS"

amount
string
required

Amount to swap as a decimal string, expressed in amount_currency.

Example:

"10000"

gateway
string
required

Gateway identifier for the swap.

Example:

"balance"

Response

Swap promise created successfully.

error_code
string
message
string
data
object

Swap promise (quote) returned by the promises endpoint. The uuid is a signed token (JWT) that must be sent to POST /transactions/swap/ to execute the swap before it expires.