Downloading verified documents
When an applicant has been verified, you can download and retrieve the document images.
Download verified documents
Name
Value
Name
Type
Description
Request
curl --location 'https://enterprise.personr.co/api/1.1/wf/api-document-download' \
--form 'applicantId="4242424242424x424242424242424242"'var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('applicantId', '4242424242424x424242424242424242');
var config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://enterprise.personr.co/api/1.1/wf/api-document-download',
headers: {
...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});{
"status": "success",
"response": {
"IdDocType": [
"DRIVERS",
"DRIVERS",
"SELFIE"
],
"base64": [
"/9j/44AQS...",
"/9j/45AQS...",
"/9j/49AQS..."
]
}
}{
"statusCode": 400,
"message": "Error: incorrect applicantId provided"
}Last updated
Was this helpful?