Identity validation🇨🇴 Colombia🇨🇴 Special Stay Permit (PEP) IDService to check foreigners using the special residence permit.
Special Stay Permit (PEP) ID Data Retrieval
GET - https://api.verifik.co/v2/co/foreigner-id/pep
The Special Stay Permit (PEP) ID Data Retrieval service provides a streamlined solution for accessing verified information from PEP (Permiso Especial de Permanencia) identification cards in Colombia. This service simplifies the retrieval of authenticated PEP-related data, making it easier to conduct identity verification and ensure compliance with various regulations.
Implementation
Headers
Query Parameters
Name
Type
¿Required?
Description
Example
Document number of the person to consult, without spaces or periods.
Date when the document was generated.
Request
JavaScript Python Swift PHP
Copy import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/co/foreigner-id/pep>',
params: {expeditionDate: '10/10/2024', documentNumber: '123456789'},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Copy import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
payload = ''
headers = {}
conn.request("GET", "/v2/co/foreigner-id/pep?documentNumber=123456789&expeditionDate=10/10/2024", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Copy var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/co/foreigner-id/pep?documentNumber=123456789&expeditionDate=10%2F10%2F2024")!,timeoutInterval: Double.infinity)
request.httpMethod = "GET"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()
Copy <?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.verifik.co/v2/co/foreigner-id/pep?documentNumber=123456789&expeditionDate=10/10/2024');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
'follow_redirects' => TRUE
));
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
Response
200 404 409
Copy {
"data": {
"arrayName": [
"MATEO",
"VERIFIK"
],
"documentNumber": "123456789012345",
"documentType": "PEP",
"expirationDate": "08/08/2018",
"firstName": "MATEO",
"fullName": "MATEO VERIFIK",
"identification": "17609583",
"lastName": "VERIFIK",
"status": "VENCIDO"
},
"signature": {
"dateTime": "August 22, 2023 8:02 PM",
"message": "Certified by Verifik.co"
},
"id": "tnlkb"
}
Copy {
"code": "NotFound",
"message": "Record not found.",
"signature": {
"dateTime": "August 31, 2022 3:24 PM",
"message": "Certified by Verifik.co"
}
}
Copy {
"code": "MissingParameter",
"message": "missing date\n. missing documentNumber\n"
}
Last updated 2 months ago