Skip to main content

Face Search, Enrol or Block

Description

Objective

The Face Search, Enrol or Block module enrols the customer in your database, returns the reason for rejecting the enrolment application or adds it to your block-list.

InputOutput
The selfie of the customer and the unique transaction ID.A response that reflects the success or failure of the customer enrolment process, or the addition to your block-list. The reason for rejecting the enrolment application is also returned if the enrolment fails.

Inputs

The following table provides the complete information on the input parameters.

ParameterMandatory or OptionalValid ValuesTypeDescription
transactionIdMandatoryN/A. This is a unique value.stringThe unique identifier for the customer's application.
selfieMandatoryN/AfileThe selfie image of the user.
Note
The maximum image size supported is 6 MB.
blockOptionalyes or nostringTo add this application to blocklist if enrol is set to yes.
enrolOptionalyes or nostringIf this flag is set to yes, this customer application will be enrolled in your database.
omitSearchOptionalyes or nostringIf this flag is set to yes, the module skips searching the database for a matching record.
Note
When both enrol and omitSearch are set to yes, the module only performs the enrollment for the application without searching for a matching record in the database.

Success Response Sample

{
"statusCode": 200,
"status": "success",
"metaData": {
"requestId": "1622697947985-4cfbcaf8-28ca-497e-8d22-323dea6aa2f6",
"transactionId": "290101"
},
"result": {
"data": {
"isEnrolled": {
"value": "yes",
"reason": "NA"
},
"matches": {
"count": 1,
"internal": [
{
"enrolDate": "11-04-2021",
"transactionId": "123456",
"clientId": "290101",
"matchScore": {
"selfie": "97.4"
},
"selfie": {
"url": "https://orion.com/1234/test.png",
"match": "yes | no | NA"
},
"category": "sameFace"
}
]
},
"blocklist": {
"count": 1,
"internal": [
{
"enrolDate": "11-04-2021",
"transactionId": "123456",
"clientId": "290101",
"matchScore": {
"selfie": "97.4"
},
"selfie": {
"url": "https://orion.com/1234/test.png",
"match": "yes | no | NA"
},
"category": "BlockedApplication"
}
]
},
"dashboardUrl": "dashboardurl"
},
"summary": {
"value": "Match with blocklist",
"action": "Manual Review"
}
}
}

Success Response Details

ObjectFieldDescription
isEnrolled valueIf the value is yes, the application was successfully enrolled in your database. If the value is no, the reason field explains the corresponding reason of non-enrollment.
summary actionIt displays the recommended decision for the customer. It can take any of the values from the following table.
ActionRecommendation
PassYou can proceed with the application as nothing suspicious was found.
Manual ReviewRequires manual review for further approval or rejection.
FailThe enrolment failed either because of an image quality issue or a matching transactionId pre-existing in the database.
metaDatarequestIdA unique identifier to track the customer's application.
metaDatatransactionIdThe same transactionId used in the input.

Error Response Sample

The following are the sample error responses.

The following is a sample response for a request missing the transactionId.

{
"status": "failure",
"metaData": {
"requestId": "1622697947985-4cfbcaf8-28ca-497e-8d22-323dea6aa2f6",
"transactionId": "290101"
},
"statusCode": 400,
"error": "\"transactionId\" is required"
}

Failure and Error Response Details

A failure or error response from the module contains a failure status with a relavant status code and error message. The following table lists all error responses.

Status CodeError MessageError Description
400""transactionId" is requiredThe request does not contain the transaction identification number.
401Missing/Invalid credentialsThe request either does not contain the mandatory credentials or contains invalid credentials.
422Face not detected in Selfie imageThe model failed to detect a face in the selfie. Kindly retry with a new selfie.
429Requests rate limit exceededThe number of transactions per minute has crossed the limit set for your credentials.
500Internal Server ErrorThere is an error with HyperVerge's server. Kindly contact the HyperVerge team for resolution.
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: