cURL
curl --request POST \
--url https://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>' \
--data '
{
"quotation_id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"exchange_order_id": "5059889123892",
"client_reference_id": "testUser123"
}
'import requests
url = "https://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate"
payload = {
"quotation_id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"exchange_order_id": "5059889123892",
"client_reference_id": "testUser123"
}
headers = {
"X-API-KEY": "<api-key>",
"X-TIMESTAMP": "<api-key>",
"X-SIGNATURE": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'X-TIMESTAMP': '<api-key>',
'X-SIGNATURE': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
quotation_id: '2e104290-07c8-49f1-a5ca-0d27f0078f8a',
customer_id: 'def8b740-99f9-4cba-bc9e-99de57e927b4',
exchange_order_id: '5059889123892',
client_reference_id: 'testUser123'
})
};
fetch('https://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate', 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://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate",
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([
'quotation_id' => '2e104290-07c8-49f1-a5ca-0d27f0078f8a',
'customer_id' => 'def8b740-99f9-4cba-bc9e-99de57e927b4',
'exchange_order_id' => '5059889123892',
'client_reference_id' => 'testUser123'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-SIGNATURE: <api-key>",
"X-TIMESTAMP: <api-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://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate"
payload := strings.NewReader("{\n \"quotation_id\": \"2e104290-07c8-49f1-a5ca-0d27f0078f8a\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"exchange_order_id\": \"5059889123892\",\n \"client_reference_id\": \"testUser123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-TIMESTAMP", "<api-key>")
req.Header.Add("X-SIGNATURE", "<api-key>")
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://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate")
.header("X-API-KEY", "<api-key>")
.header("X-TIMESTAMP", "<api-key>")
.header("X-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"quotation_id\": \"2e104290-07c8-49f1-a5ca-0d27f0078f8a\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"exchange_order_id\": \"5059889123892\",\n \"client_reference_id\": \"testUser123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-TIMESTAMP"] = '<api-key>'
request["X-SIGNATURE"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quotation_id\": \"2e104290-07c8-49f1-a5ca-0d27f0078f8a\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"exchange_order_id\": \"5059889123892\",\n \"client_reference_id\": \"testUser123\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"id": "5b75096f-de8d-44b4-9230-d94e6948abb6",
"quotation_id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"client_reference_id": "testUser123",
"bank_id": "e75f62f0-db9e-4904-8103-d6f14f67f5dc",
"asset": "USDT",
"fiat": "INR",
"rate": 82.5,
"sending_amount": 51,
"receiving_amount": 4144.6,
"fees": {
"client_fee_fiat": 450,
"client_fee_crypto": 5,
"dollarpe_fee": 450,
"pg_fee": 18,
"client_gst_fiat": 81,
"client_gst_crypto": 0.9,
"dollarpe_gst": 81,
"pg_gst": 81,
"tds": 889.17,
"gross_effective_exchange_rate": 88.92
},
"exchange_order_id": "5059889123892",
"created_at": "2025-03-08T07:31:24.770179Z",
"status": "PROCESSING"
}
}{
"status": false,
"message": "Bad Request",
"err_code": "REQ_FIELD_MISSING",
"errors": {
"quotation_id": [
"This field is required."
]
},
"data": null
}{
"success": false,
"message": "Internal Server Error",
"err_code": "SYS_INTERNAL_ERROR",
"errors": "Unexpected error occurred. Please try again later.",
"data": null
}Order
Create Payout
Initiates a payout order against a valid, unexpired quotation. Verify the wallet address and blockchain before submitting; deposits to wrong addresses are permanent and non-recoverable.
POST
/
payout
/
initiate
cURL
curl --request POST \
--url https://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>' \
--data '
{
"quotation_id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"exchange_order_id": "5059889123892",
"client_reference_id": "testUser123"
}
'import requests
url = "https://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate"
payload = {
"quotation_id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"exchange_order_id": "5059889123892",
"client_reference_id": "testUser123"
}
headers = {
"X-API-KEY": "<api-key>",
"X-TIMESTAMP": "<api-key>",
"X-SIGNATURE": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'X-TIMESTAMP': '<api-key>',
'X-SIGNATURE': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
quotation_id: '2e104290-07c8-49f1-a5ca-0d27f0078f8a',
customer_id: 'def8b740-99f9-4cba-bc9e-99de57e927b4',
exchange_order_id: '5059889123892',
client_reference_id: 'testUser123'
})
};
fetch('https://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate', 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://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate",
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([
'quotation_id' => '2e104290-07c8-49f1-a5ca-0d27f0078f8a',
'customer_id' => 'def8b740-99f9-4cba-bc9e-99de57e927b4',
'exchange_order_id' => '5059889123892',
'client_reference_id' => 'testUser123'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-SIGNATURE: <api-key>",
"X-TIMESTAMP: <api-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://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate"
payload := strings.NewReader("{\n \"quotation_id\": \"2e104290-07c8-49f1-a5ca-0d27f0078f8a\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"exchange_order_id\": \"5059889123892\",\n \"client_reference_id\": \"testUser123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-TIMESTAMP", "<api-key>")
req.Header.Add("X-SIGNATURE", "<api-key>")
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://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate")
.header("X-API-KEY", "<api-key>")
.header("X-TIMESTAMP", "<api-key>")
.header("X-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"quotation_id\": \"2e104290-07c8-49f1-a5ca-0d27f0078f8a\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"exchange_order_id\": \"5059889123892\",\n \"client_reference_id\": \"testUser123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.dollarpe.xyz/pos/api/v1/payout/initiate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-TIMESTAMP"] = '<api-key>'
request["X-SIGNATURE"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quotation_id\": \"2e104290-07c8-49f1-a5ca-0d27f0078f8a\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"exchange_order_id\": \"5059889123892\",\n \"client_reference_id\": \"testUser123\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"id": "5b75096f-de8d-44b4-9230-d94e6948abb6",
"quotation_id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"client_reference_id": "testUser123",
"bank_id": "e75f62f0-db9e-4904-8103-d6f14f67f5dc",
"asset": "USDT",
"fiat": "INR",
"rate": 82.5,
"sending_amount": 51,
"receiving_amount": 4144.6,
"fees": {
"client_fee_fiat": 450,
"client_fee_crypto": 5,
"dollarpe_fee": 450,
"pg_fee": 18,
"client_gst_fiat": 81,
"client_gst_crypto": 0.9,
"dollarpe_gst": 81,
"pg_gst": 81,
"tds": 889.17,
"gross_effective_exchange_rate": 88.92
},
"exchange_order_id": "5059889123892",
"created_at": "2025-03-08T07:31:24.770179Z",
"status": "PROCESSING"
}
}{
"status": false,
"message": "Bad Request",
"err_code": "REQ_FIELD_MISSING",
"errors": {
"quotation_id": [
"This field is required."
]
},
"data": null
}{
"success": false,
"message": "Internal Server Error",
"err_code": "SYS_INTERNAL_ERROR",
"errors": "Unexpected error occurred. Please try again later.",
"data": null
}Create Payout
Before initiating a payout, please review our Payout Best Practices guide to ensure successful transaction processing.
Critical Warning:
- Deposits to unsupported asset/blockchain pairs will be lost
- Deposits to incorrect addresses will be lost
- These losses are permanent and non-recoverable
Error Codes and Messages
| API Status Code | Response | Reason |
|---|---|---|
| 400 | Client Reference ID already exists | Client Reference ID already exists |
| 400 | Quotation is not found | Quotation does not exist or does not belong to this organization |
| 400 | Customer ID does not match with the quotation | Customer ID mismatch between payin order and quotation |
| 400 | Quotation has expired | Quotation has expired |
| 400 | Quotation is already linked to another payout | Quotation is already linked to another payout |
| 400 | Exchange Order ID already linked to a payout that is either processing or successful | Exchange Order ID already linked to a payout that is either processing or successful |
| 500 | Internal Server Error | Internal Server Error |
Authorizations
API Key for authentication
Current timestamp in seconds since epoch
HMAC SHA256 signature of the request encoded in Base64
Body
application/json
The unique identifier of the quotation
Example:
"2e104290-07c8-49f1-a5ca-0d27f0078f8a"
The unique identifier of the customer
Example:
"def8b740-99f9-4cba-bc9e-99de57e927b4"
Order ID on the exchange
Example:
"5059889123892"
Optional client reference ID for tracking
Example:
"testUser123"
⌘I

