post https://pay2new.in/apis/aeps/v1/addAccount
Heading Request
secret : Unique secret key (Provided by Pay2New)
outletId: Unique OutletID (Provided by Pay2New)
Request Parameters
Parameters | Type | Mandatory (M) , Optional (O) | Description |
---|---|---|---|
account_number | String | M | Bank account number of Customer |
ifsc | String | M | Bank IFSC code |
latitude | String | M | Current location latitude |
longitude | String | M | Current location longitude |
terms_agree | String | M | It will be YES,NO |
request_id | String | M | Unique Request Number |
ip | String | M | Onboard User IP Address |
bank | String | M | Customer Bank name |
account_holder_name | String | M | Account 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
Parameters | Type | Description |
---|---|---|
status | Integer | Pay2New status code |
message | String | Message from API |
order_id | String | Pay2New Order Id |
request_id | String | Unique Transaction Id |
Sample Response
{
"status": 1,
"message": "Account registered successfully",
"order_id": "P2N5452534158DFOLASDF",
"request_id": "P2N54544444545"
}