Authorizations
Your unique client identifier issued by Cashfree. You can find this in your Merchant Dashboard.
The secret key associated with your client ID. Use this to authenticate your API requests. You can find this in your Merchant Dashboard.
Headers
Send the signature if two-factor authentication is selected as Public Key. More details
Body
Find the request parameters to create a DigiLocker URL to retrieve and verify aadhaar, pan, driving-license information.
It is the unique ID you create to identify the API request. The maximum character limit is 50. Alphanumeric, period (.), hyphen (-). and underscore ( _ ) are allowed.
"ABC00123"
It is the list of customer documents required for verification.
["AADHAAR", "PAN", "DRIVING_LICENSE"]
It is the URL you need to provide to redirect the user after completing the DigiLocker journey. It will contain the verification_id, which can be used to check the status of the verification.
"https://www.cashfree.com"
Specifies the flow the user will follow during the DigiLocker consent process. If not provided, the default flow is signup
. Possible values are:
signin
: Use this if the user already has a DigiLocker account. The user will be directed to the authorisation flow.signup
: Use this if the user does not have a DigiLocker account. The user will be directed to signup flow.
signin
, signup
"signup"
Response
Success response for creating a DigiLocker URL for document verification
It displays the unique ID you created to identify this API request.
"ABC00123"
It displays the unique ID created by Cashfree Payments for reference purposes. format: int64
12345
It displays the URL used to retrieve and verify document information from DigiLocker. This URL expires 10 minutes after it is generated. Ensure it is accessed within this period to avoid expiration errors.
"https://verification-test.cashfree.com/dgl/h7562ci7us0"
It displays the status of the verification request.. Possible values are:
PENDING
"PENDING"
Indicates the user flow selected for the DigiLocker consent process. Possible values are:
signin
: The user already has a DigiLocker account. The user will be directed to the authorisation flow.signup
: The user does not have a DigiLocker account. The user will be directed to the signup flow.
"signup"
It displays the list of documents requested for verification.
["AADHAAR", "PAN", "DRIVING_LICENSE"]
It displays the URL entered in the request that takes the user to after completing the DigiLocker journey.
"https://www.cashfree.com"