post https://pay2new.in/apis/payout/v1/wallets
Initiate payouts to your Customers, Vendors, and Employees directly from your Bank account. Money can be sent to bank accounts (IMPS / UPI / NEFT / RTGS).
Header Request
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 | Mobile number Register with Pay2New |
amount | Integer | M | Amount to be transferred |
request_id | String | M | Unique Request number |
product_code | Integer | M | Unique Operator Code |
customer_name | String | M | Customer name |
ip | String | M | Onboard User IP Address |
latitude | String | M | Current location latitude |
longitude | String | M | Current location longitude |
Sample Request
curl --location 'https://pay2new.in/apis/payout/v1/wallets' \
--header 'secret: qwertyuQWERTY12345asdf' \
--header 'Content-Type: application/json' \
--data '{
"number": "12345678",
"amount": 10,
"request_id": "P2N54544444545",
"product_code": 266,
"customer_name": "TEST TEST",
"ip": "30.169.159.167",
"latitude": "19.1258",
"longitude": "74.7453"
}'
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://pay2new.in/apis/payout/v1/wallets',
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": "12345678",
"amount": 10,
"request_id": "P2N54544444545",
"product_code": 266,
"customer_name": "TEST TEST",
"ip": "30.169.159.167",
"latitude": "19.1258",
"longitude": "74.7453"
}',
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 API status |
message | String | Message from API |
order_id | String | Transaction Id ( If transaction otherwise it is null ) |
txn_value | String | Transaction amount |
balance | String | Wallet balance |
request_id | String | Unique request number |
bene | Array | Response Data (If Present) |
bank_reference | String | Bank reference number |
Sample Response
{
"status": 1,
"message": "Transaction Successful",
"order_id": "P2N5452534158DFOLASDF",
"txn_value": "10.00",
"balance": "8963.80",
"request_id": "P2N54544444545",
"bene": {
"account": "123456789123456",
"name": ""
},
"bank_reference": "1234567890123"
}
Note:
- Latitude and Longitude must be represented in degrees with 4 digits after decimal.