The Bolivian Citizen Identification service allows you to retrieve basic information about a Bolivian citizen based on their national ID number and date of birth. The service returns the name of the person associated with the provided document, helping to verify the authenticity of the identity information provided.
Parameters
Name |
Type |
¿Required? |
Description |
Example |
documentType |
String |
True |
Document type. Valid parameter: CI. |
CI |
documentNumber |
String |
True |
Document number of the person to consult. |
123456789 |
dateOfBirth |
String |
True |
Date of birth of the person to consult, valid format: dd/mm/yyyy. |
27/03/1978 |
Implementation
Request
import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/bo/cedula>',
params: {documentType: 'CI', documentNumber: '123456789',dateOfBirth:'27/03/1978'},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
}
};
try {
notFou const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Response 200 - (Successful reponse)
{
"data": {
"arrayName": [
"LIDIA",
"IRIARTE",
"TORREZ"
],
"dateOfBirth": "1978-03-27",
"documentNumber": "1234567",
"documentType": "CI",
"firstName": "MATEO",
"fullName": "MATEO VERIFIK",
"lastName": "VERIFIK"
},
"signature": {
"dateTime": "May 11, 2023 6:17 PM",
"message": "Certified by Verifik.co"
}
}
Other Responses
|
Code |
Description |
Response Body |
404 |
Not Found |
Information not found. |
{ |
"code": "NotFound", |
|
|
|
"message": "Record not found.", |
|
|
|
"signature": { |
|
|
|
"dateTime": "August 31, 2022 3:24 PM", |
|
|
|
"message": "Certified by Verifik.co" |
|
|
|
} |
|
|
|
} |
|
|
|
409 |
Conflict |
Some parameters are missing. |
{ |
"code": "MissingParameter", |
|
|
|
"message": "missing documentType\n. missing documentNumber\n. missing dateOfBirth\n" |
|
|
|
} |
|
|
|
409 |
Conflict |
Invalid documentType for this query. |
{ |
"code": "MissingParameter", |
|
|
|
"message": "documentType must be one of: [CI]" |
|
|
|
} |
|
|
|
|
|
|
|
409 |
Conflict |
Invalid dateOfBirth format. |
{ |
"code": "MissingParameter", |
|
|
|
"message": "dateOfBirth format required: DD/MM/YYYY\n" |
|
|
|
} |
|
|
|