Skip to main content

Get Buy Quotes

Get on-ramp quotes showing how much crypto you receive for a given fiat amount. Returns multiple quotes from different sources so you can compare rates and fees.

GEThttps://api.zenpayz.com/payment/api/v1/on-ramp/quotes
Bearer · API key

Request

Headers

HeaderDescription
x-request-id
OPTIONAL
Custom request ID for tracing
Public Endpoint

This endpoint does not require authentication headers.

Query Parameters

ParameterTypeDescription
source
REQUIRED
stringFiat currency (e.g. usd, eur)
destination
REQUIRED
stringCrypto ID (e.g. btc_bitcoin, eth_ethereum)
amount
REQUIRED
stringFiat amount (e.g. 100)
paymentMethod
OPTIONAL
stringFilter by payment method (e.g. creditcard)
country
OPTIONAL
stringISO country code
walletAddress
OPTIONAL
stringDestination wallet address
uuid
OPTIONAL
stringUnique user identifier

Response

Success (200 OK)

{
"success": true,
"data": [
{
"onramp": "moonpay",
"paymentMethod": "creditcard",
"inputAmount": 100,
"outputAmount": 0.00112,
"rate": 89285.71,
"networkFee": 0.5,
"transactionFee": 3.99,
"totalFee": 4.49,
"recommended": true,
"labels": ["best_rate"],
"minAmount": 20,
"maxAmount": 10000,
"quoteId": "01H985NH79FW951SKERQ45JMYXmoonpay",
"availablePaymentMethods": [
{ "paymentTypeId": "creditcard", "name": "Credit Card", "icon": "https://cdn.onramper.com/icons/payments/creditcard.svg" },
{ "paymentTypeId": "banktransfer", "name": "Bank Transfer", "icon": "https://cdn.onramper.com/icons/payments/banktransfer.svg" }
]
},
{
"onramp": "transak",
"paymentMethod": "creditcard",
"inputAmount": 100,
"outputAmount": 0.00110,
"rate": 90909.09,
"networkFee": 1.0,
"transactionFee": 4.50,
"totalFee": 5.50,
"recommended": false,
"labels": [],
"minAmount": 30,
"maxAmount": 5000,
"quoteId": "01H985NH79FW951SKERQ45JMYXtransak",
"availablePaymentMethods": [
{ "paymentTypeId": "creditcard", "name": "Credit Card", "icon": "https://cdn.onramper.com/icons/payments/creditcard.svg" }
]
}
],
"message": "Quotes retrieved"
}

Response Fields

ParameterTypeDescription
onramp
OPTIONAL
stringReference identifier -- pass this to the checkout endpoint
paymentMethod
OPTIONAL
stringPayment method for this quote
inputAmount
OPTIONAL
numberFiat amount you pay
outputAmount
OPTIONAL
numberCrypto amount you receive
rate
OPTIONAL
numberExchange rate
networkFee
OPTIONAL
numberBlockchain network fee
transactionFee
OPTIONAL
numberProcessing fee
totalFee
OPTIONAL
numberCombined fees
recommended
OPTIONAL
booleanWhether this is the recommended quote
labels
OPTIONAL
string[]Tags like best_rate, low_kyc
minAmount
OPTIONAL
numberMinimum allowed amount
maxAmount
OPTIONAL
numberMaximum allowed amount
estimatedTime
OPTIONAL
stringEstimated completion time
errors
OPTIONAL
string[]Any issues with this quote
quoteId
OPTIONAL
stringUnique quote identifier for reference
availablePaymentMethods
OPTIONAL
arrayPayment methods available for this quote. Each entry has paymentTypeId, name, and icon
tip

The onramp field is a reference identifier. When creating a checkout, pass the onramp value from your selected quote.

Error Responses

CodeHTTPMessage
RAMP_QUOTES_FAILED500Failed to get buy quotes

Examples

curl "https://api.zenpayz.com/payment/api/v1/on-ramp/quotes?source=usd&destination=btc_bitcoin&amount=100&paymentMethod=creditcard"

Next Steps