Supported Documents and Types
A list of supported documents, and their subtypes.
Below are are list of the most popular document types (docType
) available to use with theUploading documents to an applicant endpoint.
If you don't see the document you wish to verify, reach out to your account manager for assistance.
Supported file extensions include .jpg
, .jpeg
, .png
, and .pdf
Selfie Images
When uploading a selfie image, be sure to remove/null docSubType
.
Your call to the endpoint should look something like the below.
curl --location 'https://enterprise.personr.co/api/1.1/wf/api-document-upload' \
--data '{
"applicantId": "4242424242424x424242424242424242",
"docType": "SELFIE",
"docCountryISO": "AUS",
"docFile": {
"filename": "selfie.jpg",
"contents": "/9j/4AAQSkZJRgABAQAAAQABAAD..."
}
}'
const axios = require('axios');
axios.post('https://enterprise.personr.co/api/1.1/wf/api-document-upload', {
applicantId: '4242424242424x424242424242424242',
docType: 'SELFIE',
docCountryISO: 'AUS',
docFile: {
filename: 'selfie.jpg',
contents: '/9j/4AAQSkZJRgABAQAAAQABAAD...'
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
$.ajax({
url: 'https://enterprise.personr.co/api/1.1/wf/api-document-upload',
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({
applicantId: '4242424242424x424242424242424242',
docType: 'SELFIE',
docCountryISO: 'AUS',
docFile: {
filename: 'selfie.jpg',
contents: '/9j/4AAQSkZJRgABAQAAAQABAAD...'
}
}),
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
require 'rest-client'
require 'json'
payload = {
applicantId: '4242424242424x424242424242424242',
docType: 'SELFIE',
docCountryISO: 'AUS',
docFile: {
filename: 'selfie.jpg',
contents: '/9j/4AAQSkZJRgABAQAAAQABAAD...'
}
}
response = RestClient.post('https://enterprise.personr.co/api/1.1/wf/api-document-upload', payload.to_json, {content_type: :json, accept: :json})
puts response
import requests
import json
url = 'https://enterprise.personr.co/api/1.1/wf/api-document-upload'
payload = {
'applicantId': '4242424242424x424242424242424242',
'docType': 'SELFIE',
'docCountryISO': 'AUS',
'docFile': {
'filename': 'selfie.jpg',
'contents': '/9j/4AAQSkZJRgABAQAAAQABAAD...'
}
}
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, data=json.dumps(payload), headers=headers)
print(response.text)
ID Cards
Drivers Licenses
Passports
Residence Permits
Utility Bills
Last updated