post https://pay2new.in/apis/v1/verification/bankAccount
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 |
---|---|---|---|
account_number | String | M | Account Number to Verify |
ifsc | String | M | Bank IFSC |
latitude | String | M | End Customer Latitude, Represented in degrees with 4 digits after decimal |
longitude | String | M | End Customer longitude, Represented in degrees with 4 digits after decimal |
request_id | String | M | Unique Reference number |
terms_agree | String | M | It will be YES,NO |
ip | String | M | Onboard User IP Address |
product_code | String | M | Unique Operator Code |
Sample Request
curl --location 'https://pay2new.in/apis/v1/verification/bankAccount' \
--header 'secret: qwertyuQWERTY12345asdf' \
--header 'Content-Type: application/json' \
--data '{
"account_number": "123456789012345",
"ifsc": "PYTM0123456",
"latitude": "19.1258",
"longitude": "74.7453",
"terms_agree": "Y",
"product_code": "281",
"request_id": "P2N54544444545",
"ip": "30.169.159.167"
}'
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://pay2new.in/apis/v1/verification/bankAccount',
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 =>'{
"account_number": "123456789012345",
"ifsc": "PYTM0123456",
"latitude": "19.1258",
"longitude": "74.7453",
"terms_agree": "Y",
"product_code": "281",
"request_id": "P2N54544444545",
"ip": "30.169.159.167"
}',
CURLOPT_HTTPHEADER => array(
'secret: qwertyuQWERTY12345asdf=',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Response Parameters
Parameters | Type | Description |
---|---|---|
status | Integer | Pay2New Transaction Status |
message | String | Message from API |
order_id | String | Pay2New Order Id |
txn_value | String | Transaction Amount |
balance | String | API Account balance |
request_id | String | Your Unique Transaction Id |
bene | Array | Response Data (If Present) |
bene.account | String | Account Holder Acc Number |
bene.name | String | Account Holder Name |
bank_reference | String | Bank Ref Number |
Sample Response
{
"status": 1,
"message": "Transaction Successful",
"order_id": "P2N5452534158DFOLASDF",
"txn_value": "1.00",
"balance": "19540.88",
"request_id": "P2N54544444545",
"bene": {
"account": "123456789012345",
"name": "Test"
},
"bank_reference": "1234567890123"
}