Description
This Uruguay service allows you to verify the validity of a Uruguayan ID card using the document type CCUY and the provided document number. In addition to validating the document, you can obtain detailed information such as the full name, first names, and last names of the person associated with the given document number.
Parameters
Name |
Type |
Required? |
Description |
Example |
documentNumber |
String |
True |
Document number of the person to be consulted. |
123456789 |
documentType |
String |
True |
Type of document to consult. Allowed parameter: CCUY. |
CUI |
Implementation
Request
import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/uy/cedula>',
params: { documentNumber: '123456789', documentType:'CCUY'},
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 response)
{
"data": {
"arrayName": [
"MATEO",
"VERIFIK"
],
"documentNumber": "12345678909876",
"documentType": "CCUY",
"firstName": "MATEO",
"fullName": "MATEO VERIFIK",
"lastName": "VERIFIK"
},
"signature": {
"dateTime": "July 3, 2024 3:24 PM",
"message": "Certified by Verifik.co"
},
"id": "YOESE"
}
Other responses
|
Code |
Description |
Response Body |
404 |
Not Found |
Not Found. |
{ |
"code": "NotFound", |
|
|
|
"message": "Record not found.", |
|
|
|
"signature": { |
|
|
|
"dateTime": "August 31, 2022 3:24 PM", |
|
|
|
"message": "Certified by Verifik.co" |
|
|
|
} |
|
|
|
} |
|
|
|
409 |
Conflict |
Missing params. |
{ |
"code": "MissingParameter", |
|
|
|
"message": "missing documentType\n. missing documentNumber\n" |
|
|
|
} |
|
|
|
409 |
Conflict |
Invalid documentType for this service. |
{ |
"code": "MissingParameter", |
|
|
|
"message": "documentType must be one of: [CCUY]" |
|
|
|
} |
|
|
|