Get a quote
curl --request POST \
--url https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote \
--header 'Content-Type: application/json' \
--header 'X-RAMPNOW-API-KEY: <api-key>' \
--data '
{
"dstChain": "<string>",
"dstCurrency": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>",
"dstAmount": "<string>",
"partnerFixedFee": 123,
"partnerPctFee": 123,
"paymentMode": "<string>",
"srcAmount": "<string>"
}
'import requests
url = "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote"
payload = {
"dstChain": "<string>",
"dstCurrency": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>",
"dstAmount": "<string>",
"partnerFixedFee": 123,
"partnerPctFee": 123,
"paymentMode": "<string>",
"srcAmount": "<string>"
}
headers = {
"X-RAMPNOW-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-RAMPNOW-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dstChain: '<string>',
dstCurrency: '<string>',
srcChain: '<string>',
srcCurrency: '<string>',
dstAmount: '<string>',
partnerFixedFee: 123,
partnerPctFee: 123,
paymentMode: '<string>',
srcAmount: '<string>'
})
};
fetch('https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'dstChain' => '<string>',
'dstCurrency' => '<string>',
'srcChain' => '<string>',
'srcCurrency' => '<string>',
'dstAmount' => '<string>',
'partnerFixedFee' => 123,
'partnerPctFee' => 123,
'paymentMode' => '<string>',
'srcAmount' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-RAMPNOW-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote"
payload := strings.NewReader("{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-RAMPNOW-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote")
.header("X-RAMPNOW-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-RAMPNOW-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"data": {
"dstAmount": "<string>",
"dstChain": "<string>",
"dstCurrency": "<string>",
"exchangeRate": "<string>",
"feeDetails": [
{
"currency": "<string>",
"fee": "<string>",
"isInclusive": true,
"type": "<string>",
"discount": {
"type": "<string>",
"value": "<string>"
},
"discountValue": "<string>",
"slippage": 123
}
],
"message": "<string>",
"orderType": "unknown",
"paymentMode": "<string>",
"srcAmount": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>"
},
"message": "<string>",
"traceId": "<string>",
"displayError": "<string>"
}Onramp & Offramp Intent
Get a quote
POST
/
api
/
partner
/
v1
/
ext
/
ramp_order
/
quote
Get a quote
curl --request POST \
--url https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote \
--header 'Content-Type: application/json' \
--header 'X-RAMPNOW-API-KEY: <api-key>' \
--data '
{
"dstChain": "<string>",
"dstCurrency": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>",
"dstAmount": "<string>",
"partnerFixedFee": 123,
"partnerPctFee": 123,
"paymentMode": "<string>",
"srcAmount": "<string>"
}
'import requests
url = "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote"
payload = {
"dstChain": "<string>",
"dstCurrency": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>",
"dstAmount": "<string>",
"partnerFixedFee": 123,
"partnerPctFee": 123,
"paymentMode": "<string>",
"srcAmount": "<string>"
}
headers = {
"X-RAMPNOW-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-RAMPNOW-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dstChain: '<string>',
dstCurrency: '<string>',
srcChain: '<string>',
srcCurrency: '<string>',
dstAmount: '<string>',
partnerFixedFee: 123,
partnerPctFee: 123,
paymentMode: '<string>',
srcAmount: '<string>'
})
};
fetch('https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'dstChain' => '<string>',
'dstCurrency' => '<string>',
'srcChain' => '<string>',
'srcCurrency' => '<string>',
'dstAmount' => '<string>',
'partnerFixedFee' => 123,
'partnerPctFee' => 123,
'paymentMode' => '<string>',
'srcAmount' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-RAMPNOW-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote"
payload := strings.NewReader("{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-RAMPNOW-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote")
.header("X-RAMPNOW-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-RAMPNOW-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"data": {
"dstAmount": "<string>",
"dstChain": "<string>",
"dstCurrency": "<string>",
"exchangeRate": "<string>",
"feeDetails": [
{
"currency": "<string>",
"fee": "<string>",
"isInclusive": true,
"type": "<string>",
"discount": {
"type": "<string>",
"value": "<string>"
},
"discountValue": "<string>",
"slippage": 123
}
],
"message": "<string>",
"orderType": "unknown",
"paymentMode": "<string>",
"srcAmount": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>"
},
"message": "<string>",
"traceId": "<string>",
"displayError": "<string>"
}Authorizations
Partner API key sent in the X-RAMPNOW-API-KEY header. Every request must ALSO send X-RAMPNOW-TIMESTAMP (unix seconds) and X-RAMPNOW-SIGN (hex HMAC-SHA256 of timestamp + METHOD + requestURI + rawBody, keyed with your API secret). See the Authentication guide.
Body
application/json
GetRampOrderQuoteRequest asks for a non-binding price quote for a ramp order. Supply exactly one
of srcAmount / dstAmount — the other side is computed.
Order direction (buy, sell, …)
Available options:
unknown, buy, sell, swap, payment, refill, payout, cross_border, payroll, sendout, escrow Destination-side amount; set this OR srcAmount, not both
Overrides the account-side partner fixed fee for this quote
Overrides the account-side partner fee percentage for this quote
Source-side amount; set this OR dstAmount, not both
Response
200 - application/json
OK
Was this page helpful?