Payonclick Developer Docs
v1

Aadhaar OTP (above ₹4,000)

POST https://payonclick.in/ext/v1/aeps/otp
Requires aeps Signed request Counts toward your 60 req/min

NPCI-mandated customer OTP for a CW or AP above ₹4,000 — before capture


Body Params

NameTypeDescription
merchant_ref required string The outlet
service required string CW or AP
aadhaar required string Customer’s 12-digit Aadhaar
bank_iin required string From GET /banks
amount required number Must be above ₹4,000
customer_mobile required string Customer’s 10-digit mobile
latitude required number Outlet GPS latitude
longitude required number Outlet GPS longitude

Responses

StatusDescription
200 OK NPCI-mandated customer OTP for a CW or AP above ₹4,000 — before capture — see the example on the right.
200 OK · on-us bank, no OTP Alternate outcome for the same call — the second Response tab.
4xx / 5xx { "success": false, "error": { "code": "…", "message": "…" } } — every code is listed under Error Codes.
🔏
This call must be signed

Send X-Api-Key-Id, X-Timestamp, a new X-Nonce and X-Signature = HMAC-SHA256 with your signing secret over POC1\nPOST\n/ext/v1/aeps/otp\n{QUERY}\n{TIMESTAMP}\n{NONCE}\n{BODY_SHA256}. The samples on the right compute it for you; the rules are in Request Signing.

📘
Good to know

The OTP goes to the mobile registered with the customer’s Aadhaar. Put it into the capture’s PidOptions (pid_options_with_otp, otp="…") — it travels sealed inside the PID block and is never sent to us — then send otp_reference with the transaction. Amounts of ₹4,000 or less need no OTP. The threshold is NPCI’s and can change (it moved from ₹5,000 to ₹4,000 on 26 Nov 2026): read the live value as otp_above in GET /balance rather than hard-coding it. On-us banks need no OTP at any amount (the bank network refuses it, e.g. Airtel Payment Bank): this call then answers otp_required: false with an empty otp_reference — capture and send the transaction without one. GET /balance lists those IINs as otp_exempt_iins. Other answers: 400 OTP_NOT_REQUIRED (amount not above the threshold), 429 OTP_COOLDOWN with retry_after seconds (30 s between OTPs per outlet), 422 OTP_FAILED (the bank network could not send it — retry).