Settlement Add Account

📘

Heading Request

secret : Unique secret key (Provided by Pay2New)
outletId: Unique OutletID (Provided by Pay2New)

Request Parameters

ParametersTypeMandatory (M) , Optional (O)Description
account_numberStringMBank account number of Customer
ifscStringMBank IFSC code
latitudeStringMCurrent location latitude
longitudeStringMCurrent location longitude
terms_agreeStringMIt will be YES,NO
request_idStringMUnique Request Number
ipStringMOnboard User IP Address
bankStringMCustomer Bank name
account_holder_nameStringMAccount holder name

Sample Request

cUrl
curl --location 'https://pay2new.in/apis/aeps/v1/addAccount' \
--header 'secret: qwertyuQWERTY12345asdf' \
--header 'Content-Type: application/json' \

--data '{
  "account_number": "123456789123456",
    "ifsc": "ABC123456",
    "latitude": "19.1258",
    "longitude": "74.7453",
    "terms_agree": "Y",
    "request_id": "P2N54544444545",
    "ip": "30.169.159.167",
    "bank": "Paytm Payment Banks",
    "account_holder_name": "Test"
}'
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://pay2new.in/apis/aeps/v1/addAccount',
  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": "123456789123456",
    "ifsc": "ABC123456",
    "latitude": "19.1258",
    "longitude": "74.7453",
    "terms_agree": "Y",
    "request_id": "P2N54544444545",
    "ip": "30.169.159.167",
    "bank": "Paytm Payment Banks",
    "account_holder_name": "Test"
}',
  CURLOPT_HTTPHEADER => array(
    'secret: qwertyuQWERTY12345asdf',
    'Content-Type: application/json',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response Parameters

ParametersTypeDescription
statusIntegerPay2New status code
messageStringMessage from API
order_idStringPay2New Order Id
request_idStringUnique Transaction Id

Sample Response

{
    "status": 1,
    "message": "Account registered successfully",
    "order_id": "P2N5452534158DFOLASDF",
    "request_id": "P2N54544444545"
}
Language
Click Try It! to start a request and see the response here!