Payonclick Developer Docs
v1

Authentication

A public Key ID and a private signing secret; every request signed, from an allowed IP.


Each API key is a pair. The Key ID (pk_live_…) is public: it travels in every request and is safe to log. The signing secret (sk_live_…) is private: it stays on your server, signs each request and is never sent in one. A request copied from a log, a proxy or a browser therefore cannot be replayed or changed — it carries no secret, and its nonce and timestamp are single-use.

HeaderValue
X-Api-Key-IdYour Key ID, pk_live_ + 24 hex characters
X-TimestampUnix epoch seconds — within ±5 minutes of server time
X-NonceA new random value on every request: 16–64 letters, digits, - or _. 32 hex characters is ideal.
X-SignatureHMAC-SHA256 of the canonical message, keyed with the signing secret, lowercase hex — see Request Signing

Every method is signed, reads included. There is no other way to call the API: no plain token in a header or in the URL, no basic auth.

Your credentials

Create a key under Developer › API Keys: pick a name, the permissions it needs and the IPs of the servers that will use it. You get the Key ID and the signing secret once; only a sealed copy of the secret is kept on our side. Lost it, or a teammate left? Click Rotate: you get a new secret for the same Key ID, and the previous secret keeps working for 24 hours so you can update your servers one by one without downtime.

IP whitelist

Calls that move or charge money (transfer, bills, recharge, aeps, upicw, matm, ppi, verify) are accepted only from your approved server IPs. The list belongs to your account and covers every key, including keys you create later. Add it once under Developer > API Keys > Server IPs: exact addresses or CIDR ranges (at least /16 for IPv4, /32 for IPv6), up to 50 entries. New IPs take effect once Payonclick approves them; removing an IP takes effect immediately. A call from any other address gets 403 IP_BLOCKED; with no approved IP, money calls get 403 IP_WHITELIST_REQUIRED. Read-only calls (query) work from any IP until you add one.

⚠️
Sync your clock

A server more than five minutes off NTP fails every call with EXPIRED_TIMESTAMP, no matter how correct the signature is.

Rate limits

Each key carries its own per-minute quota, 60 requests per minute by default, counted per key (not per IP and not per server). It is a fixed one-minute window: when it is used up you get 429 RATE_LIMITED until the next minute starts. Back off and retry. If your volume needs a higher ceiling, ask us to raise it on the key rather than spreading calls across several keys.

Permissions

A key is granted any combination of transfer (Free DMT), bills (BBPS), recharge (Mobile & DTH recharge), aeps (AEPS), upicw (UPI Cash Point), matm (Micro ATM), verify (Verification) and query (read-only). Money endpoints check the scope and return 403 FORBIDDEN without it; read endpoints such as /balance, /categories, /operators and the status lookups need only a valid key. Every endpoint page states which scope it requires, so grant a key the narrowest set that covers the calls you actually make.

Retries

A retry is a new request: new timestamp, new nonce, new signature — but the same client_reference, so a money call that already went through returns the original with duplicate: true instead of charging twice. A reused nonce is refused with 409 REPLAYED_REQUEST.