Use this API to generate OTP for a given aadhar number. The mobile number linked with the aadhaar information will receive the generated OTP. The generated OTP will be valid for 10 minutes. Use the generated OTP for offline aadhaar verification. View the test data and use the information to trigger the validations. The test data are usable only in the test environments such as sandbox.
Client ID. You can find your ID in the Merchant Dashboard.
Client secret key. You can find your secret key in the Merchant Dashboard.
Send the signature if IP is not whitelisted.
Find the request parameters to generate OTP for a given aadhar number
It is the unique 12-digit identification number issued by the Unique Identification Authority of India (UIDAI).
"655675523712"
Success response for generating the OTP for offline aadhaar verification
It displays the unique ID created by Cashfree Payments for reference purposes.
"12345"
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."SUCCESS"
It displays details about the success or failure of the API request.
"OTP send successfully."