POST
/
digilocker
curl --request POST \
  --url https://sandbox.cashfree.com/verification/digilocker \
  --header 'Content-Type: application/json' \
  --header 'x-client-id: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "verification_id": "ABC00123",
  "document_requested": [
    "AADHAAR",
    "PAN",
    "DRIVING_LICENSE"
  ],
  "redirect_url": "https://www.cashfree.com"
}'
{
"verification_id": "ABC00123",
"reference_id": 12345,
"url": "https://verification-test.cashfree.com/dgl/h7562ci7us0",
"status": "PENDING",
"document_requested": [
"AADHAAR",
"PAN",
"DRIVING_LICENSE"
],
"redirect_url": "https://www.cashfree.com"
}

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 create a DigiLocker URL to retrieve and verify aadhaar, pan, driving-license information.

The body is of type object.

Response

200
application/json

Success response for creating a DigiLocker URL for document verification

The response is of type object.