post https://pay2new.in/apis/v1/verification/pan
PAN verification service which returns the details of a PAN and status by inputting the Permanent Account Number of an individual or a business. Usage is restricted to the guidelines and use-cases defined by the competent authority and subletting it not allowed.
Header Request
Accept : application/json
Content-Type: application/json
secret : Unique secret key (Provided by Pay2New)
Request Parameters
Parameters | Type | Mandatory (M) , Optional (O) | Description |
---|---|---|---|
number | String | M | PAN number of End User |
latitude | String | M | Current location latitude |
longitude | String | M | Current location longitude |
request_id | String | M | Unique Reference number |
optional1 | String | O | Depends on Operator |
optional2 | String | O | Depends on Operator |
optional3 | String | O | Depends on Operator |
optional4 | String | O | Depends on Operator |
customer_number | String | M | User Mobile Number |
pincode | String | M | User Pin Code |
ip | String | M | Onboard User IP Address |
outletId | Number | M | Unique Outlet Id of Customer |
Sample Request
curl --location 'https://pay2new.in/apis/v1/verification/pan' \
--header 'secret: qwertyuQWERTY12345asdf' \
--header 'Content-Type: application/json' \
--data '{
"number": "ABCDE1234F",
"request_id": P2N54544444545,
"optional1": "",
"optional2": "",
"optional3": "",
"optional4": "",
"customer_number": "9876543210",
"pincode": "414002",
"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/pan',
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": "ABCDE1234F",
"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
Name | Type | Description |
---|---|---|
status | Integer | Pay2New Transaction Status |
message | String | Message from API |
data | Array | Response Data (If Present) |
data.pan_number | String | Pan Holders Pan Number |
data.registered_name | String | Pan Holders Name |
data.father_name | String | Pan Holders Father Name |
data.pan_type | String | Type of Pan Card Holder |
order_id | String | Transaction Id ( If transaction otherwise it is null ) |
Sample Response
{
"status": 1,
"message": "Transaction Successful",
"data": {
"pan_number": "ABCDE1234F",
"registered_name": "TEST",
"father_name": "",
"pan_type": ""
},
"order_id": "P2N5452534158DFOLASDF"
}
Note:
- Latitude and Longitude must be represented in degrees with 4 digits after decimal.