List orders
curl --request GET \
--url https://api.jenzy.com/v2/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.jenzy.com/v2/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.jenzy.com/v2/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.jenzy.com/v2/orders",
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.jenzy.com/v2/orders"
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.jenzy.com/v2/orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jenzy.com/v2/orders")
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{
"orders": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_ref": "inv-1042",
"from_asset": "USDT",
"from_amount": "1000",
"to_asset": "BIF",
"to_amount": "2850500",
"rate": "2850.5",
"status": "accepted",
"failure": {
"code": "unable_to_fill",
"message": "<string>"
},
"proofs": {
"funding": {
"uploaded_at": "2023-11-07T05:31:56Z",
"rejected_reason": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"refund": {
"status": "pending"
},
"beneficiary": {
"name": "<string>",
"bank_name": "<string>",
"account_number": "<string>",
"branch": "<string>"
},
"funding": {
"bank_name": "<string>",
"account_name": "<string>",
"account_number": "<string>",
"reference": "<string>",
"amount": "<string>",
"asset": "<string>",
"deadline": "2023-11-07T05:31:56Z"
},
"expires_at": "2023-11-07T05:31:56Z"
}
],
"has_more": true,
"next_before_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}Orders
List orders
Your orders, newest first, optionally filtered by asset (either side) and status. Pass next_before_id back as before_id for the next page; null means done.
GET
/
orders
List orders
curl --request GET \
--url https://api.jenzy.com/v2/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.jenzy.com/v2/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.jenzy.com/v2/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.jenzy.com/v2/orders",
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.jenzy.com/v2/orders"
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.jenzy.com/v2/orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jenzy.com/v2/orders")
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{
"orders": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_ref": "inv-1042",
"from_asset": "USDT",
"from_amount": "1000",
"to_asset": "BIF",
"to_amount": "2850500",
"rate": "2850.5",
"status": "accepted",
"failure": {
"code": "unable_to_fill",
"message": "<string>"
},
"proofs": {
"funding": {
"uploaded_at": "2023-11-07T05:31:56Z",
"rejected_reason": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"refund": {
"status": "pending"
},
"beneficiary": {
"name": "<string>",
"bank_name": "<string>",
"account_number": "<string>",
"branch": "<string>"
},
"funding": {
"bank_name": "<string>",
"account_name": "<string>",
"account_number": "<string>",
"reference": "<string>",
"amount": "<string>",
"asset": "<string>",
"deadline": "2023-11-07T05:31:56Z"
},
"expires_at": "2023-11-07T05:31:56Z"
}
],
"has_more": true,
"next_before_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}Authorizations
Your Jenzy API key: Authorization: Bearer jz_live_…
Query Parameters
Page size, 1-200 (default 50).
Required range:
1 <= x <= 200Keyset cursor: the next_before_id from the previous page.
Only orders with this asset on either side.
Minimum string length:
1Example:
"KES"
Only orders in this status.
Available options:
accepted, processing, awaiting_instructions, awaiting_funds, proof_submitted, funds_confirmed, expired, completed, failed, cancelled