Get Swap requote

Returns a swap transaction re quote by id. Refer to our Recipes section for more detailed examples.

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

A valid Swap transaction ID.

Headers
string
required

A valid customer authentication token in the format 'Bearer [auth token]'.

Responses

Response body
object
string

Unique identifier for the object.

string

Time at which the quote expires. Returned as an ISO 8601 string.

string

A positive number string representing your extra fee for the transaction. It is added to baseCurrencyAmount, feeAmount and networkFeeAmount when the swap is executed.

string

A positive number string representing the network fee for the transaction. It is added to baseCurrencyAmount, feeAmount and extraFeeAmount when the swap is executed.

string

A positive number string representing your extra fee for the transaction, in USD. It is added to baseCurrencyAmount, feeAmount and and networkFeeAmount when the swap is executed.

string

A positive number string representing the network fee for the transaction, in USD. It is added to baseCurrencyAmount, feeAmount and extraFeeAmount when the swap is executed.

baseCurrency
object

Details about the cryptocurrency the customer wants to swap.

string

Unique identifier for the currency.

string

Time at which the object was created. Returned as an ISO 8601 string.

string

Time at which the object was last updated. Returned as an ISO 8601 string.

string

Always crypto

crypto

string

The currency's name.

string

The currency's code.

number

The currency's precision (number of digits after decimal point).

number | null

Represents the minimum amount of cryptocurrency you can buy.

number | null

Represents the maximum amount of cryptocurrency you can buy.

number | null

The minimum amount of cryptocurrency you can sell.

number | null

The maximum amount of cryptocurrency you can sell.

string

A regular expression which you can test against your end user's wallet addresses.

string

A regular expression which you can test against your end user's testnet wallet addresses.

boolean

Whether the currency supports address tags.

string | null

A regular expression which you can test against a wallet address tag. Defined only if the currency supports address tags.

boolean

Whether the currency supports test mode.

boolean

Whether purchases for this currency are suspended. If the currency is suspended, exchange rates may not be available and it is not possible to create a transaction with this currency.

boolean

Whether purchases for this currency are supported in the US.

boolean

Whether sales for this currency are supported.

notAllowedUSStates
array of strings

A list with all the US states for this currency that are not supported.

notAllowedUSStates
notAllowedCountries
array of strings

A list with all the ISO 3166-1 alpha-2 country codes for this currency that are not supported.

notAllowedCountries
metadata
object

Additional metadata for the currency.

quoteCurrency
object

Details about the cryptocurrency the customer will receive.

string

Unique identifier for the currency.

string

Time at which the object was created. Returned as an ISO 8601 string.

string

Time at which the object was last updated. Returned as an ISO 8601 string.

string

Always crypto

crypto

string

The currency's name.

string

The currency's code.

number

The currency's precision (number of digits after decimal point).

number | null

Represents the minimum amount of cryptocurrency you can buy.

number | null

Represents the maximum amount of cryptocurrency you can buy.

number | null

The minimum amount of cryptocurrency you can sell.

number | null

The maximum amount of cryptocurrency you can sell.

string

A regular expression which you can test against your end user's wallet addresses.

string

A regular expression which you can test against your end user's testnet wallet addresses.

boolean

Whether the currency supports address tags.

string | null

A regular expression which you can test against a wallet address tag. Defined only if the currency supports address tags.

boolean

Whether the currency supports test mode.

boolean

Whether purchases for this currency are suspended. If the currency is suspended, exchange rates may not be available and it is not possible to create a transaction with this currency.

boolean

Whether purchases for this currency are supported in the US.

boolean

Whether sales for this currency are supported.

notAllowedUSStates
array of strings

A list with all the US states for this currency that are not supported.

notAllowedUSStates
notAllowedCountries
array of strings

A list with all the ISO 3166-1 alpha-2 country codes for this currency that are not supported.

notAllowedCountries
metadata
object

Additional metadata for the currency.

string

The name of the cryptocurrency pair.

string

A positive string number representing how much crypto the user wants to swap.

string

A positive string number representing the amount of cryptocurrency the customer will receive. Set when the purchase of cryptocurrency has been executed.

feeCurrency
object

Fee currency for this quote

string

Unique identifier for the currency.

string

Time at which the object was created. Returned as an ISO 8601 string.

string

Time at which the object was last updated. Returned as an ISO 8601 string.

string

Always crypto

crypto

string

The currency's name.

string

The currency's code.

number

The currency's precision (number of digits after decimal point).

number | null

Represents the minimum amount of cryptocurrency you can buy.

number | null

Represents the maximum amount of cryptocurrency you can buy.

number | null

The minimum amount of cryptocurrency you can sell.

number | null

The maximum amount of cryptocurrency you can sell.

string

A regular expression which you can test against your end user's wallet addresses.

string

A regular expression which you can test against your end user's testnet wallet addresses.

boolean

Whether the currency supports address tags.

string | null

A regular expression which you can test against a wallet address tag. Defined only if the currency supports address tags.

boolean

Whether the currency supports test mode.

boolean

Whether purchases for this currency are suspended. If the currency is suspended, exchange rates may not be available and it is not possible to create a transaction with this currency.

boolean

Whether purchases for this currency are supported in the US.

boolean

Whether sales for this currency are supported.

notAllowedUSStates
array of strings

A list with all the US states for this currency that are not supported.

notAllowedUSStates
notAllowedCountries
array of strings

A list with all the ISO 3166-1 alpha-2 country codes for this currency that are not supported.

notAllowedCountries
metadata
object

Additional metadata for the currency.

string

The price of the crypto the customer wants to swap, in USD.

string

The price of the crypto the customer will receive, in USD.

boolean

Whether live mode is enabled for this quote.

string

The rate provided by the underlying exchange.

string

The signature for executing the quote

Language
Credentials