Get order
curl --request GET \
--url https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}', 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.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"order": {
"id": "623000c8-9bdf-4a2b-aa3d-6a6b44a7f6a0",
"type": "on-ramp",
"pricing": "locked",
"origin": {
"asset": "USD",
"amount": "100.00",
"rate": "2.07021435361804542440",
"node": {
"type": "external-account",
"id": "7dc5c846-5ac2-4853-b67f-005cb83d4017",
"ownerId": "cd21b26d-35d2-408a-9201-b8fdbef7a604",
"via": "card",
"network": "visa"
}
},
"destination": {
"asset": "XRP",
"amount": "46.125658",
"rate": "0.48304176727029881912",
"node": {
"type": "crypto-address",
"network": "xrp-ledger",
"address": "rfBtmHiLwwWH5maH2PT78GxubrSydRF9aY",
"reference": "67809592",
"execution": {
"mode": "onchain",
"transactionHash": "E3FE6EA3D48F0C2B639448020EA4F03D4F4F8FFDB243A852A44F5D14B4B4D6E2"
}
}
},
"denomination": {
"asset": "USD",
"amount": "100.00",
"rate": "1.00000000000000000000",
"target": "origin"
},
"fees": [
{
"type": "deposit",
"code": "on-ramp-deposit",
"asset": "USD",
"amount": "1.00",
"percentage": "1",
"beneficiary": "uphold"
},
{
"type": "network",
"code": "crypto-network",
"asset": "USD",
"amount": "3.51"
}
],
"status": "completed",
"timeline": [
{
"event": "deposit-processing",
"timestamp": "2024-07-24T15:22:39.000Z"
},
{
"event": "deposit-completed",
"timestamp": "2024-07-24T15:22:44.000Z"
},
{
"event": "withdrawal-processing",
"timestamp": "2024-07-24T15:22:45.000Z"
},
{
"event": "withdrawal-sent",
"timestamp": "2024-07-24T15:22:50.000Z"
},
{
"event": "withdrawal-completed",
"timestamp": "2024-07-24T15:33:08.000Z"
}
],
"quotedAt": "2024-07-24T15:02:39.000Z",
"createdAt": "2024-07-24T15:22:39.000Z",
"updatedAt": "2024-07-24T15:33:08.000Z",
"completedAt": "2024-07-24T15:33:08.000Z"
}
}Orders
Get order
Retrieve an existing order by id.
GET
/
on-off-ramp
/
orders
/
{orderId}
Get order
curl --request GET \
--url https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}', 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.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/on-off-ramp/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"order": {
"id": "623000c8-9bdf-4a2b-aa3d-6a6b44a7f6a0",
"type": "on-ramp",
"pricing": "locked",
"origin": {
"asset": "USD",
"amount": "100.00",
"rate": "2.07021435361804542440",
"node": {
"type": "external-account",
"id": "7dc5c846-5ac2-4853-b67f-005cb83d4017",
"ownerId": "cd21b26d-35d2-408a-9201-b8fdbef7a604",
"via": "card",
"network": "visa"
}
},
"destination": {
"asset": "XRP",
"amount": "46.125658",
"rate": "0.48304176727029881912",
"node": {
"type": "crypto-address",
"network": "xrp-ledger",
"address": "rfBtmHiLwwWH5maH2PT78GxubrSydRF9aY",
"reference": "67809592",
"execution": {
"mode": "onchain",
"transactionHash": "E3FE6EA3D48F0C2B639448020EA4F03D4F4F8FFDB243A852A44F5D14B4B4D6E2"
}
}
},
"denomination": {
"asset": "USD",
"amount": "100.00",
"rate": "1.00000000000000000000",
"target": "origin"
},
"fees": [
{
"type": "deposit",
"code": "on-ramp-deposit",
"asset": "USD",
"amount": "1.00",
"percentage": "1",
"beneficiary": "uphold"
},
{
"type": "network",
"code": "crypto-network",
"asset": "USD",
"amount": "3.51"
}
],
"status": "completed",
"timeline": [
{
"event": "deposit-processing",
"timestamp": "2024-07-24T15:22:39.000Z"
},
{
"event": "deposit-completed",
"timestamp": "2024-07-24T15:22:44.000Z"
},
{
"event": "withdrawal-processing",
"timestamp": "2024-07-24T15:22:45.000Z"
},
{
"event": "withdrawal-sent",
"timestamp": "2024-07-24T15:22:50.000Z"
},
{
"event": "withdrawal-completed",
"timestamp": "2024-07-24T15:33:08.000Z"
}
],
"quotedAt": "2024-07-24T15:02:39.000Z",
"createdAt": "2024-07-24T15:22:39.000Z",
"updatedAt": "2024-07-24T15:33:08.000Z",
"completedAt": "2024-07-24T15:33:08.000Z"
}
}Was this page helpful?