This service allows you to verify the validity of a Honduran ID card by providing the document type DNIHN and the document number. The response confirms the validity of the ID and provides relevant details associated with the document.
To use this service in a graphical interface, we invite you to enter our Verifik client panel.
Name | Type | Required? | Description | Example |
---|---|---|---|---|
documentNumber | String | True |
Document number of the person to consult. | 123456789 |
documentType | String | True |
Type of document to consult. Allowed parameter: DNIHN. | DNIHN |
import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/hn/cedula>',
params: { documentNumber: '123456789', documentType:'DNIHN'},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
}
};
try {
notFou const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
{
"data": {
"arrayName": [
"MATEO",
"VERIFIK"
],
"documentNumber": "1234567899876",
"documentType": "DNIHN",
"firstName": "MATEO",
"fullName": "MATEO VERIFIK",
"lastName": "VERIFIK"
},
"signature": {
"dateTime": "July 10, 2024 5:16 PM",
"message": "Certified by Verifik.co"
},
"id": "303NP"
}
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 parameter needs to be supplied | { |
"code": "MissingParameter", | |||
"message": "missing documentType\n. missing documentNumber\n" | |||
} | |||
409 |
Conflict | Invalid document type for this query. | { |
"code": "MissingParameter", | |||
"message": "documentType must be one of: [DNIHN]" | |||
} |