curl --request POST \
--url https://api.jenzy.com/v2/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_ref": "inv-1042"
}
'import requests
url = "https://api.jenzy.com/v2/orders"
payload = {
"quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_ref": "inv-1042"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({quote_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', client_ref: 'inv-1042'})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'quote_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'client_ref' => 'inv-1042'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.jenzy.com/v2/orders"
payload := strings.NewReader("{\n \"quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_ref\": \"inv-1042\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.jenzy.com/v2/orders")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_ref\": \"inv-1042\"\n}")
.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::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_ref\": \"inv-1042\"\n}"
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>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}Create a desk order
Consume a quote. A to-bank order needs a beneficiary and holds from_amount of your stablecoin balance at once; the response is accepted. A from-bank order takes no beneficiary and holds nothing; the response is awaiting_instructions — wait for order.awaiting_funds, then wire funding.amount with funding.reference before expires_at. Orders are filled by hand by Jenzy’s desk, so they take hours to days; there is no cancel endpoint. Requires an Idempotency-Key: a retry with the same key and body returns the original order.
curl --request POST \
--url https://api.jenzy.com/v2/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_ref": "inv-1042"
}
'import requests
url = "https://api.jenzy.com/v2/orders"
payload = {
"quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_ref": "inv-1042"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({quote_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', client_ref: 'inv-1042'})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'quote_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'client_ref' => 'inv-1042'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.jenzy.com/v2/orders"
payload := strings.NewReader("{\n \"quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_ref\": \"inv-1042\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.jenzy.com/v2/orders")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_ref\": \"inv-1042\"\n}")
.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::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"client_ref\": \"inv-1042\"\n}"
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>"
}
}{
"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_…
Headers
Required. A key you mint per order intent (a UUID works). Replays of the same key + body return the original response; the same key with a different body is a 409.
Body
A quote_id from POST /v2/orders/quotes, not yet expired or used.
Your reference for this order, at most 64 characters, unique across your orders; reuse is client_ref_used (409). Jenzy does not send it to the bank.
1 - 64"inv-1042"
Required on a to-bank order (stablecoin → corridor currency): who receives the fiat. Must be absent on a from-bank order (beneficiary_not_allowed).
Show child attributes
Show child attributes
Response
Created: accepted (to-bank order, stablecoin held) or awaiting_instructions (from-bank 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.