POST
/
offline-aadhaar
/
otp
curl --request POST \
  --url https://sandbox.cashfree.com/verification/offline-aadhaar/otp \
  --header 'Content-Type: application/json' \
  --header 'x-client-id: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "aadhaar_number": "655675523712"
}'
{
  "status": "SUCCESS",
  "message": "OTP sent successfully",
  "ref_id": 21637861
}

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

Find the request parameters to generate an OTP for aadhaar verification

aadhaar_number
string
default:
655675523712
required

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

Response

200
application/json
Success response for generating the OTP for offline aadhaar verification

Success response for Generate OTP to Verify Aadhaar API

ref_id
string

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

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.
message
string

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