POST
/
api
/
partner
/
v2
/
quotes
cURL
curl --request POST \
  --url https://staging-api.capa.fi/api/partner/v2/quotes \
  --header 'Content-Type: application/json' \
  --header 'partner-api-key: <partner-api-key>' \
  --data '{
  "tokenSymbol": "USDC",
  "transactionType": "ON_RAMP",
  "blockchainSymbol": "POL",
  "fiatCurrency": "MXN",
  "cryptoAmount": 100,
  "fiatAmount": 5000,
  "premiumSpread": 0.01
}'
{
  "success": true,
  "data": {
    "fiatAmount": 5000,
    "fiatCurrency": "DOP, MXN",
    "blockchainSymbol": "ARB",
    "tokenSymbol": "USDC",
    "transactionType": "ON_RAMP",
    "cryptoAmount": 40,
    "rate": 57.01,
    "premiumSpread": 0.01,
    "flow": "REGULAR | OTC",
    "quoteId": "123e4567-e89b-12d3-a456-426614174000",
    "expiresAt": "2025-01-01T00:00:00.000Z"
  }
}

Headers

partner-api-key
string
required

Api key for the affiliated partner that is performing the request

Body

application/json
tokenSymbol
enum<string>
required

The token symbol

Available options:
USDC,
USDT,
MXNe,
SOL,
ETH,
wBTC,
cbBTC,
PYSUD,
POL,
BNB,
WLD,
STK,
USDY,
CORE,
USDC.e,
wUSDL,
CoreBTC,
MATIC,
USDbC
Example:

"USDC"

transactionType
enum<string>
required

Transaction type (ON_RAMP or OFF_RAMP)

Available options:
ON_RAMP,
OFF_RAMP,
CROSS_RAMP
Example:

"ON_RAMP"

blockchainSymbol
enum<string>
required

The blockchain symbol

Available options:
POL,
SOL,
BASE,
ARB,
BSC,
OP,
WLD,
STK,
ETH,
MTN,
CORE
Example:

"POL"

fiatCurrency
enum<string>
required

The fiat currency

Available options:
MXN,
DOP,
USD,
EUR
Example:

"MXN"

cryptoAmount
number

The amount of crypto (required for OFF_RAMP)

Example:

100

fiatAmount
number

The amount of fiat (required for ON_RAMP)

Example:

5000

premiumSpread
number

Spread percentage to be applied to the exchange rate

Example:

0.01

Response

201 - application/json
success
boolean
Example:

true

data
object