Circle List

This API provide All Circle Code list

📘

Header Request

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

Sample Request

curl --request GET \
     --url https://pay2new.in/apis/v1/circleList \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'secret: qwertyuQWERTY12345asdf'
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://pay2new.in/apis/v1/circleList",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Accept: application/json",
    "Content-Type: application/json",
    "secret: qwertyuQWERTY12345asdf"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

Response Parameters

ParametersTypeDescription
statusIntegerTransaction Status
messageStringMessage from API
dataArrayResponse Data (If Present)
circle_codeStringCircle / State Code
circle_nameStringCircle / State Name

Sample Response

{
  "status": 1,
  "message": "Transaction Successful!",
  "data": [
    {
      "circle_code": "1",
      "circle_name": "ANDHRA PRADESH"
    },
    {
      "circle_code": "2",
      "circle_name": "ASSAM"
    },
    {
      "circle_code": "3",
      "circle_name": "BIHAR"
    },
    {
      "circle_code": "4",
      "circle_name": "CHENNAI"
    },
    {
      "circle_code": "5",
      "circle_name": "DELHI"
    },
    {
      "circle_code": "6",
      "circle_name": "GUJARAT"
    },
    {
      "circle_code": "7",
      "circle_name": "HARYANA"
    },
    {
      "circle_code": "8",
      "circle_name": "HIMACHAL PRADESH"
    },
    {
      "circle_code": "9",
      "circle_name": "JAMMU & KASHMIR"
    },
    {
      "circle_code": "10",
      "circle_name": "KARNATAKA"
    },
    {
      "circle_code": "11",
      "circle_name": "KERALA"
    },
    {
      "circle_code": "12",
      "circle_name": "KOLKATA"
    },
    {
      "circle_code": "13",
      "circle_name": "MAHARASHTRA"
    },
    {
      "circle_code": "14",
      "circle_name": "MADHYA PRADESH CHHATTISGARH"
    },
    {
      "circle_code": "15",
      "circle_name": "MUMBAI"
    },
    {
      "circle_code": "16",
      "circle_name": "NORTH EAST"
    },
    {
      "circle_code": "17",
      "circle_name": "ORISSA"
    },
    {
      "circle_code": "18",
      "circle_name": "PUNJAB"
    },
    {
      "circle_code": "19",
      "circle_name": "RAJASTHAN"
    },
    {
      "circle_code": "20",
      "circle_name": "TAMIL NADU"
    },
    {
      "circle_code": "21",
      "circle_name": "UTTAR PRADESH - EAST"
    },
    {
      "circle_code": "22",
      "circle_name": "UTTAR PRADESH - WEST"
    },
    {
      "circle_code": "23",
      "circle_name": "WEST BENGAL"
    },
    {
      "circle_code": "24",
      "circle_name": "JHARKHAND"
    },
    {
      "circle_code": "25",
      "circle_name": "DEFAULT"
    }
  ]
}
{"status":2,"message":"Invalid Request!"}
Language
Click Try It! to start a request and see the response here!