Skip to main content

1. Create a Quote

The first step in any transaction is to get a quote. This tells you exactly how much the recipient will get, or how much the sender needs to send.

Endpoint

POST /quote

Request

This endpoint expects a target amount in local currency. If you prefer to quote by crypto amount, use Reverse Quote.

Example: delivering 400,000 COP

{
"amount": 400000,
"crypto_currency": "USDC",
"network": "STELLAR",
"payment_method": "BREB",
"target_currency": "COP"
}

Parameters

ParameterTypeDescription
amountnumberTarget amount the recipient should receive (in target_currency).
crypto_currencystringThe source cryptocurrency (e.g., USDC).
networkstringThe blockchain network (e.g., STELLAR, SOLANA).
payment_methodstringThe payout method (e.g., BREB, PIX).
target_currencystringThe target fiat currency (e.g., COP, BRL).

Response

The response includes the quote_id, which you will need for the next step, and the expiration time.

{
"expiration_time": 1732520000,
"quote_id": "uuid-string",
"value": 100.5
}

value is the crypto amount (USDC) you need to send before expiration_time (epoch ms).

Expiration

Quotes are valid until expiration_time (currently up to 1 hour). You must accept the transaction and fund it before the quote expires.

Troubleshooting

Quote Expired?

If you receive a 400 Bad Request when trying to accept a transaction, check if the expiration_time has passed. You will need to request a new quote.

Invalid Currency Pair?

Ensure that the target_currency is supported for the selected payment_method. See Supported Assets.