cURL
curl --request POST \
--url https://sandbox.dollarpe.xyz/pis/api/v1/payin/quotation \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>' \
--data '
{
"asset": "usdt",
"fiat": "inr",
"sending_amount": "51",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"bank_id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"payment_method": "IMPS",
"risk_parameters": {
"ip_address": "127.0.0.1",
"device_id": "<string>",
"suspicious_activity_report": false,
"law_enforcement_agency_report": false
}
}
'import requests
url = "https://sandbox.dollarpe.xyz/pis/api/v1/payin/quotation"
payload = {
"asset": "usdt",
"fiat": "inr",
"sending_amount": "51",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"bank_id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"payment_method": "IMPS",
"risk_parameters": {
"ip_address": "127.0.0.1",
"device_id": "<string>",
"suspicious_activity_report": False,
"law_enforcement_agency_report": False
}
}
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({
asset: 'usdt',
fiat: 'inr',
sending_amount: '51',
customer_id: 'def8b740-99f9-4cba-bc9e-99de57e927b4',
bank_id: '4e6f1b20-a73c-11ec-b909-0242ac120002',
payment_method: 'IMPS',
risk_parameters: {
ip_address: '127.0.0.1',
device_id: '<string>',
suspicious_activity_report: false,
law_enforcement_agency_report: false
}
})
};
fetch('https://sandbox.dollarpe.xyz/pis/api/v1/payin/quotation', 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/pis/api/v1/payin/quotation",
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([
'asset' => 'usdt',
'fiat' => 'inr',
'sending_amount' => '51',
'customer_id' => 'def8b740-99f9-4cba-bc9e-99de57e927b4',
'bank_id' => '4e6f1b20-a73c-11ec-b909-0242ac120002',
'payment_method' => 'IMPS',
'risk_parameters' => [
'ip_address' => '127.0.0.1',
'device_id' => '<string>',
'suspicious_activity_report' => false,
'law_enforcement_agency_report' => false
]
]),
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/pis/api/v1/payin/quotation"
payload := strings.NewReader("{\n \"asset\": \"usdt\",\n \"fiat\": \"inr\",\n \"sending_amount\": \"51\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"payment_method\": \"IMPS\",\n \"risk_parameters\": {\n \"ip_address\": \"127.0.0.1\",\n \"device_id\": \"<string>\",\n \"suspicious_activity_report\": false,\n \"law_enforcement_agency_report\": false\n }\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/pis/api/v1/payin/quotation")
.header("X-API-KEY", "<api-key>")
.header("X-TIMESTAMP", "<api-key>")
.header("X-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"asset\": \"usdt\",\n \"fiat\": \"inr\",\n \"sending_amount\": \"51\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"payment_method\": \"IMPS\",\n \"risk_parameters\": {\n \"ip_address\": \"127.0.0.1\",\n \"device_id\": \"<string>\",\n \"suspicious_activity_report\": false,\n \"law_enforcement_agency_report\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.dollarpe.xyz/pis/api/v1/payin/quotation")
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 \"asset\": \"usdt\",\n \"fiat\": \"inr\",\n \"sending_amount\": \"51\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"payment_method\": \"IMPS\",\n \"risk_parameters\": {\n \"ip_address\": \"127.0.0.1\",\n \"device_id\": \"<string>\",\n \"suspicious_activity_report\": false,\n \"law_enforcement_agency_report\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"bank_id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"asset": "USDT",
"fiat": "INR",
"payment_method": "IMPS",
"sending_amount": 1000,
"rate": 91.91,
"receiving_amount": 108.8,
"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
},
"deposit_instructions": {
"account_number": "1234567890",
"ifsc": "SBIN0000001",
"account_name": "Sandbox Technologies Pvt Ltd"
},
"created_at": "2025-03-08T07:31:11.163005Z",
"expiry_time": "2025-03-08T07:36:11.163005Z"
}
}Quotation
Create Quotation
Creates a payin quotation locking in the exchange rate. Returns a quotation ID valid for a fixed time window.
POST
/
payin
/
quotation
cURL
curl --request POST \
--url https://sandbox.dollarpe.xyz/pis/api/v1/payin/quotation \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>' \
--data '
{
"asset": "usdt",
"fiat": "inr",
"sending_amount": "51",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"bank_id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"payment_method": "IMPS",
"risk_parameters": {
"ip_address": "127.0.0.1",
"device_id": "<string>",
"suspicious_activity_report": false,
"law_enforcement_agency_report": false
}
}
'import requests
url = "https://sandbox.dollarpe.xyz/pis/api/v1/payin/quotation"
payload = {
"asset": "usdt",
"fiat": "inr",
"sending_amount": "51",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"bank_id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"payment_method": "IMPS",
"risk_parameters": {
"ip_address": "127.0.0.1",
"device_id": "<string>",
"suspicious_activity_report": False,
"law_enforcement_agency_report": False
}
}
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({
asset: 'usdt',
fiat: 'inr',
sending_amount: '51',
customer_id: 'def8b740-99f9-4cba-bc9e-99de57e927b4',
bank_id: '4e6f1b20-a73c-11ec-b909-0242ac120002',
payment_method: 'IMPS',
risk_parameters: {
ip_address: '127.0.0.1',
device_id: '<string>',
suspicious_activity_report: false,
law_enforcement_agency_report: false
}
})
};
fetch('https://sandbox.dollarpe.xyz/pis/api/v1/payin/quotation', 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/pis/api/v1/payin/quotation",
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([
'asset' => 'usdt',
'fiat' => 'inr',
'sending_amount' => '51',
'customer_id' => 'def8b740-99f9-4cba-bc9e-99de57e927b4',
'bank_id' => '4e6f1b20-a73c-11ec-b909-0242ac120002',
'payment_method' => 'IMPS',
'risk_parameters' => [
'ip_address' => '127.0.0.1',
'device_id' => '<string>',
'suspicious_activity_report' => false,
'law_enforcement_agency_report' => false
]
]),
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/pis/api/v1/payin/quotation"
payload := strings.NewReader("{\n \"asset\": \"usdt\",\n \"fiat\": \"inr\",\n \"sending_amount\": \"51\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"payment_method\": \"IMPS\",\n \"risk_parameters\": {\n \"ip_address\": \"127.0.0.1\",\n \"device_id\": \"<string>\",\n \"suspicious_activity_report\": false,\n \"law_enforcement_agency_report\": false\n }\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/pis/api/v1/payin/quotation")
.header("X-API-KEY", "<api-key>")
.header("X-TIMESTAMP", "<api-key>")
.header("X-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"asset\": \"usdt\",\n \"fiat\": \"inr\",\n \"sending_amount\": \"51\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"payment_method\": \"IMPS\",\n \"risk_parameters\": {\n \"ip_address\": \"127.0.0.1\",\n \"device_id\": \"<string>\",\n \"suspicious_activity_report\": false,\n \"law_enforcement_agency_report\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.dollarpe.xyz/pis/api/v1/payin/quotation")
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 \"asset\": \"usdt\",\n \"fiat\": \"inr\",\n \"sending_amount\": \"51\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\",\n \"payment_method\": \"IMPS\",\n \"risk_parameters\": {\n \"ip_address\": \"127.0.0.1\",\n \"device_id\": \"<string>\",\n \"suspicious_activity_report\": false,\n \"law_enforcement_agency_report\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"bank_id": "4e6f1b20-a73c-11ec-b909-0242ac120002",
"asset": "USDT",
"fiat": "INR",
"payment_method": "IMPS",
"sending_amount": 1000,
"rate": 91.91,
"receiving_amount": 108.8,
"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
},
"deposit_instructions": {
"account_number": "1234567890",
"ifsc": "SBIN0000001",
"account_name": "Sandbox Technologies Pvt Ltd"
},
"created_at": "2025-03-08T07:31:11.163005Z",
"expiry_time": "2025-03-08T07:36:11.163005Z"
}
}Create Quotation
- Ensure you’re using the correct
bank_idtype based on the payment method:- UPI:
vpa - IMPS:
bank_account
- UPI:
- For QR-based payments, refer to the Generate QR guide.
- For UPI integrations:
- Use the
deep_linkfield for Android and web flows. - Use the
ios_checkout_linkfield for iOS devices.
- Use the
Error Codes and Messages
| API Status Code | Response | Reason |
|---|---|---|
| 400 | Customer is unverified | Customer is added but KYC is unverified |
| 400 | Customer is unverified | Customer does not belong to Organization |
| 400 | Bank account is unverified | Bank account is not added |
| 400 | Bank account is unverified | Bank account is added but under processing |
| 400 | Bank account is unverified | Name mismatch between PAN and Bank account |
| 400 | Bank account is unverified | Bank account is linked to some other customer |
| 400 | Onramp is disabled | Customer is KYC verified using Passport / Driver’s License / Voter ID, but Aadhar is not verified |
| 400 | Entered amount is less than minimum transaction amount | Entered amount must be greater than INR 2500 |
| 400 | Entered amount exceeds maximum transaction amount | Entered amount must be less than: • INR 500,000# for IMPS • INR 100,000# for UPI |
| 400 | AML SCREENING FAILED | Customer appears in sanction lists and the Politically Exposed Persons (PEP) database and/or has material adverse media |
| 400 | EDD required | Suspicious activity or Red Flag Indicator is triggered |
| 400 | EDD required | Transaction milestone since last EDD is reached^ |
| 400 | EDD required | Annual EDD is due or overdue |
| 400 | Daily onramp limit exhausted | Daily onramp limit exhausted |
| 500 | Internal Server Error | Internal Server Error |
| 503 | Service unavailable | Unexpected Error Occurred |
Authorizations
API Key for authentication
Current timestamp in seconds since epoch
HMAC SHA256 signature of the request encoded in Base64
Body
application/json
The cryptocurrency asset code
Example:
"usdt"
The fiat currency code
Example:
"inr"
The amount to be sent
Example:
"51"
Customer's unique identifier
Example:
"def8b740-99f9-4cba-bc9e-99de57e927b4"
Customer's Bank's unique identifier from which the payin will be made
Example:
"4e6f1b20-a73c-11ec-b909-0242ac120002"
Example:
"IMPS"
Show child attributes
Show child attributes
⌘I

