Bank Account Verification

📘

Header Request

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

Request Parameters

ParametersTypeMandatory (M) , Optional (O)Description
account_numberStringMAccount Number to Verify
ifscStringMBank IFSC
latitudeStringMEnd Customer Latitude, Represented in
degrees with 4 digits after decimal
longitudeStringMEnd Customer longitude, Represented in
degrees with 4 digits after decimal
request_idStringMUnique Reference number
terms_agreeStringMIt will be YES,NO
ipStringMOnboard User IP Address
product_codeStringMUnique 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

ParametersTypeDescription
statusIntegerPay2New Transaction Status
messageStringMessage from API
order_idStringPay2New Order Id
txn_valueStringTransaction Amount
balanceStringAPI Account balance
request_idStringYour Unique Transaction Id
beneArrayResponse Data (If Present)
bene.accountStringAccount Holder Acc Number
bene.nameStringAccount Holder Name
bank_referenceStringBank 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"
}
Language
Click Try It! to start a request and see the response here!