The Argentine citizen information service allows developers to verify the authenticity of an Argentine identification card (Documento Nacional de Identidad, or DNI) by providing the DNI number. The service returns information such as the person's full name, first and last name separately, and the DNI number.
This information can be used for a variety of purposes, such as verifying the identity of a customer or validating the information provided by a user.
Name | Type | ¿Required? | Description | Example |
---|---|---|---|---|
documentType | String | True |
Document type. Allowed parameter: DNIAR. | DNIAR |
documentNumber | String | True |
Document number of the person to consult without spaces. | 123456789 |
import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/ar/cedula>',
params: {documentType: 'DNIAR', documentNumber: '123456789'},
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": {
"documentType": "CCAR",
"documentNumber": "123456789",
"fullName": "MATEO VERIFIK",
"firstName": "MATEO",
"lastName": "VERIFIK",
"arrayName": [
"MATEO",
"VERIFIK"
]
},
"signature": {
"dateTime": "April 11, 2023 12:25 PM",
"message": "Certified by Verifik.co"
}
}
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" | |||
} | |||
409 |
Conflict | Invalid documentType for this query. | { |
"code": "MissingParameter", | |||
"message": "documentType must be one of: [DNIAR]" | |||
} |