post https://sandbox.cashfree.com/verification/driving-license
Use this API to verify the driving license of your customer. We retrieve details of the driving licence that includes the type of licence, issue date, expiry date, and more. 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 | VALID | - |
200 | SUCCESS | INVALID | Enter the correct information in the request. |
400 | ERROR | driving license is invalid | Ensure a valid driving licence information in the request. |
400 | ERROR | dob should be of type YYYY-MM-DD. | The accepted format is YYYY-MM-DD. |
400 | ERROR | dob is missing in the request. | Enter the date of birth of the driving licence holder in the request. |
400 | ERROR | verification_id is missing in the request. | Enter a valid verification ID to identify the verification request. |
400 | ERROR | verification_id can include a maximum of 50 characters. | Create a valid verification ID within 50 characters. |
400 | ERROR | verification_id can include only alphanum, dot, hyphen and underscores. | Only alphanumeric, period (.), hyphen (-) and underscore ( _ ) are allowed. |
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. |
400 | ERROR | Invalid DOB against DL or Invalid parameters. | Provide the correct DOB against DL. |
401 | ERROR | Invalid clientId and clientSecret combination | Ensure you enter valid x-client-id and x-client-secret information in the API 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. |
409 | ERROR | verification id already exists | Enter a unique verification ID to identify the request. |
422 | ERROR | Insufficient balance to process this request | Try again with sufficient balance. |
500 | ERROR | something went wrong | Try again after some time. |
502 | ERROR | verification attempt failed | Try again after some time. |