curl --request POST \
--url https://api.saber.money/api/v2/wallet/transaction/pool/sell \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--header 'X-Request-Id: <x-request-id>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--header 'X-User-Id: <x-user-id>' \
--data '
{
"source_id": "4fa8f319-ec13-4841-b808-4d4c16cb54c5",
"fiat_symbol": "INR",
"crypto_symbol": "USDT",
"crypto_amount": 25,
"payment_method": "bank_transfer",
"uuid": "07825d5d-1879-4cc7-a87f-f5ed45ee391b"
}
'import requests
url = "https://api.saber.money/api/v2/wallet/transaction/pool/sell"
payload = {
"source_id": "4fa8f319-ec13-4841-b808-4d4c16cb54c5",
"fiat_symbol": "INR",
"crypto_symbol": "USDT",
"crypto_amount": 25,
"payment_method": "bank_transfer",
"uuid": "07825d5d-1879-4cc7-a87f-f5ed45ee391b"
}
headers = {
"X-Api-Key": "<x-api-key>",
"X-Signature": "<x-signature>",
"X-Timestamp": "<x-timestamp>",
"X-Request-Id": "<x-request-id>",
"X-User-Id": "<x-user-id>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Api-Key': '<x-api-key>',
'X-Signature': '<x-signature>',
'X-Timestamp': '<x-timestamp>',
'X-Request-Id': '<x-request-id>',
'X-User-Id': '<x-user-id>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
source_id: '4fa8f319-ec13-4841-b808-4d4c16cb54c5',
fiat_symbol: 'INR',
crypto_symbol: 'USDT',
crypto_amount: 25,
payment_method: 'bank_transfer',
uuid: '07825d5d-1879-4cc7-a87f-f5ed45ee391b'
})
};
fetch('https://api.saber.money/api/v2/wallet/transaction/pool/sell', 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.saber.money/api/v2/wallet/transaction/pool/sell",
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([
'source_id' => '4fa8f319-ec13-4841-b808-4d4c16cb54c5',
'fiat_symbol' => 'INR',
'crypto_symbol' => 'USDT',
'crypto_amount' => 25,
'payment_method' => 'bank_transfer',
'uuid' => '07825d5d-1879-4cc7-a87f-f5ed45ee391b'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <x-api-key>",
"X-Request-Id: <x-request-id>",
"X-Signature: <x-signature>",
"X-Timestamp: <x-timestamp>",
"X-User-Id: <x-user-id>"
],
]);
$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.saber.money/api/v2/wallet/transaction/pool/sell"
payload := strings.NewReader("{\n \"source_id\": \"4fa8f319-ec13-4841-b808-4d4c16cb54c5\",\n \"fiat_symbol\": \"INR\",\n \"crypto_symbol\": \"USDT\",\n \"crypto_amount\": 25,\n \"payment_method\": \"bank_transfer\",\n \"uuid\": \"07825d5d-1879-4cc7-a87f-f5ed45ee391b\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<x-api-key>")
req.Header.Add("X-Signature", "<x-signature>")
req.Header.Add("X-Timestamp", "<x-timestamp>")
req.Header.Add("X-Request-Id", "<x-request-id>")
req.Header.Add("X-User-Id", "<x-user-id>")
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.saber.money/api/v2/wallet/transaction/pool/sell")
.header("X-Api-Key", "<x-api-key>")
.header("X-Signature", "<x-signature>")
.header("X-Timestamp", "<x-timestamp>")
.header("X-Request-Id", "<x-request-id>")
.header("X-User-Id", "<x-user-id>")
.header("Content-Type", "application/json")
.body("{\n \"source_id\": \"4fa8f319-ec13-4841-b808-4d4c16cb54c5\",\n \"fiat_symbol\": \"INR\",\n \"crypto_symbol\": \"USDT\",\n \"crypto_amount\": 25,\n \"payment_method\": \"bank_transfer\",\n \"uuid\": \"07825d5d-1879-4cc7-a87f-f5ed45ee391b\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.saber.money/api/v2/wallet/transaction/pool/sell")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<x-api-key>'
request["X-Signature"] = '<x-signature>'
request["X-Timestamp"] = '<x-timestamp>'
request["X-Request-Id"] = '<x-request-id>'
request["X-User-Id"] = '<x-user-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source_id\": \"4fa8f319-ec13-4841-b808-4d4c16cb54c5\",\n \"fiat_symbol\": \"INR\",\n \"crypto_symbol\": \"USDT\",\n \"crypto_amount\": 25,\n \"payment_method\": \"bank_transfer\",\n \"uuid\": \"07825d5d-1879-4cc7-a87f-f5ed45ee391b\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "07825d5d-1879-4cc7-a87f-f5ed45ee391b",
"transaction_type": "POOL_SELL",
"status": "PROCESSING",
"fiat_amount": 2160.5,
"crypto_amount": 25,
"fiat_symbol": "INR",
"crypto_symbol": "USDT",
"exchange_rate": 86.42,
"failure_code": "",
"failure_desc": "",
"created_at": 1774343695000,
"user_id": "65d246fc-6a5b-43d7-89bf-944e95ff2279"
}
}{
"success": false,
"errors": [
{
"code": 400001,
"text": "missing or invalid parameters"
}
]
}{
"success": false,
"errors": [
{
"code": 400001,
"text": "missing or invalid parameters"
}
]
}{
"success": false,
"errors": [
{
"code": 400001,
"text": "missing or invalid parameters"
}
]
}{
"success": false,
"errors": [
{
"code": 400001,
"text": "missing or invalid parameters"
}
]
}Create Pool Sell Transaction
Create a pool sell transaction.
Response field values
| Field | Possible Values |
|---|---|
transaction_type | POOL_SELL |
status | CREATED, PROCESSING, COMPLETED, FAILED, CANCELLED, APPROVAL_REQUIRED, SOURCE_INVALID, VERIFICATION_PENDING, REFUND_INITIATED, REFUND_COMPLETED. Typically PROCESSING immediately after creation. |
curl --request POST \
--url https://api.saber.money/api/v2/wallet/transaction/pool/sell \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--header 'X-Request-Id: <x-request-id>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--header 'X-User-Id: <x-user-id>' \
--data '
{
"source_id": "4fa8f319-ec13-4841-b808-4d4c16cb54c5",
"fiat_symbol": "INR",
"crypto_symbol": "USDT",
"crypto_amount": 25,
"payment_method": "bank_transfer",
"uuid": "07825d5d-1879-4cc7-a87f-f5ed45ee391b"
}
'import requests
url = "https://api.saber.money/api/v2/wallet/transaction/pool/sell"
payload = {
"source_id": "4fa8f319-ec13-4841-b808-4d4c16cb54c5",
"fiat_symbol": "INR",
"crypto_symbol": "USDT",
"crypto_amount": 25,
"payment_method": "bank_transfer",
"uuid": "07825d5d-1879-4cc7-a87f-f5ed45ee391b"
}
headers = {
"X-Api-Key": "<x-api-key>",
"X-Signature": "<x-signature>",
"X-Timestamp": "<x-timestamp>",
"X-Request-Id": "<x-request-id>",
"X-User-Id": "<x-user-id>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Api-Key': '<x-api-key>',
'X-Signature': '<x-signature>',
'X-Timestamp': '<x-timestamp>',
'X-Request-Id': '<x-request-id>',
'X-User-Id': '<x-user-id>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
source_id: '4fa8f319-ec13-4841-b808-4d4c16cb54c5',
fiat_symbol: 'INR',
crypto_symbol: 'USDT',
crypto_amount: 25,
payment_method: 'bank_transfer',
uuid: '07825d5d-1879-4cc7-a87f-f5ed45ee391b'
})
};
fetch('https://api.saber.money/api/v2/wallet/transaction/pool/sell', 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.saber.money/api/v2/wallet/transaction/pool/sell",
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([
'source_id' => '4fa8f319-ec13-4841-b808-4d4c16cb54c5',
'fiat_symbol' => 'INR',
'crypto_symbol' => 'USDT',
'crypto_amount' => 25,
'payment_method' => 'bank_transfer',
'uuid' => '07825d5d-1879-4cc7-a87f-f5ed45ee391b'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <x-api-key>",
"X-Request-Id: <x-request-id>",
"X-Signature: <x-signature>",
"X-Timestamp: <x-timestamp>",
"X-User-Id: <x-user-id>"
],
]);
$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.saber.money/api/v2/wallet/transaction/pool/sell"
payload := strings.NewReader("{\n \"source_id\": \"4fa8f319-ec13-4841-b808-4d4c16cb54c5\",\n \"fiat_symbol\": \"INR\",\n \"crypto_symbol\": \"USDT\",\n \"crypto_amount\": 25,\n \"payment_method\": \"bank_transfer\",\n \"uuid\": \"07825d5d-1879-4cc7-a87f-f5ed45ee391b\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<x-api-key>")
req.Header.Add("X-Signature", "<x-signature>")
req.Header.Add("X-Timestamp", "<x-timestamp>")
req.Header.Add("X-Request-Id", "<x-request-id>")
req.Header.Add("X-User-Id", "<x-user-id>")
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.saber.money/api/v2/wallet/transaction/pool/sell")
.header("X-Api-Key", "<x-api-key>")
.header("X-Signature", "<x-signature>")
.header("X-Timestamp", "<x-timestamp>")
.header("X-Request-Id", "<x-request-id>")
.header("X-User-Id", "<x-user-id>")
.header("Content-Type", "application/json")
.body("{\n \"source_id\": \"4fa8f319-ec13-4841-b808-4d4c16cb54c5\",\n \"fiat_symbol\": \"INR\",\n \"crypto_symbol\": \"USDT\",\n \"crypto_amount\": 25,\n \"payment_method\": \"bank_transfer\",\n \"uuid\": \"07825d5d-1879-4cc7-a87f-f5ed45ee391b\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.saber.money/api/v2/wallet/transaction/pool/sell")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<x-api-key>'
request["X-Signature"] = '<x-signature>'
request["X-Timestamp"] = '<x-timestamp>'
request["X-Request-Id"] = '<x-request-id>'
request["X-User-Id"] = '<x-user-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source_id\": \"4fa8f319-ec13-4841-b808-4d4c16cb54c5\",\n \"fiat_symbol\": \"INR\",\n \"crypto_symbol\": \"USDT\",\n \"crypto_amount\": 25,\n \"payment_method\": \"bank_transfer\",\n \"uuid\": \"07825d5d-1879-4cc7-a87f-f5ed45ee391b\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "07825d5d-1879-4cc7-a87f-f5ed45ee391b",
"transaction_type": "POOL_SELL",
"status": "PROCESSING",
"fiat_amount": 2160.5,
"crypto_amount": 25,
"fiat_symbol": "INR",
"crypto_symbol": "USDT",
"exchange_rate": 86.42,
"failure_code": "",
"failure_desc": "",
"created_at": 1774343695000,
"user_id": "65d246fc-6a5b-43d7-89bf-944e95ff2279"
}
}{
"success": false,
"errors": [
{
"code": 400001,
"text": "missing or invalid parameters"
}
]
}{
"success": false,
"errors": [
{
"code": 400001,
"text": "missing or invalid parameters"
}
]
}{
"success": false,
"errors": [
{
"code": 400001,
"text": "missing or invalid parameters"
}
]
}{
"success": false,
"errors": [
{
"code": 400001,
"text": "missing or invalid parameters"
}
]
}Headers
Your API key (configured in credentials)
HMAC-SHA256 signature (auto-generated) To test manually: HMAC-SHA256 of apiKey + timestamp (or apiKey + timestamp + userId when X-User-Id is required), keyed with your API secret. The HMAC Generator flow computes this for you.
Unix timestamp in seconds (auto-generated) Unix seconds, e.g. Math.floor(Date.now() / 1000). Must match the timestamp used in the X-Signature computation.
Unique request identifier (auto-generated) Any unique string per request, e.g. a UUID.
User UUID (set above)
Body
destination bank acount uuid.
Crypto symbol. Required when quote_id is absent.
Fiat symbol. Required when quote_id is absent.
Crypto amount. Must be positive when quote_id is absent.
Payment method. Required when quote_id is absent.
Quote UUID. When present, symbol and amount fields can be omitted.
Optional client reference UUID.
Optional source type.
Optional note.
Whether the transaction is a first-party transfer.
Related topics
Get Pool Sell Transaction DetailsCreate Sell TransactionCreate Pool Buy TransactionGet List of Pool Sell TransactionsInitiating TransactionWas this page helpful?