Stored in this browser only. The samples below fill in as you type; only "Try It" sends them, to sign a read request.
KEY_ID="pk_live_your_key_id"
SECRET="sk_live_your_signing_secret"
P='/ext/v1/balance'
QUERY=''
TS=$(date +%s)
NONCE=$(openssl rand -hex 16)
HASH=$(printf %s '' | openssl dgst -sha256 | awk '{print $NF}')
SIG=$(printf 'POC1\n%s\n%s\n%s\n%s\n%s\n%s' 'GET' "$P" "$QUERY" "$TS" "$NONCE" "$HASH" \
| openssl dgst -sha256 -hmac "$SECRET" | awk '{print $NF}')
curl -X GET "https://payonclick.in$P" \
-H "X-Api-Key-Id: $KEY_ID" \
-H "X-Timestamp: $TS" \
-H "X-Nonce: $NONCE" \
-H "X-Signature: $SIG"
import hashlib, hmac, json, secrets, time, requests
KEY_ID = "pk_live_your_key_id"
SECRET = "sk_live_your_signing_secret"
PATH = "/ext/v1/balance"
QUERY = ""
BODY = b""
ts = str(int(time.time()))
nonce = secrets.token_hex(16)
msg = "\n".join(["POC1", "GET", PATH, QUERY, ts, nonce,
hashlib.sha256(BODY).hexdigest()])
sig = hmac.new(SECRET.encode(), msg.encode(), hashlib.sha256).hexdigest()
r = requests.request(
"GET", "https://payonclick.in" + PATH + ("?" + QUERY if QUERY else ""),
headers={
"X-Api-Key-Id": KEY_ID,
"X-Timestamp": ts,
"X-Nonce": nonce,
"X-Signature": sig,
}, timeout=90)
print(r.json())
const crypto = require('crypto');
const KEY_ID = 'pk_live_your_key_id';
const SECRET = 'sk_live_your_signing_secret';
const path = '/ext/v1/balance';
const query = '';
const body = '';
const ts = Math.floor(Date.now() / 1000).toString();
const nonce = crypto.randomBytes(16).toString('hex');
const hash = crypto.createHash('sha256').update(body).digest('hex');
const msg = ['POC1', 'GET', path, query, ts, nonce, hash].join('\n');
const sig = crypto.createHmac('sha256', SECRET).update(msg).digest('hex');
async function main() {
const res = await fetch('https://payonclick.in' + path + (query ? '?' + query : ''), {
method: 'GET',
headers: {
'X-Api-Key-Id': KEY_ID,
'X-Timestamp': ts,
'X-Nonce': nonce,
'X-Signature': sig,
},
signal: AbortSignal.timeout(90000),
});
console.log(JSON.stringify(await res.json(), null, 2));
}
main();
<?php
$keyId = 'pk_live_your_key_id';
$secret = 'sk_live_your_signing_secret';
$path = '/ext/v1/balance';
$query = '';
$body = '';
$ts = (string) time();
$nonce = bin2hex(random_bytes(16));
$msg = implode("\n", ['POC1', 'GET', $path, $query, $ts, $nonce, hash('sha256', $body)]);
$sig = hash_hmac('sha256', $msg, $secret);
$headers = [
"X-Api-Key-Id: {$keyId}",
"X-Timestamp: {$ts}",
"X-Nonce: {$nonce}",
"X-Signature: {$sig}",
];
$ch = curl_init('https://payonclick.in' . $path . ($query !== '' ? '?' . $query : ''));
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 90,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => $headers,
]);
echo curl_exec($ch);
import java.net.URI;
import java.net.http.*;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.SecureRandom;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
public class PayonclickExample {
static final String HOST = "https://payonclick.in";
static final String KEY_ID = "pk_live_your_key_id";
static final String SECRET = "sk_live_your_signing_secret";
public static void main(String[] args) throws Exception {
String path = "/ext/v1/balance";
String query = "";
String body = "";
String ts = String.valueOf(System.currentTimeMillis() / 1000);
byte[] rnd = new byte[16];
new SecureRandom().nextBytes(rnd);
String nonce = hex(rnd);
String hash = hex(MessageDigest.getInstance("SHA-256")
.digest(body.getBytes(StandardCharsets.UTF_8)));
String msg = String.join("\n", "POC1", "GET", path, query, ts, nonce, hash);
Mac mac = Mac.getInstance("HmacSHA256");
mac.init(new SecretKeySpec(SECRET.getBytes(StandardCharsets.UTF_8), "HmacSHA256"));
String sig = hex(mac.doFinal(msg.getBytes(StandardCharsets.UTF_8)));
HttpRequest.Builder req = HttpRequest.newBuilder(
URI.create(HOST + path + (query.isEmpty() ? "" : "?" + query)))
.timeout(java.time.Duration.ofSeconds(90))
.header("X-Api-Key-Id", KEY_ID)
.header("X-Timestamp", ts)
.header("X-Nonce", nonce)
.header("X-Signature", sig);
req.method("GET", HttpRequest.BodyPublishers.noBody());
HttpResponse<String> res = HttpClient.newHttpClient()
.send(req.build(), HttpResponse.BodyHandlers.ofString());
System.out.println(res.body());
}
static String hex(byte[] bytes) {
StringBuilder sb = new StringBuilder();
for (byte b : bytes) sb.append(String.format("%02x", b));
return sb.toString();
}
}
{
"success": true,
"data": {
"currency": "INR",
"as_of": "2026-07-29T14:35:12",
"wallets": {
"MAIN": { "balance": 45230.50, "funds": ["bbps", "recharge"] },
"AEPS": { "balance": 10000.00, "funds": ["aeps", "dmt", "upicw", "matm"] }
},
"products": {
"bbps": {
"wallet": "MAIN",
"base_url": "/ext/v1/bbps",
"permission": "bills",
"min_amount": 1.0,
"max_amount": 200000.0
},
"dmt": {
"wallet": "AEPS",
"base_url": "/ext/v1/freedmt",
"permission": "transfer",
"min_amount": 100.0,
"max_amount": 50000.0,
"daily_limit_per_beneficiary": 200000.0
},
"recharge": {
"wallet": "MAIN",
"base_url": "/ext/v1/recharge",
"permission": "recharge",
"min_amount": 1.0,
"max_amount": 50000.0
},
"aeps": {
"wallet": "AEPS",
"base_url": "/ext/v1/aeps",
"permission": "aeps",
"limits_by_service": { "CW": { "min_amount": 100, "max_amount": 10000, "multiple_of": 50 } /* AP, CD */ }
},
"upicw": {
"wallet": "AEPS",
"base_url": "/ext/v1/upicw",
"permission": "upicw",
"min_amount": 100.0,
"max_amount": 5000.0,
"multiple_of": 100
},
"matm": {
"wallet": "AEPS",
"base_url": "/ext/v1/matm",
"permission": "matm",
"limits_by_service": { "CW": { "min_amount": 100, "max_amount": 10000, "multiple_of": 100 } }
}
}
}
}