Submit OTP to Verify Aadhaar
Use this API to verify aadhaar by submitting the OTP received on the mobile number linked to the aadhaar information. You also need to enter the reference ID received in the response of Generate OTP to Verify Aadhaar API. View the test data and use the information to trigger the validations. The test data are usable only in the test environments such as gamma and sandbox.
Response Codes
Sub Code | Status | Message | Next Action |
---|---|---|---|
200 | SUCCESS | Aadhaar Card Exists | - |
400 | ERROR | Session expired, please generate a new OTP | Generate a new OTP using Generate OTP to Verify Aadhaar API. |
400 | ERROR | Invalid Aadhaar Card | - |
400 | ERROR | Aadhaar not linked to mobile number | Enter a valid aadhaar number linked to a mobile number in the Generate OTP to Verify Aadhaar. |
400 | ERROR | Otp expired | Generate a new OTP using Generate OTP to Verify Aadhaar API. |
400 | ERROR | Please enter a valid otp. | Enter the generated OTP. |
400 | ERROR | Please enter the otp in the request | Enter the generated OTP. |
400 | ERROR | OTP entered is invalid | Enter the generated OTP. |
400 | ERROR | Client secret belongs to test environment | Enter the correct environment credentials in the request. |
400 | ERROR | x-client-id is missing in the request | Enter all the header information in the API request. |
401 | ERROR | Invalid clientId and clientSecret combination | Enter valid client ID and secret key in the request. |
403 | ERROR | IP not whitelisted your current ip is 106.51.91.104.For IP whitelisting assistance, visit our guide at https://docs.cashfree.com/docs/ip-whitelisting-verification | Whitelist the IP address. |
422 | ERROR | Insufficient balance to process this request. | Ensure you have sufficient balance and then process the request. |
500 | ERROR | Unable to validate, please retry later | Try again after some time. |
Authorizations
Client ID. You can find your ID in the Merchant Dashboard.
Client secret key. You can find your secret key in the Merchant Dashboard.
Body
Find the request parameters to submit the OTP for aadhaar verification
It is the OTP received on the registered phone number for offline aadhaar verification.
It is the unique ID created by Cashfree Payments that you receive in the response of Generate OTP to Verify Aadhaar API.
Response
Success response for Submit OTP for Aadhaar Verification
It displays the unique ID created by Cashfree Payments for reference purposes.
It displays the status of the aadhaar information.
It displays details about the success or failure of the API request.
It displays the parent/guardian of the aadhaar card holder.
It displays the address information as present in the aadhaar card.
It displays the date of birth of the aadhaar card holder.
It displays the email address of the aadhaar card holder.
It displays the gender of the aadhaar card holder.
It displays the name of the aadhaar card holder.
It displays the year of birth of the aadhaar card holder.
It displays the unique information about the device's hardware, software, and other characteristics.
It displays the URL to the image present in the aadhaar card.
It is the passcode with which we can unzip the xml file
It is the link which points to the zip file and contains the xml file and has 24 hrs expiry
It contains the address information in individual components.
Was this page helpful?