POST
/
digilocker
/
verify-account
curl --request POST \
  --url https://sandbox.cashfree.com/verification/digilocker/verify-account \
  --header 'Content-Type: application/json' \
  --header 'x-client-id: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "verification_id": "ABC001238",
  "mobile_number": "101340612345"
}'
{
  "verification_id": "ABC00123",
  "reference_id": 12345,
  "mobile_number": 1234567899,
  "status": "ACCOUNT_EXISTS",
  "digilocker_id": "8aa626bf-34aa-5ffc-a123-f69207e129a7"
}

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.

Body

application/json
Find the request parameters to verify a Digilocker account

Find the request parameters to verify a Digilocker account.

verification_id
string
required

It is a unique ID you create to identify the API request. The maximum character limit is 50. Alphanumeric, period (.), hyphen (-). and underscore ( _ ) are allowed.

Example:

"ABC00123"

mobile_number
string

It is the mobile number of a user. Either an Aadhaar number or mobile is required to verify whether a Digilocker account exists. (conditonal mandatory)

Example:

"9988777666"

aadhaar_number
string

It is the unique 12-digit identification number issued by the Unique Identification Authority of India (UIDAI). Either an Aadhaar number or mobile is required to verify whether a Digilocker account exists. (conditonal mandatory)

Example:

"655675523712"

Response

200
application/json
Success response for digilocker account detail.

Response of verify DigiLocker account API.

verification_id
string

It displays the unique ID you created to identify this API request.

Example:

"ABC00123"

reference_id
integer

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

Example:

12345

mobile_number
string

Mobile number of the individual.

Example:

"1234567899"

aadhaar_number
string

Masked Aadhaar number of the individual.

Example:

"XXXXXXXX3712"

status
string

It displays the status of the digilocker account. Possible values are:

  • ACCOUNT_EXISTS: Digilocker account exists
  • ACCOUNT_NOT_FOUND: Digilocker account not found
Example:

"ACCOUNT_EXISTS"

digilocker_id
string

It is a unique 36-character DigiLocker ID of the user account.

Example:

"8aa626bf-34aa-5ffc-a123-f69207e129a7"

Was this page helpful?