Get All Orders
curl --request GET \
--url https://api.chessa.ai/v1/ordersimport requests
url = "https://api.chessa.ai/v1/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.chessa.ai/v1/orders', 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",
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"
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")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chessa.ai/v1/orders")
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{
"orders": [
{
"completedAt": "2025-03-15T14:15:22.456Z",
"createdAt": "2025-03-15T12:30:45.123Z",
"cryptoAmount": "0.05",
"cryptoAsset": "BTC",
"exchangeRate": "25000000",
"fiatAmount": "1250000",
"fiatCurrency": "NGN",
"id": "ord_123456789abcdef",
"recipientId": "rec_abcdef123456789",
"status": "completed",
"updatedAt": "2025-03-15T14:15:22.456Z",
"userId": "usr_987654321fedcba"
},
{
"completedAt": null,
"createdAt": "2025-03-17T09:45:33.789Z",
"cryptoAmount": "1.2",
"cryptoAsset": "ETH",
"exchangeRate": "1250000",
"fiatAmount": "1500000",
"fiatCurrency": "NGN",
"id": "ord_abcdef123456789",
"recipientId": "rec_123456789abcdef",
"status": "processing",
"updatedAt": "2025-03-17T10:22:15.321Z",
"userId": "usr_987654321fedcba"
}
],
"pagination": {
"page": 1,
"pageSize": 10,
"pages": 2,
"total": 15
}
}{
"error": "not_found",
"message": "User not found",
"statusCode": 404
}Orders
Get All Orders
Get all orders for the current user.
GET
/
v1
/
orders
Get All Orders
curl --request GET \
--url https://api.chessa.ai/v1/ordersimport requests
url = "https://api.chessa.ai/v1/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.chessa.ai/v1/orders', 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",
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"
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")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chessa.ai/v1/orders")
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{
"orders": [
{
"completedAt": "2025-03-15T14:15:22.456Z",
"createdAt": "2025-03-15T12:30:45.123Z",
"cryptoAmount": "0.05",
"cryptoAsset": "BTC",
"exchangeRate": "25000000",
"fiatAmount": "1250000",
"fiatCurrency": "NGN",
"id": "ord_123456789abcdef",
"recipientId": "rec_abcdef123456789",
"status": "completed",
"updatedAt": "2025-03-15T14:15:22.456Z",
"userId": "usr_987654321fedcba"
},
{
"completedAt": null,
"createdAt": "2025-03-17T09:45:33.789Z",
"cryptoAmount": "1.2",
"cryptoAsset": "ETH",
"exchangeRate": "1250000",
"fiatAmount": "1500000",
"fiatCurrency": "NGN",
"id": "ord_abcdef123456789",
"recipientId": "rec_123456789abcdef",
"status": "processing",
"updatedAt": "2025-03-17T10:22:15.321Z",
"userId": "usr_987654321fedcba"
}
],
"pagination": {
"page": 1,
"pageSize": 10,
"pages": 2,
"total": 15
}
}{
"error": "not_found",
"message": "User not found",
"statusCode": 404
}Response
Success Response
Show child attributes
Show child attributes
Example:
[
{
"completedAt": "2025-03-15T14:15:22.456Z",
"createdAt": "2025-03-15T12:30:45.123Z",
"cryptoAmount": "0.05",
"cryptoAsset": "BTC",
"exchangeRate": "25000000",
"fiatAmount": "1250000",
"fiatCurrency": "NGN",
"id": "ord_123456789abcdef",
"recipientId": "rec_abcdef123456789",
"status": "completed",
"updatedAt": "2025-03-15T14:15:22.456Z",
"userId": "usr_987654321fedcba"
},
{
"completedAt": null,
"createdAt": "2025-03-17T09:45:33.789Z",
"cryptoAmount": "1.2",
"cryptoAsset": "ETH",
"exchangeRate": "1250000",
"fiatAmount": "1500000",
"fiatCurrency": "NGN",
"id": "ord_abcdef123456789",
"recipientId": "rec_123456789abcdef",
"status": "processing",
"updatedAt": "2025-03-17T10:22:15.321Z",
"userId": "usr_987654321fedcba"
}
]
Show child attributes
Show child attributes
Was this page helpful?