Overview of the aadhaar_verification objects.
Shown below is a sample aadhaar_verification object.
{
"id": "adh_qIohl1X1bxW9wrMoyK1M5tUo9",
"object": "aadhaar_verification",
"type": "otp",
"message": "Aadhaar XML file downloaded successfully",
"status": "success",
"name": "Anil Reddy",
"aadhaar_number": "XXXXXXXX0000",
"date_of_birth": "1987-09-28",
"gender": "M",
"father_name": null,
"address": "Sunil Reddy, 211B Baker Street, Bangalore - 560005",
"postal_code": "560005",
"state": "Karnataka",
"state_code": "KA",
"city": "bangalore urban",
"remark": null,
"merchant_reference_id": "1000116",
"consent": true,
"is_sandbox": false
}
The table below lists the various parameters in the aadhaar_verification object.
| Parameter | Type | Description |
|---|---|---|
| id | string | Unique identifier of the Aadhaar verification request in the ZWITCH database. Example: adh_aZbYCc8W97FtiaN4yIWDtl4ZB |
| object | string | API object that is returned. Possible value: aadhaar_verification |
| type | string | The type of Aadhaar Verification you want to perform. Possible value: otp |
| message | string | The result of the API call. Example: OTP sent to registered mobile number |
| status | string | Send OTP API:
Verify Aadhaar API:
Check the message parameter to know the success or failure reason. |
| name | string |
Example: Anil Reddy |
| aadhaar_number | string | Aadhaar number being verified. Example: 340000000000 |
| date_of_birth | string | Aadhaar holder's date of birth as per the Aadhaar database. Possible format: YYYY-MM-DDHas to be 10 characters. Example: 1987-12-31Supported characters:
|
| gender | string | Aadhaar holder's gender as per the Aadhaar database. Possible values:
|
| father_name | string | Aadhaar holder's father's name as per the Aadhaar database. Example: Sunil Reddy |
| address | string | Aadhaar holder's permanent address as per the Aadhaar database. Example: 221B Baker Street |
| postal_code | string | Aadhaar holder's postal code as per the Aadhaar database. Example: 560005 |
| state | string | Aadhaar holder's state as per the Aadhaar database. Example: Karnataka |
| state_code | string | Aadhaar holder's state code as per the Aadhaar database. Example: KA |
| city | string | Aadhaar holder's city as per the Aadhaar database. Example: Bangalore |
| remark | string |
|
| merchant_reference_id | string | Unique identifier entered when creating the verification request.
Example: 14096850 |
| consent | boolean | Consent of the individual to get their details from the Aadhaar database. Possible value: true |
| created_at | integer | Unix timestamp when ZWITCH received the request. Example: 1640179951 |
| is_sandbox | boolean | The mode in which the API was triggered. Possible values:
|