Use this API to verify passport information and ensure the identity of your customer. Provide the passport file number in the request and we help you fetch the details. 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 | verification_id is missing in the request. | Enter a valid verification_id in the request. |
| 400 | ERROR | verification_id can include only alphanum, dot, hyphen, and underscores. | Only alphanumeric, period (.), hyphen (-), and underscore ( _ ) are allowed. |
| 400 | ERROR | file_number is missing in the request. | Enter the file number in the request. |
| 400 | ERROR | dob is missing in the request. | Enter the date of birth of the passport holder in the request. |
| 400 | ERROR | dob should be of type YYYY-MM-DD. | Enter the DOB in the YYYY-MM-DD format. |
| 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. |
| 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 IP Whitelisting guide | 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. |
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.
Send the signature if two-factor authentication is selected as Public Key. More details
Find the request parameter to retrieve your customer's passport information
It is the unique ID you create to identify the verification request. The maximum character limit is 50. Only alphanumeric, period (.), hyphen (-), and underscore ( _ ) are allowed.
"ABC00123"
It is the unique alphanumeric code that identifies an individual's passport application.
"PA1079341954215"
It is the date of birth of the passport holder. The format is YYYY-MM-DD.
"2007-03-01"
It is the name of the passport holder.
"John Doe"
Success response for retrieveing passport information
It displays the unique ID created by Cashfree Payments for reference purposes.
format: int64
1358
It displays the unique ID you created to identify the verification request.
"ABC00123"
It displays the status of the passport.
"VALID"
It displays the unique alphanumeric code that identifies an individual's passport application.
"XX0000000000000"
It displays the name of the passport holder.
"John Doe"
It displays the date of birth of the passport holder.
"YYYY-MM-DD"
It displays the type of passport application.
"NORMAL"
It displays when the passport application was received.
"YYYY-MM-DD"