Skip to main content

Get Sell Quotes

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

GEThttps://api.zenpayz.com/payment/api/v1/off-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
stringCrypto ID (e.g. btc_bitcoin)
destination
REQUIRED
stringFiat currency (e.g. usd)
amount
REQUIRED
stringCrypto amount (e.g. 0.01)
paymentMethod
OPTIONAL
stringPayout method (e.g. bank_transfer)
country
OPTIONAL
stringISO country code

Response

Success (200 OK)

{
"success": true,
"data": [
{
"onramp": "moonpay",
"paymentMethod": "bank_transfer",
"inputAmount": 0.01,
"outputAmount": 870.50,
"rate": 89285.71,
"networkFee": 2.00,
"transactionFee": 5.00,
"totalFee": 7.00,
"recommended": true,
"labels": [],
"minAmount": 0.001,
"maxAmount": 1.0,
"quoteId": "01H985NH79FW951SKERQ45JMYXmoonpay",
"availablePaymentMethods": [
{ "paymentTypeId": "bank_transfer", "name": "Bank Transfer", "icon": "https://cdn.onramper.com/icons/payments/banktransfer.svg" },
{ "paymentTypeId": "creditcard", "name": "Credit Card", "icon": "https://cdn.onramper.com/icons/payments/creditcard.svg" }
]
}
],
"message": "Sell quotes retrieved"
}

Response Fields

ParameterTypeDescription
onramp
OPTIONAL
stringReference identifier -- pass this to the sell checkout endpoint
paymentMethod
OPTIONAL
stringPayout method for this quote
inputAmount
OPTIONAL
numberCrypto amount you sell
outputAmount
OPTIONAL
numberFiat 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
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

Error Responses

CodeHTTPMessage
OFFRAMP_QUOTES_FAILED500Failed to get sell quotes

Examples

curl "https://api.zenpayz.com/payment/api/v1/off-ramp/quotes?source=btc_bitcoin&destination=usd&amount=0.01"

Next Steps

  • Sell Checkout -- Create a sell checkout with the selected quote
  • Sell Rates -- Get rates for multiple fiat destinations