Skip to main content
POST
Create Quote

Authorizations

Authorization
string
header
required

Access token obtained via /oauth2/token/. Use as Authorization: Bearer <access_token>.

Body

application/json

Details for the quote request.

Payload for creating a quote. Quotes are always tied to an existing customer, so you must create the customer before requesting a quote.

customerId
string<uuid>
required

Unique identifier of the customer the quote is for. The customer must already exist and be active.

Example:

"8142b065-79c4-4f48-9e33-11b17bc658d4"

fromCurrency
string
required

The source currency for the conversion.

Example:

"ARS"

toCurrency
string
required

The target currency for the conversion.

Example:

"USDC"

fromAmount
string
required

The amount of the source currency to be converted.

Example:

"1500"

chain
string
required

The blockchain network to be used for the conversion (applicable for certain cryptocurrencies).

Example:

"ETHEREUM_SEPOLIA"

paymentMethodType
string
required

The desired payment method for the conversion (e.g., bank_transfer, breb, r2p_bancolombia, r2p_nequi, pix). Note: breb, r2p_bancolombia and r2p_nequi are only available for Colombia; pix is only available for Brazil. Additionally, r2p_bancolombia and r2p_nequi are only available for on-ramp operations.

Example:

"bank_transfer"

depositAddress
string

Wallet the crypto will be sent to. Required for on-ramp quotes on HYPERCORE and HYPERCORE_TESTNET: HyperCore charges a one-off activation fee on the first transfer to an address that has never received funds, and the quote prices it for this address. Optional on every other network and ignored on off-ramp quotes. When sent, the on-ramp order created from this quote must use this same depositAddress (error 20116 otherwise).

Example:

"0x4e88BBeFF059BDDF5BF90ee0816E86eDf4214b32"

Response

Quote created successfully.

quoteId
string<uuid>
required

Unique identifier for the quote.

Example:

"8142b065-79c4-4f48-9e33-11b17bc658d4"

fromCurrency
string
required

The source currency for the conversion.

Example:

"ARS"

toCurrency
string
required

The target currency for the conversion.

Example:

"USDC"

fromAmount
string
required

The amount of the source currency to be converted.

Example:

"1500.00000000"

finalFromAmount
string
required

The amount of the source currency after fees deduction.

Example:

"1400.00000000"

toAmount
string
required

The amount of the target currency received after the conversion.

Example:

"1.42857143"

finalToAmount
string
required

The amount of the target currency after fees deduction.

Example:

"1.32857143"

rate
string
required

The exchange rate applied for the conversion.

Example:

"1050.00000000"

expiration
string<date-time>
required

The date and time when the quote expires (UTC).

Example:

"2024-04-10T18:17:07.702533Z"

fees
object[]
required

Fees deducted from the quote. An on-ramp quote on HYPERCORE to an address that has never received funds includes an activation_fee line: HyperCore's one-off charge (1 USDC) for the first transfer to that address, deducted from the crypto like the gas_fee.

depositAddress
string | null

Wallet the quote was priced for, or null if the quote request did not send one. An on-ramp order created from this quote must use it as its depositAddress.

Example:

"0x4e88BBeFF059BDDF5BF90ee0816E86eDf4214b32"