Get an onramp order
curl --request GET \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/orders/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/orders/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/orders/{id}', 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/orders/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-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"
"net/http"
"io"
)
func main() {
url := "https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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/orders/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "noah",
"kind": "fiat",
"status": "pending",
"terminal": true,
"stages": {
"receipt": {
"status": "not_started"
},
"conversion": {
"status": "not_started"
},
"delivery": {
"status": "not_started"
},
"return": {
"status": "none"
}
},
"rail": {
"kind": "fiat",
"method": "<string>"
},
"fiat": {
"charged": {
"total": "<string>",
"net": "<string>",
"currency": "<string>"
},
"eur": {
"total": "<string>",
"net": "<string>"
},
"usd": {
"total": "<string>",
"net": "<string>"
}
},
"crypto": {
"asset": "<string>",
"network": "<string>",
"amount": "<string>"
},
"account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"deliveryAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"deliveryChain": "<string>",
"providerStatus": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED",
"providerError": {
"provider": "<string>",
"status": 123,
"type": "<string>",
"fields": [
{
"path": "<string>",
"reason": "<string>"
}
],
"reference": "<string>"
}
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED",
"providerError": {
"provider": "<string>",
"status": 123,
"type": "<string>",
"fields": [
{
"path": "<string>",
"reason": "<string>"
}
],
"reference": "<string>"
}
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED",
"providerError": {
"provider": "<string>",
"status": 123,
"type": "<string>",
"fields": [
{
"path": "<string>",
"reason": "<string>"
}
],
"reference": "<string>"
}
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED",
"providerError": {
"provider": "<string>",
"status": 123,
"type": "<string>",
"fields": [
{
"path": "<string>",
"reason": "<string>"
}
],
"reference": "<string>"
}
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}Onramp
Get an onramp order
Accepts any id the caller holds: the order id, the provider’s order id (e.g. the orderId of the legacy onramp-order webhook), the orderId returned when the checkout was started (when retries share it, the newest order), or the externalCustomerId signed into the checkout (<account>:<reference>). 404 until the provider first reports the order. A customer bearer reads that customer’s orders and every order on its bound account.
GET
/
onramp
/
orders
/
{id}
Get an onramp order
curl --request GET \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/orders/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/orders/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/orders/{id}', 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/orders/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-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"
"net/http"
"io"
)
func main() {
url := "https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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/orders/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/onramp/orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "noah",
"kind": "fiat",
"status": "pending",
"terminal": true,
"stages": {
"receipt": {
"status": "not_started"
},
"conversion": {
"status": "not_started"
},
"delivery": {
"status": "not_started"
},
"return": {
"status": "none"
}
},
"rail": {
"kind": "fiat",
"method": "<string>"
},
"fiat": {
"charged": {
"total": "<string>",
"net": "<string>",
"currency": "<string>"
},
"eur": {
"total": "<string>",
"net": "<string>"
},
"usd": {
"total": "<string>",
"net": "<string>"
}
},
"crypto": {
"asset": "<string>",
"network": "<string>",
"amount": "<string>"
},
"account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"deliveryAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"deliveryChain": "<string>",
"providerStatus": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED",
"providerError": {
"provider": "<string>",
"status": 123,
"type": "<string>",
"fields": [
{
"path": "<string>",
"reason": "<string>"
}
],
"reference": "<string>"
}
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED",
"providerError": {
"provider": "<string>",
"status": 123,
"type": "<string>",
"fields": [
{
"path": "<string>",
"reason": "<string>"
}
],
"reference": "<string>"
}
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED",
"providerError": {
"provider": "<string>",
"status": 123,
"type": "<string>",
"fields": [
{
"path": "<string>",
"reason": "<string>"
}
],
"reference": "<string>"
}
}{
"error": "<string>",
"code": "VERIFICATION_REQUIRED",
"providerError": {
"provider": "<string>",
"status": 123,
"type": "<string>",
"fields": [
{
"path": "<string>",
"reason": "<string>"
}
],
"reference": "<string>"
}
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}Authorizations
tenantApiKeyinternalProjectBearercomplianceSessionBearer
Headers
Path Parameters
Response
The order
Was this page helpful?