Initiate payouts to your Customers, Vendors, and Employees directly from your Pay2New Account. Money can be sent to bank accounts (IMPS / UPI / NEFT / RTGS), and Wallets (Paytm, Amazon Pay). This API cannot be used for DMT use cases.
Header Request
Accept : application/json
Content-Type: application/json
secret : Unique secret key (Provided by Pay2New)
outletId: Unique OutletID (Provided by Pay2New)
Request Parameters
Parameters | Type | Mandatory (M), Optional (O) | Description |
---|---|---|---|
number | String | M | Bank Account Number |
ifsc | String | M | Bank IFSC Code |
amount | String | M | Transaction Amount |
request_id | String | M | Unique Reference number |
customer_name | String | M | Beneficiary Name |
latitude | String | M | End Customer Latitude, Represented in degrees with 4 digits after the decimal |
longitude | String | M | End Customer longitude, Represented in degrees with 4 digits after the decimal |
product_code | String | M | Unique Operator Code |
remark | String | O | Payment Remark |
ip | String | M | Onboard User IP Address |
Sample Request
curl --location 'https://pay2new.in/apis/payout/v1/bankaccount' \
--header 'secret: qwertyuQWERTY12345asdf' \
--header 'outletId;' \
--header 'Content-Type: application/json' \
--data '{
"number": "123456789123456",
"ifsc": "ABC123456",
"amount":5000,
"request_id": "P2N54544444545",
"customer_name": "Test",
"latitude": "29.1258",
"longitude": "24.7453",
"product_code": 261,
"remark":"Salary Payment",
"ip": "30.169.159.167"
}'
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://pay2new.in/apis/payout/v1/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 =>'{
"number": "123456789123456",
"ifsc": "ABC123456",
"amount":5000,
"request_id": "P2N54544444545",
"customer_name": "Test",
"latitude": "29.1258",
"longitude": "24.7453",
"product_code": 261,
"remark":"Salary Payment",
"ip": "30.169.159.167"
}',
CURLOPT_HTTPHEADER => array(
'secret: qwertyuQWERTY12345asdf',
'outletId: ',
'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 Ac. 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": "500.00",
"balance": "100821.67",
"request_id": "P2N54544444545",
"bene": {
"account": "123456789123456",
"name": "Test"
},
"bank_reference": "1234567890123"
}
Note:
1 - Latitude and Longitude must be represented in degrees with 4 digits after decimal.
2- externalRef must be unique and in alpha numeric characters.
3- Remarks should be in alphabet and it can be of maximum 20 characters.
4- Consider the Transaction as Pending when you get No Response or Timeout Response and then check the status of the transactions through Transaction Status API.