curl --request GET \
--url https://api.jenzy.com/v2/orders/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.jenzy.com/v2/orders/{id}"
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/{id}', 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/{id}",
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/{id}"
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/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jenzy.com/v2/orders/{id}")
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{
"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"
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}Get an order
One order by id — the polling read for an order you created.
curl --request GET \
--url https://api.jenzy.com/v2/orders/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.jenzy.com/v2/orders/{id}"
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/{id}', 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/{id}",
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/{id}"
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/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jenzy.com/v2/orders/{id}")
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{
"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"
}{
"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_…
Path Parameters
The order id (UUID).
Response
The order.
The order id — your handle for polling and support.
"inv-1042"
An asset code as GET /v2/assets lists it — uppercase, never compound (KES, USDT; never USDT-TRON). Network and rail live on the payment object.
1"USDT"
What you pay, in from_asset. On a to-bank order this is held from your balance at creation.
"1000"
An asset code as GET /v2/assets lists it — uppercase, never compound (KES, USDT; never USDT-TRON). Network and rail live on the payment object.
1"BIF"
What the beneficiary receives (to-bank order) or you are credited (from-bank order), in to_asset.
"2850500"
The quote’s rate: corridor currency per one stablecoin.
"2850.5"
To-bank order: accepted (your stablecoin is held) → processing (the desk is paying the beneficiary) → completed | failed | cancelled. From-bank order: awaiting_instructions → awaiting_funds (see funding; wire before expires_at) → proof_submitted → funds_confirmed → completed | expired | failed | cancelled. There is no cancel endpoint; ask Jenzy operations.
accepted, processing, awaiting_instructions, awaiting_funds, proof_submitted, funds_confirmed, expired, completed, failed, cancelled "accepted"
Set only on failed: one of the published codes with its fixed message.
Show child attributes
Show child attributes
Your newest funding proof on a from-bank order, if any.
Show child attributes
Show child attributes
Present on a to-bank order that failed after the coins had left. pending — your stablecoin is on its way back; returned — it has been credited to your balance as a collection.
Show child attributes
Show child attributes
To-bank orders only, exactly as you sent it.
Show child attributes
Show child attributes
From-bank orders only, present from awaiting_funds: where to wire your from_amount. Immutable once set.
Show child attributes
Show child attributes
From-bank orders only: the funding deadline. Past it with no proof the order is expired.