Get Order by ID
curl --request GET \
--url https://api.chessa.ai/v1/orders/{orderId}import requests
url = "https://api.chessa.ai/v1/orders/{orderId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.chessa.ai/v1/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.chessa.ai/v1/orders/{orderId}",
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://api.chessa.ai/v1/orders/{orderId}"
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://api.chessa.ai/v1/orders/{orderId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chessa.ai/v1/orders/{orderId}")
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{
"order": {
"createdAt": "2025-03-18T06:09:17.823Z",
"cryptoAddress": "5u1gLZrAiyw6yAyYx3N6D916CUqEcoTkwvF54QwDGzRn",
"cryptoAddressChain": "Solana",
"cryptoAddressId": "74b62929-47f4-43f9-a4dc-a987deaff799",
"cryptoAddressTag": "",
"cryptoDeposit": {
"amount": "0.95000000",
"asset": "USDC",
"chain": "Solana",
"createdAt": "2025-03-18T06:10:12.323Z",
"explorerUrl": "https://solscan.io/tx/29ukvrz17GupWTTCAR4F661KuouEJ1hes7syG6hZiykdon4DCEj2mEDAFpMg4tRh39SXSyujWMsiv4miKBzmPTJu",
"hash": "29ukvrz17GupWTTCAR4F661KuouEJ1hes7syG6hZiykdon4DCEj2mEDAFpMg4tRh39SXSyujWMsiv4miKBzmPTJu",
"id": "8e61243e-aaf7-49e4-a816-2660251acd15",
"orderId": "9ec76718-e141-442f-9ec0-2d6f42af91a4",
"status": "completed",
"tag": "",
"updatedAt": "2025-03-18T06:10:12.560Z"
},
"cryptoDepositId": "8e61243e-aaf7-49e4-a816-2660251acd15",
"cryptoPayout": null,
"destinationAmount": "1500.00000000",
"destinationAsset": "NGN",
"destinationCountry": "NG",
"expiresAt": "2025-03-18T08:09:17.822Z",
"feeAmount": "0.00000000",
"feeCurrency": "USDC",
"feeUsd": "0.00000000",
"id": "9ec76718-e141-442f-9ec0-2d6f42af91a4",
"note": null,
"originAmount": "0.95000000",
"originAsset": "USDC",
"partnerId": "4646e61e-33cf-452b-8bba-c138b78a57f0",
"recipient": {
"accountName": "Afolabi Peter",
"accountNumber": "9092813931",
"additional": null,
"city": "",
"code": "ng_9psb",
"country": "NG",
"createdAt": "2025-01-24T03:23:17.897Z",
"cryptoAddress": null,
"cryptoTag": null,
"currency": "NGN",
"email": null,
"id": "46f08b20-5e47-4898-b9e4-71df9f1b3234",
"institutionName": "9 Payment Service Bank",
"isActive": true,
"phoneNumber": null,
"postalCode": "",
"region": null,
"routingNumber": null,
"street": "",
"type": "bank",
"updatedAt": "2025-03-18T06:10:20.220Z",
"userId": "02e31a45-9474-4858-a833-06e89e494003"
},
"recipientId": "46f08b20-5e47-4898-b9e4-71df9f1b3234",
"refund": null,
"refundAddress": null,
"senderConfirmedAt": null,
"shortId": "CBWR3AFR",
"status": "completed",
"updatedAt": "2025-03-18T06:10:20.146Z",
"userId": "02e31a45-9474-4858-a833-06e89e494003"
}
}{
"error": "forbidden",
"message": "You do not have permission to access this order",
"statusCode": 403
}{
"error": "not_found",
"message": "Order not found",
"statusCode": 404
}Orders
Get Order by ID
Get a specific order by its ID.
GET
/
v1
/
orders
/
{orderId}
Get Order by ID
curl --request GET \
--url https://api.chessa.ai/v1/orders/{orderId}import requests
url = "https://api.chessa.ai/v1/orders/{orderId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.chessa.ai/v1/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.chessa.ai/v1/orders/{orderId}",
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://api.chessa.ai/v1/orders/{orderId}"
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://api.chessa.ai/v1/orders/{orderId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chessa.ai/v1/orders/{orderId}")
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{
"order": {
"createdAt": "2025-03-18T06:09:17.823Z",
"cryptoAddress": "5u1gLZrAiyw6yAyYx3N6D916CUqEcoTkwvF54QwDGzRn",
"cryptoAddressChain": "Solana",
"cryptoAddressId": "74b62929-47f4-43f9-a4dc-a987deaff799",
"cryptoAddressTag": "",
"cryptoDeposit": {
"amount": "0.95000000",
"asset": "USDC",
"chain": "Solana",
"createdAt": "2025-03-18T06:10:12.323Z",
"explorerUrl": "https://solscan.io/tx/29ukvrz17GupWTTCAR4F661KuouEJ1hes7syG6hZiykdon4DCEj2mEDAFpMg4tRh39SXSyujWMsiv4miKBzmPTJu",
"hash": "29ukvrz17GupWTTCAR4F661KuouEJ1hes7syG6hZiykdon4DCEj2mEDAFpMg4tRh39SXSyujWMsiv4miKBzmPTJu",
"id": "8e61243e-aaf7-49e4-a816-2660251acd15",
"orderId": "9ec76718-e141-442f-9ec0-2d6f42af91a4",
"status": "completed",
"tag": "",
"updatedAt": "2025-03-18T06:10:12.560Z"
},
"cryptoDepositId": "8e61243e-aaf7-49e4-a816-2660251acd15",
"cryptoPayout": null,
"destinationAmount": "1500.00000000",
"destinationAsset": "NGN",
"destinationCountry": "NG",
"expiresAt": "2025-03-18T08:09:17.822Z",
"feeAmount": "0.00000000",
"feeCurrency": "USDC",
"feeUsd": "0.00000000",
"id": "9ec76718-e141-442f-9ec0-2d6f42af91a4",
"note": null,
"originAmount": "0.95000000",
"originAsset": "USDC",
"partnerId": "4646e61e-33cf-452b-8bba-c138b78a57f0",
"recipient": {
"accountName": "Afolabi Peter",
"accountNumber": "9092813931",
"additional": null,
"city": "",
"code": "ng_9psb",
"country": "NG",
"createdAt": "2025-01-24T03:23:17.897Z",
"cryptoAddress": null,
"cryptoTag": null,
"currency": "NGN",
"email": null,
"id": "46f08b20-5e47-4898-b9e4-71df9f1b3234",
"institutionName": "9 Payment Service Bank",
"isActive": true,
"phoneNumber": null,
"postalCode": "",
"region": null,
"routingNumber": null,
"street": "",
"type": "bank",
"updatedAt": "2025-03-18T06:10:20.220Z",
"userId": "02e31a45-9474-4858-a833-06e89e494003"
},
"recipientId": "46f08b20-5e47-4898-b9e4-71df9f1b3234",
"refund": null,
"refundAddress": null,
"senderConfirmedAt": null,
"shortId": "CBWR3AFR",
"status": "completed",
"updatedAt": "2025-03-18T06:10:20.146Z",
"userId": "02e31a45-9474-4858-a833-06e89e494003"
}
}{
"error": "forbidden",
"message": "You do not have permission to access this order",
"statusCode": 403
}{
"error": "not_found",
"message": "Order not found",
"statusCode": 404
}Was this page helpful?