🇩🇴Dominican Republic
Service to consult citizens of the Dominican Republic using the CIE (Identity and Electoral Card).
Dominican Republic Citizen Information
GET - https://api.verifik.co/v2/do/cedula
This Dominican Republic endpoint allows you to verify the validity of a Dominican ID using the CIE document type and the document number provided.
To use this service in a graphical interface, we invite you to enter our Verifik client panel.
Implementation
Headers
Query Parameters
Name
Type
Required?
Description
Example
Document number of the person to consult.
Type of document to consult. Allowed parameter: CIE.
Request
import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/do/cedula>',
params: { documentNumber: '123456789', documentType:'CIE'},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
payload = ''
headers = {}
conn.request("GET", "/v2/do/cedula?documentNumber=123456789&documentType=CIE", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/do/cedula?documentNumber=123456789&documentType=CIE")!,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()
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.verifik.co/v2/do/cedula?documentNumber=123456789&documentType=CIE');
$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
{
"data": {
"arrayName": [
"MATEO",
"VERIFIK"
],
"documentNumber": "12345678909876",
"documentType": "CIE",
"firstName": "MATEO",
"fullName": "MATEO VERIFIK",
"lastName": "VERIFIK"
},
"signature": {
"dateTime": "July 3, 2024 3:24 PM",
"message": "Certified by Verifik.co"
},
"id": "YOESE"
}
{
"code": "NotFound",
"message": "Record not found.",
"signature": {
"dateTime": "August 31, 2022 3:24 PM",
"message": "Certified by Verifik.co"
}
}
{
"code": "MissingParameter",
"message": "missing documentType\n. missing documentNumber\n"
}
{
"code": "MissingParameter",
"message": "documentType must be one of: [CIE]"
}