Description

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.

Parameters

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: CIE. CIE

Implementation

Consultation

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 {
 notFou const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}

Response 200 - (Successful query)

{
    "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"
}

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 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: [CIE]"
}