UPI Payment

Initiate payouts to your Customers, Vendors, and Employees directly from your Bank account through UPI VPA

📘

Header Request

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

Request Parameters

ParametersTypeMandatory (M), Optional (O)Description
numberStringMBank Account Number
amountStringMTransaction Amount
request_idStringMUnique Reference number
customer_nameStringMBeneficiary Name
latitudeStringMEnd Customer Latitude, Represented in
degrees with 4 digits after the decimal
longitudeStringMEnd Customer longitude, Represented in
degrees with 4 digits after the decimal
product_codeStringMUnique Operator Code
remarkStringOPayment Remark
ipStringMOnboard 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": "123456@upi",
    "amount":5000,
    "request_id": "1683116662",
    "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": "123456@upi",
    "amount":5000,
    "request_id": "1683116662",
    "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

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 Ac. Number
bene.nameStringAccount Holder Name
bank_referenceStringBank Ref Number

Sample Response

{
    "status": 1,
    "message": "Transaction Successful",
    "order_id": "P2N5452534158DFOLASDF",
    "txn_value": "500.00",
    "balance": "100821.67",
    "request_id": "P2N54544444545",
    "bene": {
        "account": "123456@upi4",
        "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.

Language
Click Try It! to start a request and see the response here!