Skip to main content

Central Database Check API

This document outlines the details of the Central Database Check API.

API Description

Objective

The Central Database Check API validates a user's information against their record retrieved from central government databases for the following OVDs (Officially Valid Documents). Each OVD type is verified against a specific database.

  • PAN (Income Tax Department)
  • Voter ID (Election Commission of India - ECI)
  • Passport (Ministry of External Affairs - MEA)
  • Driving License (Ministry of Road Transport and Highways - VAHAN/Sarathi)
InputOutput
The input fields vary with the OVD in the request. The mandatory input fields corresponding to each OVD type are mentioned under the Inputs section.The output fields vary corresponding to the requested OVD details. The output fields corresponding to each OVD type are mentioned under the Success Response Details section.

API URL

https://ind-verify.hyperverge.co/api/centralDBCheck

API Endpoint

centralDBCheck

Overview

The Central Database Check API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format, and you should upload all images and files as form-data through a POST request.

Authentication

You need a unique pair of application ID (appId) and application key (appKey) from HyperVerge to verify your identity for accessing the Central Database Check API.

API Request Details

Method - POST

Headers

HeaderMandatory / OptionalDescriptionInput Format
content-typeMandatoryThis parameter defines the media type for the request payloadapplication/json
appIdMandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.Not Applicable - this is a unique value
appKeyMandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.Not Applicable - this is a unique value
transactionIdMandatoryA unique identifier for tracking a user journeyNot Applicable - this should be both unique and easily associated with the user's journey in your application(s)

Inputs

The following table provides the details of the parameters required for the Central Database Check API's request body:

ParameterMandatory / OptionalTypeDescriptionInput FormatDefault Value
idTypeMandatorystringThe type of identification document being verifiedpan, voterid, passport, or dlNot Applicable
idNumberMandatory (for PAN, Voter ID, and Driving License)stringThe unique identification number printed on the respective document. Not required when idType is passport.Not ApplicableNot Applicable
fileNumberMandatory (only when idType is passport)stringThe Passport Reference File Number (PRFN) found on the last page of the passport booklet. This is distinct from the actual passport number.Not ApplicableNot Applicable
dobMandatory (only for passport and dl)stringThe date of birth of the user, as mentioned in the OVDDD-MM-YYYYNot Applicable

Request

The following are the cURL requests with expected parameters corresponding to each OVD:

curl --location --request POST 'https://ind-verify.hyperverge.co/api/centralDBCheck' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"idType": "pan",
"idNumber": "<Enter_PAN_Number>"
}'

Success Response

The following are the success responses for the supported OVD types:

{
"status": "success",
"statusCode": "200",
"result": {
"details": {
"name": "<User_Name>"
},
"summary": {
"action": "pass",
"details": []
}
}
}

Success Response Details

The following table lists all the success response fields returned across the four OVD documents:

ParameterTypeDescription
statusstringThe status of the Central Database Check API response
statusCodestringThe HTTP status code indicating the result of the request
resultobjectThe main object containing the response details and summary
detailsobjectAn object containing specific details related to the document being verified
namestringThe name of the individual as per the document
idNumberstringThe unique identifier number on the document
rln_namestringThe name of the relative as per the Voter ID
rln_typestringThe relationship type of the relative. Returns single-character codes representing the relationship. The following list defines what each character code represents:
  • F → Father
  • M → Mother
  • H → Husband
  • W → Wife
  • O → Other
genderstringThe gender of the individual
districtstringThe district name as per the Voter ID
ac_namestringThe name of the assembly constituency
pc_namestringThe name of the parliamentary constituency
statestringThe state name as per the document
dobstringThe date of birth of the individual
ageintegerThe age of the individual
issue_datestringThe issue date of the Driving License
blood_groupstringThe blood group of the individual as per the Driving License
validityobjectAn object containing the validity details of the Driving License
transportstringThe validity of the license for transport vehicles
non-transportstringThe validity of the license for non-transport vehicles
cov_detailsarrayAn array containing the class of vehicles and their issue dates
addressstringThe address of the individual as per the Driving License
givenNamestringThe given name of the individual as per the passport
surNamestringThe surname of the individual as per the passport
doistringThe date of issue of the passport
applicationDatestringThe application date of the passport
typeOfApplicationstringThe type of passport application
summaryobjectAn object containing the summary of the verification
actionstringThe action derived from the verification result

Error Responses

The following are some error responses from the Central Database Check API:

{
"status": "failure",
"statusCode": "400",
"result": {
"error": "idType should be one of [pan, voterid, passport, dl]",
"summary": {
"action": "fail",
"details": [
{
"code": "111",
"message": "Invalid id type"
},
{
"code": "110",
"message": "Database check failed"
}
]
}
}
}

Error Response Details

A failure or error response from the Central Database Check API contains a failure status with a relevant status code and error message. The following table lists all error responses:

Status CodeError MessageError DescriptionError Resolution
400idType should be one of [pan, voterid, passport, dl]The request has an invalid idType inputProvide a valid idType value: pan, voterid, passport, or dl
401Missing/Invalid credentialsThe request is either missing the mandatory appId and appKey combination or has invalid valuesProvide valid appId and appKey in the request headers. Check the dashboard's credentials tab
403Access DeniedThe provided credentials do not have access to this APIContact the HyperVerge team for resolution
422Entered id is not found in any databaseThe provided idNumber or fileNumber has no matching record in the databaseVerify that the provided document number is correct and corresponds to an existing record
429Too many requestsYou have exceeded the configured limit on the number of transactions permitted in a minuteContact the HyperVerge team to review your rate limit configuration
500Internal Server ErrorThere is an issue with the service. Kindly contact the HyperVerge Team for support.Contact the HyperVerge team for investigation and resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: