curl --request GET \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/optionsimport requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options', 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://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"provider": "swapped",
"kind": "fiat",
"country": "US",
"methods": [
{
"method": "<string>",
"label": "<string>",
"iconUrl": "<string>",
"iconUrlLight": "<string>",
"minAmount": 1,
"maxAmount": 1,
"currencies": [
"EUR",
"USD",
"GBP"
],
"badge": "Popular"
}
],
"otherMethods": [
{
"method": "<string>",
"label": "<string>",
"iconUrl": "<string>",
"iconUrlLight": "<string>",
"minAmount": 1,
"maxAmount": 1,
"currencies": [
"EUR",
"USD",
"GBP"
],
"badge": "Popular"
}
],
"recommendedMethod": "<string>"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}List onramp options
What a checkout of this kind can offer: fiat payment methods for the caller’s country, or exchange connections.
curl --request GET \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/optionsimport requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options', 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://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"provider": "swapped",
"kind": "fiat",
"country": "US",
"methods": [
{
"method": "<string>",
"label": "<string>",
"iconUrl": "<string>",
"iconUrlLight": "<string>",
"minAmount": 1,
"maxAmount": 1,
"currencies": [
"EUR",
"USD",
"GBP"
],
"badge": "Popular"
}
],
"otherMethods": [
{
"method": "<string>",
"label": "<string>",
"iconUrl": "<string>",
"iconUrlLight": "<string>",
"minAmount": 1,
"maxAmount": 1,
"currencies": [
"EUR",
"USD",
"GBP"
],
"badge": "Popular"
}
],
"recommendedMethod": "<string>"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED"
}Headers
Integrator API key: the project’s orders
Trusted edge-resolved ISO country. When present it overrides body.baseCountry and x-client-ip, and enables country-specific payment-method validation.
^[A-Z]{2}$"PH"
The end user's IP address as observed by the edge, for edges that can name the IP but cannot resolve a country themselves (no local GeoIP database). Used only when x-user-country is absent, and ignored unless it is a publicly-routable address. Prefer x-user-country when your edge already has a country — for example Cloudflare's cf-ipcountry — since it needs no lookup here.
"203.0.113.7"
Customer bearer from POST /compliance/sessions: that customer’s orders, and every order on its bound account
"Bearer eyJhbGciOi..."
Query Parameters
swapped, noah swapped only, required there
fiat, exchange noah only. One option for this currency; both without
EUR, USD swapped exchange only. Comma-separated allowlist, served in catalogue order; an unknown slug is a 400
1024swapped exchange only, ignored with connections
exchange, wallet, all Response
The options
- Option 1
- Option 2
- Option 3
swapped fiat Null when the country or catalogue is unknown; fall back to your own defaults
^[A-Z]{2}$"US"
Curated: the deposit modal’s rows (regional Popular pick, card, bank transfer, Apple Pay)
Show child attributes
Show child attributes
Every other method Swapped offers in the country, in its order; pass any as method on POST /onramp/orders
Show child attributes
Show child attributes
Was this page helpful?