Skip to main content

Prefill by Mobile API

This document highlights the Prefill by Mobile API details.

API Description

Objective

The Prefill by Mobile API allows quick pre-filling of forms or identity verification processes by fetching the customer data based on the provided mobile number.

InputOutput
The mobile number of the userThe personal, contact, and identity details of the user associated with the mobile number

API URL

https://ind-engine.thomas.hyperverge.co/v1/prefillByMobile

API Endpoint

prefillByMobile

Overview

The 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 API.

ParameterMandatory or OptionalDescriptionAllowed Values
content-type MandatoryThis parameter defines the media type for the request payloadapplication/json
appId MandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
appKey MandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
transactionIdMandatoryA unique identifier for tracking a user journeyThis should be both unique and easily associated with the user's journey in your application(s)

Input

The following table provides the details of the parameter required for the API's request body.

ParameterDescriptionMandatory or OptionalAllowed ValuesDefault Value
mobileThe user's valid mobile numberMandatoryNot ApplicableNot Applicable

Request

The following code shows a standard curl request for the API.

curl --location --request POST 'https://ind-engine.thomas.hyperverge.co/v1/prefillByMobile' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"mobile": "<Enter_the_valid_Mobile_Number>"
}'

Success Response

The following code is a success response from the API.

{
"status": "success",
"statusCode": "200",
"result": {
"mobile": "<Masked_Mobile_Number>",
"details": {
"personal_info": {
"full_name": "<Full_Name>",
"dob": "<Date_Of_Birth_in_DD-MM-YYYY_Format>",
"gender": "<Gender>",
"total_income": "<Total_Income>",
"occupation": "<Occupation_or_Null>",
"age": "<Age>"
},
"phone_info": [
{
"reported_date": "<Reported_Date_in_DD-MM-YYYY_Format>",
"type_code": "<Type_Code>",
"number": "<Masked_Phone_Number>"
},
{
"reported_date": "<Reported_Date_in_DD-MM-YYYY_Format>",
"type_code": "<Type_Code>",
"number": "<Masked_Phone_Number>"
},
{
"reported_date": "<Reported_Date_in_DD-MM-YYYY_Format>",
"type_code": "<Type_Code>",
"number": "<Masked_Phone_Number>"
}
],
"address_info": [
{
"address": "<Full_Address>",
"state": "<State_Code>",
"type": "<Address_Type>",
"postal": "<Postal_Code>",
"reported_date": "<Reported_Date_in_DD-MM-YYYY_Format>"
},
{
"address": "<Full_Address>",
"state": "<State_Code>",
"type": "<Address_Type>",
"postal": "<Postal_Code>",
"reported_date": "<Reported_Date_in_DD-MM-YYYY_Format>"
},
{
"address": "<Full_Address>",
"state": "<State_Code>",
"type": "<Address_Type>",
"postal": "<Postal_Code>",
"reported_date": "<Reported_Date_in_DD-MM-YYYY_Format>"
},
{
"address": "<Full_Address>",
"state": "<State_Code>",
"type": "<Address_Type>",
"postal": "<Postal_Code>",
"reported_date": "<Reported_Date_in_DD-MM-YYYY_Format>"
},
{
"address": "<Full_Address>",
"state": "<State_Code>",
"type": "<Address_Type>",
"postal": "<Postal_Code>",
"reported_date": "<Reported_Date_in_DD-MM-YYYY_Format>"
}
],
"email_info": [
{
"reported_date": "<Reported_Date_in_DD-MM-YYYY_Format>",
"email_address": "<Email_Address>"
}
],
"identity_info": {
"pan_number": [
{
"id_number": "<Masked_PAN_Number>"
}
],
"passport_number": [],
"driving_license": [],
"voter_id": [],
"aadhaar_number": [
{
"id_number": "<Masked_Aadhaar_Number>"
},
{
"id_number": "<Masked_Aadhaar_Number>"
}
],
"ration_card": [],
"other_id": [
{
"id_number": "<Masked_Other_ID_Number>"
}
]
}
}
},
"metaData": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Success Response Details

ParameterTypeDescription
statusstringThe status of the request
statusCodeintegerThe HTTP status code of the request
mobilestringThe masked mobile number of the user
personal_infoobjectDetails of the user's personal information
full_namestringThe full name of the user
dobstringThe date of birth of the user in DD-MM-YYYY format
genderstringThe gender of the user
total_incomestringThe total income of the user
occupationstringThe occupation of the user
agestringThe age of the user
phone_infoarrayA list of phone numbers associated with the user
reported_datestringThe date the phone number was reported
type_codestringThe type code of the phone number- Mobile(M), Telephone(T)
numberstringThe phone number
address_infoarrayA list of addresses associated with the user
addressstringThe full address
statestringThe state code of the address
typestringThe type of address
postalstringThe postal code of the address
email_infoarrayA list of email addresses associated with the user
email_addressstringThe email address
identity_infoobjectDetails of the user's identity documents
pan_numberarrayA list of PAN card numbers
aadhaar_numberarrayA list of Aadhaar numbers
other_idarrayA list of other identification numbers
metaDataobjectMetadata related to the request, including request and transaction IDs
requestIdstringThe unique identifier for the request
transactionIdstringThe transaction ID associated with the request

Error Responses

The following are the error responses from the API:

{
"status": "failure",
"statusCode": 400,
"result": {
"data": {
"message": "Invalid mobile number"
}
}
"metaData": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Error Response Details

An error response from the API contains a failure status, with a relevant status code and error message. The following table lists all error responses.

Status CodeError MessageError Description
400Invalid mobile numberThis occurs when the input mobile number is empty , or when a digit is missed or the mobile number is in an invalid format
401Missing/Invalid credentialsThe request is either missing the mandatory appId and appKey combination or has invalid values
422Data not found in BureauThe requested information is not available in the bureau
500Internal Server ErrorPlease check the request headers or contact the HyperVerge team for resolution
503Server BusyPlease contact the HyperVerge team for resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: