🇨🇱Validate Chilean document

Service to validate if a Chilean document is still valid.

Validate Chilean document

GET - https://api.verifik.co/v2/cl/validate/documents

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.

Implementation

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body

NameType¿Required?DescriptionExample

documentType

String

True

Document type. Allowed parameter: RUN, RUT.

RUT

documentNumber

String

True

Document number of the person to consult without spaces.

212957739

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

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

Last updated