Initiate stablecoin withdrawal
const url = 'https://api.openfx.com/v1/brokerage/{orgId}/withdrawal';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 10,
currency: 'USDT',
withdrawalAddressId: '392cf015-5045-4615-a226-df3543d9c15f'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.openfx.com/v1/brokerage/{orgId}/withdrawal"
payload = {
"amount": 10,
"currency": "USDT",
"withdrawalAddressId": "392cf015-5045-4615-a226-df3543d9c15f"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.post("https://api.openfx.com/v1/brokerage/{orgId}/withdrawal")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 10,\n \"currency\": \"USDT\",\n \"withdrawalAddressId\": \"392cf015-5045-4615-a226-df3543d9c15f\"\n}")
.asString();CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.openfx.com/v1/brokerage/{orgId}/withdrawal");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Bearer <token>");
headers = curl_slist_append(headers, "Content-Type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"amount\": 10,\n \"currency\": \"USDT\",\n \"withdrawalAddressId\": \"392cf015-5045-4615-a226-df3543d9c15f\"\n}");
CURLcode ret = curl_easy_perform(hnd);package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.openfx.com/v1/brokerage/{orgId}/withdrawal"
payload := strings.NewReader("{\n \"amount\": 10,\n \"currency\": \"USDT\",\n \"withdrawalAddressId\": \"392cf015-5045-4615-a226-df3543d9c15f\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}curl --request POST \
--url https://api.openfx.com/v1/brokerage/{orgId}/withdrawal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 10,
"currency": "USDT",
"withdrawalAddressId": "392cf015-5045-4615-a226-df3543d9c15f"
}
'{
"status": "success",
"data": {
"id": "392cf015-5045-4615-a226-df3543d9c15f",
"createdAt": "2025-02-07T14:04:14.268Z",
"amount": 0.5,
"currency": "USDT",
"network": "ETHEREUM",
"status": "COMPLETED",
"transactionHash": null,
"withdrawalAddressId": "2697eff1-ac30-41db-94b7-d615133a5c9e",
"orgId": "c96183a5-2830-4606-9ae2-15dfd058872b",
"actorId": "36bdb6a4-7cc6-4a08-b325-db416dbdd9f5",
"actorEmail": "[email protected]",
"comments": "Client initiated the withdrawal"
}
}
Initiate stablecoin withdrawal
Initiates a stablecoin withdrawal to an approved wallet address.
POST
/
v1
/
brokerage
/
{orgId}
/
withdrawal
Initiate stablecoin withdrawal
const url = 'https://api.openfx.com/v1/brokerage/{orgId}/withdrawal';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 10,
currency: 'USDT',
withdrawalAddressId: '392cf015-5045-4615-a226-df3543d9c15f'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.openfx.com/v1/brokerage/{orgId}/withdrawal"
payload = {
"amount": 10,
"currency": "USDT",
"withdrawalAddressId": "392cf015-5045-4615-a226-df3543d9c15f"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.post("https://api.openfx.com/v1/brokerage/{orgId}/withdrawal")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 10,\n \"currency\": \"USDT\",\n \"withdrawalAddressId\": \"392cf015-5045-4615-a226-df3543d9c15f\"\n}")
.asString();CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.openfx.com/v1/brokerage/{orgId}/withdrawal");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Bearer <token>");
headers = curl_slist_append(headers, "Content-Type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"amount\": 10,\n \"currency\": \"USDT\",\n \"withdrawalAddressId\": \"392cf015-5045-4615-a226-df3543d9c15f\"\n}");
CURLcode ret = curl_easy_perform(hnd);package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.openfx.com/v1/brokerage/{orgId}/withdrawal"
payload := strings.NewReader("{\n \"amount\": 10,\n \"currency\": \"USDT\",\n \"withdrawalAddressId\": \"392cf015-5045-4615-a226-df3543d9c15f\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}curl --request POST \
--url https://api.openfx.com/v1/brokerage/{orgId}/withdrawal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 10,
"currency": "USDT",
"withdrawalAddressId": "392cf015-5045-4615-a226-df3543d9c15f"
}
'{
"status": "success",
"data": {
"id": "392cf015-5045-4615-a226-df3543d9c15f",
"createdAt": "2025-02-07T14:04:14.268Z",
"amount": 0.5,
"currency": "USDT",
"network": "ETHEREUM",
"status": "COMPLETED",
"transactionHash": null,
"withdrawalAddressId": "2697eff1-ac30-41db-94b7-d615133a5c9e",
"orgId": "c96183a5-2830-4606-9ae2-15dfd058872b",
"actorId": "36bdb6a4-7cc6-4a08-b325-db416dbdd9f5",
"actorEmail": "[email protected]",
"comments": "Client initiated the withdrawal"
}
}
v1 sunsets December 31, 2026. Migrate to v2 — see the migration guide.
Idempotency is supported on v2 and v3 for this endpoint. v1 does not support idempotency keys — see Migration guide.
Errors
| Status | Message | Notes |
|---|---|---|
| 400 | Query validation failed | Request didn’t match schema (missing fields, bad amount format, etc.) |
| 400 | Checksum verification failed for withdrawal address | Destination wallet address fails its on-chain checksum check; re-derive from canonical form |
| 400 | Insufficient balance for this withdraw. | Available balance is less than the requested amount (verbatim from the spec, including the typo) |
| 400 | Withdrawal address is not active or verified | Destination wallet exists but isn’t activated/verified; have ops approve it before retrying |
| 401 | The authorization key provided is either invalid or expired, please try again | Mint a fresh JWT — see Authentication |
| 500 | An internal error has occurred | Server fault. Writes are non-idempotent in v1 — fetch the withdrawal by ID before retrying to avoid double-submission |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
⌘I