Voter ID Verification

📘

Header Request

Accept : application/json
Content-Type: application/json
secret : Unique secret key (Provided by Pay2New)

Request Parameters

ParametersTypeMandatory (M), Optional (O)Description
numberStringMCustomer Voter ID number
request_idStringMUnique Reference number
optional1StringODepends on Operator
optional2StringODepends on Operator
optional3StringODepends on Operator
optional4StringODepends on Operator
customer_numberStringMCustomer Mobile number
pincodeStringMCustomer Pin code
latitudeStringMEnd Customer Latitude, Represented in
degrees with 4 digits after the decimal
longitudeStringMEnd Customer Longitude, Represented in
degrees with 4 digits after the decimal
ipStringMOnboard User IP Address
outletIdStringM Unique OutletID (Provided by Pay2New)

Sample Request

curl --location 'https://pay2new.in/apis/v1/verification/voterID' \
--header 'secret: qwertyuQWERTY12345asdf' \
--header 'Content-Type: application/json' \
--data '{
    "number": "ABCD1234E",
    "request_id": P2N54544444545,
    "optional1": "",
    "optional2": "",
    "optional3": "",
    "optional4": "",
    "customer_number": "9876543210",
    "pincode": "444444",
    "latitude": "19.1258",
    "longitude": "74.7453",
    "ip": "30.169.159.167",
    "outletId": 2
}'
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://pay2new.in/apis/v1/verification/voterID',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "number": "ABC1234E",
    "request_id":P2N54544444545,
    "optional1": "",
    "optional2": "",
    "optional3": "",
    "optional4": "",
    "customer_number": "9876543210",
    "pincode": "123456",
    "latitude": "19.1258",
    "longitude": "74.7453",
    "ip": "30.169.159.167",
    "outletId": 2
}',
  CURLOPT_HTTPHEADER => array(
    'secret: qwertyuQWERTY12345asdf',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response Parameters

ParametersTypeDescription
statusIntegerPay2New Voter Id Status
messageStringMessage from API
dataArrayVoter Id Data details
data.messageStringStatus message
data.epic_noStringVoter Id number
data.dobStringVoter Id holder date of birth
data.holder_nameStringVoter Id holder name
data.relationStringVoter Id holder Relation
data.relation_typeString
data.ageStringVoter Id holder age
data.genderStringVoter Id holder gender
data.areaStringVoter Id holder address
data.districtStringVoter Id holder district
order_idStringAPI order id

Sample Response

{
    "status": 1,
    "message": "Transaction Successful",
    "data": {
        "message": "Success",
        "epic_no": "ABC1234E",
        "dob": "",
        "holder_name": "Test",
        "relation": "Test",
        "relation_type": "F",
        "age": "26",
        "gender": "M",
        "area": "Narhe",
        "district": "Pune"
    },
    "order_id": "P2N5452534158DFOLASDF"
}

🚧

Please Note

  • Latitude and Longitude must be represented in degrees with 4 digits after decimal.
Language
Click Try It! to start a request and see the response here!