cURL
curl --request POST \
--url https://api-sandbox.zapyd.com/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",
"payment_method": "IMPS",
"risk_parameters": {
"ip_address": "127.0.0.1",
"device_id": "<string>",
"suspicious_activity_report": false,
"law_enforcement_agency_report": false
},
"network": "tron",
"bank_id": "4e6f1b20-a73c-11ec-b909-0242ac120002"
}
'import requests
url = "https://api-sandbox.zapyd.com/pis/api/v1/payin/quotation"
payload = {
"asset": "usdt",
"fiat": "inr",
"sending_amount": "51",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"payment_method": "IMPS",
"risk_parameters": {
"ip_address": "127.0.0.1",
"device_id": "<string>",
"suspicious_activity_report": False,
"law_enforcement_agency_report": False
},
"network": "tron",
"bank_id": "4e6f1b20-a73c-11ec-b909-0242ac120002"
}
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',
payment_method: 'IMPS',
risk_parameters: {
ip_address: '127.0.0.1',
device_id: '<string>',
suspicious_activity_report: false,
law_enforcement_agency_report: false
},
network: 'tron',
bank_id: '4e6f1b20-a73c-11ec-b909-0242ac120002'
})
};
fetch('https://api-sandbox.zapyd.com/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://api-sandbox.zapyd.com/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',
'payment_method' => 'IMPS',
'risk_parameters' => [
'ip_address' => '127.0.0.1',
'device_id' => '<string>',
'suspicious_activity_report' => false,
'law_enforcement_agency_report' => false
],
'network' => 'tron',
'bank_id' => '4e6f1b20-a73c-11ec-b909-0242ac120002'
]),
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://api-sandbox.zapyd.com/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 \"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 \"network\": \"tron\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\"\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://api-sandbox.zapyd.com/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 \"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 \"network\": \"tron\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.zapyd.com/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 \"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 \"network\": \"tron\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\"\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",
"network": "tron",
"payment_method": "IMPS",
"sending_amount": 1000,
"rate": 91.91,
"receiving_amount": 108.8,
"fees": {
"client_fee_fiat": 450,
"client_fee_crypto": 5,
"zapyd_fee": 450,
"pg_fee": 18,
"client_gst_fiat": 81,
"client_gst_crypto": 0.9,
"zapyd_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"
}
}
Payins
Create Quotation
Creates a payin quotation that fixes the exchange rate. The quotation ID is valid for a fixed period.
POST
/
payin
/
quotation
cURL
curl --request POST \
--url https://api-sandbox.zapyd.com/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",
"payment_method": "IMPS",
"risk_parameters": {
"ip_address": "127.0.0.1",
"device_id": "<string>",
"suspicious_activity_report": false,
"law_enforcement_agency_report": false
},
"network": "tron",
"bank_id": "4e6f1b20-a73c-11ec-b909-0242ac120002"
}
'import requests
url = "https://api-sandbox.zapyd.com/pis/api/v1/payin/quotation"
payload = {
"asset": "usdt",
"fiat": "inr",
"sending_amount": "51",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"payment_method": "IMPS",
"risk_parameters": {
"ip_address": "127.0.0.1",
"device_id": "<string>",
"suspicious_activity_report": False,
"law_enforcement_agency_report": False
},
"network": "tron",
"bank_id": "4e6f1b20-a73c-11ec-b909-0242ac120002"
}
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',
payment_method: 'IMPS',
risk_parameters: {
ip_address: '127.0.0.1',
device_id: '<string>',
suspicious_activity_report: false,
law_enforcement_agency_report: false
},
network: 'tron',
bank_id: '4e6f1b20-a73c-11ec-b909-0242ac120002'
})
};
fetch('https://api-sandbox.zapyd.com/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://api-sandbox.zapyd.com/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',
'payment_method' => 'IMPS',
'risk_parameters' => [
'ip_address' => '127.0.0.1',
'device_id' => '<string>',
'suspicious_activity_report' => false,
'law_enforcement_agency_report' => false
],
'network' => 'tron',
'bank_id' => '4e6f1b20-a73c-11ec-b909-0242ac120002'
]),
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://api-sandbox.zapyd.com/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 \"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 \"network\": \"tron\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\"\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://api-sandbox.zapyd.com/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 \"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 \"network\": \"tron\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.zapyd.com/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 \"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 \"network\": \"tron\",\n \"bank_id\": \"4e6f1b20-a73c-11ec-b909-0242ac120002\"\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",
"network": "tron",
"payment_method": "IMPS",
"sending_amount": 1000,
"rate": 91.91,
"receiving_amount": 108.8,
"fees": {
"client_fee_fiat": 450,
"client_fee_crypto": 5,
"zapyd_fee": 450,
"pg_fee": 18,
"client_gst_fiat": 81,
"client_gst_crypto": 0.9,
"zapyd_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
The customer must be
VERIFIED and have the PAYIN capability. Check their limit with Payin Limits before quoting.Payment methods by currency
fiat and payment_method pick the market and the rail. deposit_instructions in the response follow the rail.
fiat | payment_method | bank_id | How the user pays |
|---|---|---|---|
INR | IMPS | Optional | Bank transfer to the account in deposit_instructions |
UPI | Optional | Any UPI app: open deposit_instructions.deep_link, or ios_checkout_link on iOS. See UPI QR codes | |
USD | ACH_PULL | Required | Nothing to do: Zapyd debits the account linked with Generate Bank Link |
WIRE | Optional | Wire to the account and routing number in deposit_instructions | |
RTP | Optional | Instant transfer to the account and routing number in deposit_instructions |
bank_id is a VERIFIED account from Fetch Bank Accounts.
After quoting
- Show the user
deposit_instructions, the exactsending_amountand the time left beforeexpiry_time. - The user pays from an account in their own KYC name, the exact amount, in one transfer. Otherwise the payin is refunded.
- Call Create Payin before
expiry_time.
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 the organization |
| 400 | PAYIN is not enabled for this customer. | Missing capability |
| 400 | Bank account is unverified | Bank account is not added |
| 400 | Bank account is unverified | Bank account is added but still processing |
| 400 | Bank account is unverified | The account holder’s name doesn’t match the KYC name |
| 400 | Bank account is unverified | Bank account is linked to another customer |
| 400 | Onramp is disabled | The customer’s KYC doesn’t allow payins in their market. In India, payins need an Aadhaar-verified customer |
| 400 | Entered amount is less than minimum transaction amount | sending_amount is below the minimum for the payment method |
| 400 | Entered amount exceeds maximum transaction amount | sending_amount is above the maximum for the payment method |
| 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
Body
application/json
Required. Send every key listed in required_risk_parameters for the fiat in Fetch Configuration. Send {} if that list is empty.
Hide child attributes
Hide child attributes
Response
Quotation created successfully
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Where the customer sends fiat. For INR: account_number, ifsc and account_name. For USD: account_number, routing_number, bank_name, bank_address, account_holder_name and narrative. ACH_PULL has none.
Hide child attributes
Hide child attributes