Verify Account

This API verify whether the Mobile number or Aadhaar number has an account on Digilocker or not.

Header Parameters

NameTypeDescriptionMandatory/ OptionalProvided by Instantpay (Y/N)
X-Ipay-Auth-CodeStringAuth Code:"1" (Fixed)MY
X-Ipay-Client-IdStringUnique Client Id Provided by InstantpayMY
X-Ipay-Client-SecretStringUnique Client Secret Provided by InstantpayMY
X-Ipay-Endpoint-IpStringEnd customer IP AddressMN

Request Parameters

Parameter NameTypeRequirementDescription
externalRefStringMandatoryYour Unique Transaction id
mobileStringOptional(Enter either aadhaar or mobile )User's mobile number
aadhaarNumberStringOptional(Enter either aadhaar or mobile )User's aadhaar nummber (encrypted in aes-256 format)
latitudeStringMandatoryEnd Customer Latitude.
longitudeStringMandatoryEnd Customer Longitude.

Sample Request

postman request POST 'https://api.instantpay.in/identity/digiLocker/verifyAccount' \
  --header 'X-Ipay-Auth-Code: 1' \
  --header 'X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOfh549Gzt+5IEcETrD5Yx+Q=' \
  --header 'X-Ipay-Client-Secret: 82e4755d7c1cf636816addfe1460936d7b64612208df87f3000aa5b56fc926d1' \
  --header 'X-Ipay-Endpoint-Ip: 14.142.186.142' \
  --header 'Content-Type: application/json' \
  --body '{
    "externalRef" : "Ida",
    "latitude" : "23.1117",
    "longitude" : "-75.9203",
    "mobile" : "7845682533",
    "aadhaarNumber" : ""

}'
POST /identity/digiLocker/verifyAccount HTTP/1.1
Host: api.instantpay.in
X-Ipay-Auth-Code: 1
X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOfh549Gzt+5IEcETrD5Yx+Q=
X-Ipay-Client-Secret: 679db35f926b8d0240a8c0d28729528ee8e6d5effa5fa0b20c04454004d2d825
X-Ipay-Endpoint-Ip: 14.142.186.142
Content-Type: application/json
Content-Length: 120

{
    "externalRef" : "{{$randomFirstName}}",
    "latitude" : "{{$randomLatitude}}",
    "longitude" : "{{$randomLongitude}}",
    "mobile" : "7845682533",
    "aadhaarNumber" : ""

}

Sample Response

{
    "statuscode": "TXN",
    "actcode": null,
    "status": "Success",
    "data": {
        "referenceId": "692d11fa5c461321af0c2b24",
        "url": "https://digilocker.meripehchaan.gov.in/public/oauth2/1/authorize?response_type=code&client_id=CG588133FF&state=6ZNRGW02YVLRZZQ8189590&code_challenge=iT3YRzzReBvRltA5X-wPufW_wsF21VdxG0z_W60a5ss&code_challenge_method=S256&redirect_uri=https%3A%2F%2Fapi.instantpay.in%2Fwebhook%2F1d482482-c9ee-11f0-884b-0a6bb253fa0b&dl_flow=signup&scope=files.issueddocs+userdetails+email+careof+address+picture",
        "status": "PENDING"
    },
    "timestamp": "2025-12-01 09:26:42",
    "ipay_uuid": "h000a07c658e-fd48-4732-8a3a-f46485e52380-VCjknIK9YgFD",
    "orderid": null,
    "environment": "LIVE",
    "internalCode": null
}

Language
Click Try It! to start a request and see the response here!