Get order
curl --request GET \
--url https://api.enterprise.sandbox.uphold.com/trading/orders/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/trading/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/trading/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/trading/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/trading/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/trading/orders/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/trading/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": "0192f3a1-7c2e-7d4b-9a1f-3e5c8b2d4f60",
"clientOrderId": "8d5f1c0e-1b2a-4c3d-9e8f-77a0b1c2d3e4",
"side": "sell",
"type": "limit",
"origin": {
"type": "account",
"id": "651ffcd3-a706-4c91-82ce-5a5eb9c1da62"
},
"destination": {
"type": "account",
"id": "9a3d7e4b-2c1f-4e8d-b7a6-5f4e3d2c1b0a"
},
"quantity": "0.5",
"price": "61500.00",
"timeInForce": "fok",
"status": "closed",
"execution": {
"quantity": "0.5",
"notional": "30959.57",
"averagePrice": "61919.14"
},
"timeline": [
{
"event": "created",
"createdAt": "2026-10-12T10:31:04.512Z"
},
{
"event": "filled",
"createdAt": "2026-10-12T10:31:05.104Z"
}
],
"createdAt": "2026-10-12T10:31:04.512Z",
"updatedAt": "2026-10-12T10:31:05.104Z"
}
}Orders
Get order
Retrieve an order by its id.
GET
/
trading
/
orders
/
{orderId}
Get order
curl --request GET \
--url https://api.enterprise.sandbox.uphold.com/trading/orders/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/trading/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/trading/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/trading/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/trading/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/trading/orders/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/trading/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": "0192f3a1-7c2e-7d4b-9a1f-3e5c8b2d4f60",
"clientOrderId": "8d5f1c0e-1b2a-4c3d-9e8f-77a0b1c2d3e4",
"side": "sell",
"type": "limit",
"origin": {
"type": "account",
"id": "651ffcd3-a706-4c91-82ce-5a5eb9c1da62"
},
"destination": {
"type": "account",
"id": "9a3d7e4b-2c1f-4e8d-b7a6-5f4e3d2c1b0a"
},
"quantity": "0.5",
"price": "61500.00",
"timeInForce": "fok",
"status": "closed",
"execution": {
"quantity": "0.5",
"notional": "30959.57",
"averagePrice": "61919.14"
},
"timeline": [
{
"event": "created",
"createdAt": "2026-10-12T10:31:04.512Z"
},
{
"event": "filled",
"createdAt": "2026-10-12T10:31:05.104Z"
}
],
"createdAt": "2026-10-12T10:31:04.512Z",
"updatedAt": "2026-10-12T10:31:05.104Z"
}
}This endpoint is currently available in Sandbox only. It is not yet available in Production.
In Sandbox the orders you create are not stored, so only the sample orders returned by List orders can be retrieved. Any other id replies with
404.pending has filled at the venue and is waiting to be booked. Retrieve it again until it is closed.
Read more about the order lifecycle.Was this page helpful?