Skip to main content
POST
Generate OTP to Verify Aadhaar

Authorizations

x-client-id
string
header
required

Client ID. You can find your ID in the Merchant Dashboard.

x-client-secret
string
header
required

Client secret key. You can find your secret key in the Merchant Dashboard.

Headers

x-cf-signature
string

Send the signature if IP is not whitelisted.

Body

application/json

Find the request parameters to generate OTP for a given aadhar number

aadhaar_number
string
default:655675523712
required

It is the unique 12-digit identification number issued by the Unique Identification Authority of India (UIDAI).

Example:

"655675523712"

Response

Success response for generating the OTP for offline aadhaar verification

ref_id
string

It displays the unique ID created by Cashfree Payments for reference purposes.

Example:

"12345"

status
string

It displays the status of the API request. Possible values are:

  • SUCCESS: OTP generated successfully / Aadhaar not linked to mobile number.
  • INVALID: Aadhaar card invalid.
Example:

"SUCCESS"

message
string

It displays details about the success or failure of the API request.

Example:

"OTP send successfully."