Digilocker 2.0 Verify Account
Introduction
Our Verify Account API efficiently assesses the presence of a Digilocker account linked to a provided Aadhar number. If such an account is found, the API responds with a "true" status and also presents the associated digilockerid, offering a seamless way to validate and retrieve user-specific Digilocker details.
API details
Endpoint
POST https://api.signzy.app/api/v3/digilocker-v2/verifyAccountPOST https://api-preproduction.signzy.app/api/v3/digilocker-v2/verifyAccountRequest headers
Name | Value | Required | Description |
|---|---|---|---|
Content-Type | application/json | Mandatory | The type of content that the request body contains. |
Authorization | XXXXXXXXXXXXXXX | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |
Request body parameter
Parameter | Data Type | Description | Required |
|---|---|---|---|
aadhaarNumber | String | Aadhaar number which is being verified. | Conditionally Mandatory |
mobileNumber | String | The mobile number which is being verified | Conditionally Mandatory |
One of aadhaarNumber or mobileNumber needs to be passed while making the API call.
{
"aadhaarNumber" : "000000000000"
}Code samples
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api-preproduction.signzy.app/api/v3/digilocker-v2/verifyAccount"
method := "POST"
payload := strings.NewReader(`{
"aadhaarNumber" : "000000000000"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "<Your Access Token>")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}Response body parameters
Parameter | Data Type | Description |
|---|---|---|
result | Object | Contains the result of the task being performed. |
result.registered | Boolean | Indicates whether the provided Aadhaar number is registered with digilocker. “true” if the Aadhaar number is registered with digilocker. Else “false”. |
result.digilockerid | String | The Digilocker ID associated with the provided Aadhaar number. This is provided only if the aadhaar is registered with Digilocker. |
// Invalid mobile number
{
"error": {
"reason": "VALIDATION_ERROR",
"status": 400,
"message": "Invalid mobile number",
"type": "Bad Request",
"statusCode": 400,
"name": "error"
}
}
// Invalid Aadhaar number
{
"error": {
"reason": "VALIDATION_ERROR",
"status": 400,
"message": "Invalid aadhaar number",
"type": "Bad Request",
"statusCode": 400,
"name": "error"
}
}Contact Us for Any Assistance
If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at [email protected]. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.
We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!