Pooling
This endpoint allows fetching the results from a previous document validation process, that was initiated with the pooling option.
This method is only necessary if you want to implement asynchronous calls to the OCR engine. This method can be called multiple times after the previous necessary Validate Document process is started with the corresponding pooling option. It will return the verification result when the engine finishes the validation process.
Document - Pooling
POST
https://api.biometrid.com/api/1.1/document/pooling
Headers
Content-type
string
Request content type (This is not required to be set. Referenced only to show how we expect data to be sent). { "Content-Type": "multipart/form-data" }
x-biometrid-key
string
Application Client Key
x-biometrid-secret
string
Application Client Secret
Request Body
process
string
Polygon OCR process
returned from document validate request (if pooling type option sent).
processId
string
Client own process reference.
// Response when process still validating
{
"status": true,
"data": {
"message": "PROCESSING",
"process": "process identifier" // Polygon OCR processId
}
}
//Validate Document Process - providerB
{
"status": true,
"data": {
"message": "DOCUMENT_VALIDATED_WITH_SUCCESS",
"result": "GOOD",
"fields": {
"surnames": "REIS",
"names": "JOAO MIGUEL",
"origin": "PRT",
"gender": "M",
"height": "1,89",
"birth_date": "1900-01-01",
"expiry_date": "2022-01-01",
"id_number": "123456789",
"doc_number": "123456789 5ZZZ0",
"parents": "JOSE REIS * MARIA REIS",
"tax_number": "123456789",
"social_security_number": "123456789",
"health_number": "386926259",
"mrz": {
"line0": "I<PRT123456<ZZY0<<<<<<<<K",
"line1": "24123123 <<< ",
"line2": "JOAO<<<<<<REIS>>>>"
}
},
"validations": {
"front_resolution": "GOOD [4032x3024]",
"front_blurring": "GOOD [199.44849196759998]",
"front_luminance": "GOOD [77]",
"back_resolution": "GOOD [4032x3024]",
"back_blurring": "GOOD [224.78067465369602]",
"back_luminance": "GOOD [80]",
"integrity_tax_number": "GOOD",
"integrity_id_number": "GOOD",
"integrity_doc_number": "GOOD",
"integrity_birth_date": "GOOD",
"integrity_expiry_date": "GOOD",
"match_birth_date": "GOOD",
"match_name": "FAIL",
"match_surname": "GOOD",
"match_gender": "GOOD",
"match_nationality": "GOOD",
"match_expiry_date": "GOOD",
"expiration_date": "GOOD",
"fake_front_value": "GOOD",
"fake_back_value": "GOOD",
"fake_front_ratio": 0.99,
"fake_back_ratio": 0.99,
"value": "GOOD"
},
"images": {
"front": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA",
"back": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIB",
"photo": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAI"
},
"process": "5ed91c890482a7306bbc2511"
}
}
{
"process": "5ed91c890482a7306bbc2511", // Polygon OCR processId
"processId": "some reference", // Client own process reference
}
Last updated
Was this helpful?