Settlement Delete Account

📘

Header Request

secret : Unique secret key (Provided by Pay2New)
outletId: Unique OutletID (Provided by Pay2New)

Request Parameters

ParametersTypeDescription
idIntegerId which delete the account

Sample Request

curl --location 'https://pay2new.in/apis/aeps/v1/deleteAccount' \
--header 'secret: qwertyuQWERTY12345asdf' \
--header 'Content-Type: application/json' \

--data '{
    "id": 1
}'

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://pay2new.in/apis/aeps/v1/deleteAccount',
  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 =>'{
    "id": 1
}',
  CURLOPT_HTTPHEADER => array(
    'secret: qwertyuQWERTY12345asdf',
    'Content-Type: application/json',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response Parameters

ParametersTypeDescription
statusIntegerPay2new Status code
messageStringMessage from API

Sample Response

{
    "status": 1,
    "message": "Account deleted successfully!"
}
Language
Click Try It! to start a request and see the response here!