Voter ID Verification Code Examples
Identity and SecurityReady-to-run Voter ID Verification calls. Replace YOUR_API_KEY with the key from your dashboard.
Voter ID Verification — Code Samples
cURL
PHP
Fetch
jQuery
Axios
Python
curl -X POST https://app.way2api.com/api/v1/voter-id/verify \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"voter_id":"ABC1234567"}'
Expected Response — 200
{
"status": "SUCCESS",
"status_code": 200,
"charged": true,
"success": true,
"message": "",
"message_code": "OK",
"order_id": "W2A1739512345abcdef01",
"data": {
"order_id": "W2A1739512345abcdef01",
"result": {
"relation_type": "F",
"gender": "F",
"age": "32",
"epic_no": "ABC1234567",
"dob": "1992-06-15",
"relation_name": "RAMESH SHARMA",
"name": "MEERA SHARMA",
"area": "Sector 5, Dwarka",
"state": "Delhi",
"house_no": "42-B"
}
}
}