curl --request POST \
--url https://sandbox.zapyd.com/pis/api/v1/payin/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",
"client_reference_id": "testUser123",
"transaction_reference_id": "412345678901"
}
'import requests
url = "https://sandbox.zapyd.com/pis/api/v1/payin/initiate"
payload = {
"quotation_id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"client_reference_id": "testUser123",
"transaction_reference_id": "412345678901"
}
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',
client_reference_id: 'testUser123',
transaction_reference_id: '412345678901'
})
};
fetch('https://sandbox.zapyd.com/pis/api/v1/payin/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.zapyd.com/pis/api/v1/payin/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',
'client_reference_id' => 'testUser123',
'transaction_reference_id' => '412345678901'
]),
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.zapyd.com/pis/api/v1/payin/initiate"
payload := strings.NewReader("{\n \"quotation_id\": \"2e104290-07c8-49f1-a5ca-0d27f0078f8a\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"client_reference_id\": \"testUser123\",\n \"transaction_reference_id\": \"412345678901\"\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.zapyd.com/pis/api/v1/payin/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 \"client_reference_id\": \"testUser123\",\n \"transaction_reference_id\": \"412345678901\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.zapyd.com/pis/api/v1/payin/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 \"client_reference_id\": \"testUser123\",\n \"transaction_reference_id\": \"412345678901\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"id": "6a1c0e7e-2b53-4f7e-9d2f-6d6e2b1c9a10",
"quotation_id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "84737c7d-7b62-4204-80d6-80f6ecb3ceb4",
"bank_id": "cab47575-bbcb-4294-81a3-30774104f3b6",
"asset": "USDT",
"fiat": "INR",
"network": "tron",
"payment_method": "IMPS",
"sending_amount": "10000.00",
"rate": "91.91",
"receiving_amount": "108.80",
"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
},
"client_reference_id": "payin-ref-001",
"wallet_address": "TXqH4MnDw46f3yyrRwau3JF92Y1ie3pAXf",
"transaction_reference_id": "412345678901",
"status": "PROCESSING",
"deposit_instructions": {
"account_number": "1234567890",
"ifsc": "SBIN0000001",
"account_name": "Sandbox Technologies Pvt Ltd",
"deep_link": "upi://pay?pa=testing-payin@ybl&am=1000",
"ios_checkout_link": "https://pay.google.com/upi/deeplink?pa=testing-payin@ybl&am=1000"
},
"created_at": "2026-09-30T10:00:00Z"
}
}{
"status": false,
"message": "Bad Request",
"err_code": "REQ_FIELD_MISSING",
"errors": {
"quotation_id": [
"This field is required."
]
},
"data": null
}{
"status": false,
"message": "Internal Server Error",
"data": null,
"err_code": "SYS_INTERNAL_ERROR",
"errors": "Unexpected error occurred. Please try again later."
}Create Payin
Starts a payin order from a valid quotation that has not expired.
curl --request POST \
--url https://sandbox.zapyd.com/pis/api/v1/payin/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",
"client_reference_id": "testUser123",
"transaction_reference_id": "412345678901"
}
'import requests
url = "https://sandbox.zapyd.com/pis/api/v1/payin/initiate"
payload = {
"quotation_id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "def8b740-99f9-4cba-bc9e-99de57e927b4",
"client_reference_id": "testUser123",
"transaction_reference_id": "412345678901"
}
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',
client_reference_id: 'testUser123',
transaction_reference_id: '412345678901'
})
};
fetch('https://sandbox.zapyd.com/pis/api/v1/payin/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.zapyd.com/pis/api/v1/payin/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',
'client_reference_id' => 'testUser123',
'transaction_reference_id' => '412345678901'
]),
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.zapyd.com/pis/api/v1/payin/initiate"
payload := strings.NewReader("{\n \"quotation_id\": \"2e104290-07c8-49f1-a5ca-0d27f0078f8a\",\n \"customer_id\": \"def8b740-99f9-4cba-bc9e-99de57e927b4\",\n \"client_reference_id\": \"testUser123\",\n \"transaction_reference_id\": \"412345678901\"\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.zapyd.com/pis/api/v1/payin/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 \"client_reference_id\": \"testUser123\",\n \"transaction_reference_id\": \"412345678901\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.zapyd.com/pis/api/v1/payin/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 \"client_reference_id\": \"testUser123\",\n \"transaction_reference_id\": \"412345678901\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Success",
"data": {
"id": "6a1c0e7e-2b53-4f7e-9d2f-6d6e2b1c9a10",
"quotation_id": "2e104290-07c8-49f1-a5ca-0d27f0078f8a",
"customer_id": "84737c7d-7b62-4204-80d6-80f6ecb3ceb4",
"bank_id": "cab47575-bbcb-4294-81a3-30774104f3b6",
"asset": "USDT",
"fiat": "INR",
"network": "tron",
"payment_method": "IMPS",
"sending_amount": "10000.00",
"rate": "91.91",
"receiving_amount": "108.80",
"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
},
"client_reference_id": "payin-ref-001",
"wallet_address": "TXqH4MnDw46f3yyrRwau3JF92Y1ie3pAXf",
"transaction_reference_id": "412345678901",
"status": "PROCESSING",
"deposit_instructions": {
"account_number": "1234567890",
"ifsc": "SBIN0000001",
"account_name": "Sandbox Technologies Pvt Ltd",
"deep_link": "upi://pay?pa=testing-payin@ybl&am=1000",
"ios_checkout_link": "https://pay.google.com/upi/deeplink?pa=testing-payin@ybl&am=1000"
},
"created_at": "2026-09-30T10:00:00Z"
}
}{
"status": false,
"message": "Bad Request",
"err_code": "REQ_FIELD_MISSING",
"errors": {
"quotation_id": [
"This field is required."
]
},
"data": null
}{
"status": false,
"message": "Internal Server Error",
"data": null,
"err_code": "SYS_INTERNAL_ERROR",
"errors": "Unexpected error occurred. Please try again later."
}Create Payin
Error Codes and Messages
| API Status Code | Response | Reason |
|---|---|---|
| 400 | Transaction reference id is already linked to another payin | transaction_reference_id already used by another payin |
| 400 | Client Reference ID already exists | Client Reference ID already exists |
| 400 | Invalid transaction reference id format | INR only: transaction_reference_id is not 12 or 16 characters |
| 400 | This field is required. | INR quotation and no transaction_reference_id sent |
| 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 payin | Quotation is already linked to another payin |
| 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
The unique identifier of the quotation
"2e104290-07c8-49f1-a5ca-0d27f0078f8a"
The unique identifier of the customer
"def8b740-99f9-4cba-bc9e-99de57e927b4"
Your reference for this payin. Optional, but must be unique if sent.
"testUser123"
Bank transaction reference (UTR for INR). Required for INR: 12 or 16 characters. Optional for other fiats. Must not be linked to another payin.
"412345678901"
Response
Payin created successfully
true
"Success"
Hide child attributes
Hide child attributes
"6a1c0e7e-2b53-4f7e-9d2f-6d6e2b1c9a10"
"2e104290-07c8-49f1-a5ca-0d27f0078f8a"
"84737c7d-7b62-4204-80d6-80f6ecb3ceb4"
"cab47575-bbcb-4294-81a3-30774104f3b6"
"USDT"
"INR"
Network
"tron"
"IMPS"
Fiat amount the customer pays
"10000.00"
"91.91"
Crypto amount delivered
"108.80"
Hide child attributes
Hide child attributes
450
5
450
18
81
0.9
81
81
889.17
88.92
"payin-ref-001"
Wallet the crypto is delivered to
"TXqH4MnDw46f3yyrRwau3JF92Y1ie3pAXf"
Bank transaction reference (UTR for INR)
"412345678901"
Payin status
"PROCESSING"
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
"1234567890"
"SBIN0000001"
"Sandbox Technologies Pvt Ltd"
"upi://pay?pa=testing-payin@ybl&am=1000"
"https://pay.google.com/upi/deeplink?pa=testing-payin@ybl&am=1000"
"2026-09-30T10:00:00Z"