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 verify and compare facial features of your customer in two images
It is the unique ID you need to create to identify the verification request. The maximum character limit is 50, and only alphanumeric characters, periods (.), hyphens (-), and underscores (_) are allowed.
"12345678"
It is the scanned copy of Image 1. Allowed file types are JPEG, JPG, and PNG, with a maximum file size of 5 MB for each file.
It is the scanned copy of Image 2. Allowed file types are JPEG, JPG, and PNG, with a maximum file size of 5 MB for each file.
It is the value to distinguish and match the facial features of the two images. The range is between 0 and 1. The default value is set as 0.75. We conclude that the images match when the analysis is or greater than the value set for threshold.
Range: 0 < x < 1
"0.5"
Response
Success response for verifying facial features of your customer in two images
It displays the status of the API request. Possible values are:
SUCCESS: A successful face match returns all fields in the response.MULTIPLE_FACE_DETECTED: Indicates that multiple faces were detected in one or both of the input images.
"SUCCESS"
It displays the unique ID created by Cashfree Payments for reference purposes.
format: int64
2000
It displays the unique ID you created to identify the API request.
"2000"
It displays the result of the face match verification request. Possible values are:
YES: The face match is positive i.e. the given 2 photos match.NO: The face match is negative i.e. the given 2 photos don't match.
"YES/NO"
It displays the score of the face match verification request.
Range: 0 < x < 1
0.8