🇵🇪Peruvian Citizen

Service to query Peruvian citizens using government ID issued in Peru.

Peruvian Citizen Information

GET - https://api.verifik.co/v2/pe/cedula

The Peruvian Foreigner ID Verification service allows you to verify the identity of a foreign resident in Peru using their foreigner ID number. This service returns personal information, such as full name, date of birth, and residence details, along with a signature to certify the authenticity of the response.

Implementation

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Query Parameters

NameTypeRequired?DescriptionExample

documentType

String

True

Document type. Allowed value: DNI.

DNI

documentNumber

String

True

Document number of the person to be queried.

123456789

Request

import axios from 'axios';

const options = {
  method: 'GET',
  url: '<https://api.verifik.co/v2/pe/cedula>',
  params: {documentType: 'DNI', documentNumber: '1234567'},
  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": {
    "documentType": "DNI",
    "documentNumber": "1234567",
    "fullName": "MATEO VERIFIK",
    "firstName": "MATEO",
    "lastName": "VERIFIK",
    "arrayName": [
      "MATEO",
      "VERIFIK"
    ]
  },
  "signature": {
    "dateTime": "July 19, 2022 2:48 PM",
    "message": "Certified by Verifik.co"
  }
}

Last updated