The Chilean document validation service allows users to verify the validity status of Chilean identification documents. By providing the document type and number, users can check if the document is currently valid. The response includes details such as the document number, type (e.g., RUN - National Unique Role), serial number, and status (e.g., 'Not Valid').

To use this service in a graphical interface, we invite you to access our client panel at Verifik.

Parameters

Name Type ¿Required? Description Example
documentType String True Document type. Allowed parameter: RUN, RUT. RUT
documentNumber String True Document number of the person to consult without spaces. 212957739

Implementation

Request

import axios from 'axios';

const options = {
  method: 'GET',
  url: '<https://api.verifik.co/v2/cl/validate/documents>',
  params: {documentType: 'RUT', documentNumber: '212957739', serialNumber:'102814050'},
  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": {
        "documentNumber": "12.345.678-9",
        "documentType": "RUN",
        "serialNumber": "102814050",
        "status": "No Vigente"
    },
    "signature": {
        "dateTime": "April 11, 2024 7:46 PM",
        "message": "Certified by Verifik.co"
    },
    "id": "249BB"
}

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"
}
409 Conflict Invalid documentType for this query. {
"code": "MissingParameter",
"message": "documentType must be one of: [RUT]"
}