Main Wallet Balance

Check balance of your Pay2New Business Wallet.

📘

Header Request

secret : Unique secret key (Provided by Pay2New)

Sample Request

curl --location 'https://pay2new.in/apis/v1/balance' \
--header 'secret: qwertyuQWERTY12345asdf' \
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://pay2new.in/apis/v1/balance',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'secret: qwertyuQWERTY12345asdf'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response Parameter

ParametersTypeDescription
statusIntegerPay2New status code
messageStringMessage from API
balanceStringCurrent balance of account

Sample Response

{"status":1,"message":"Transaction Successfull!","balance":"1000.00"}

Language