GST Verification

📘

Header Request

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

Request Parameters

ParametersTypeMandatory (M) , Optional (O)Description
gstStringMGST Number of Company
request_idStringMUnique Request Number
latitudeStringMCurrent location latitude
longitudeStringMCurrent location longitude
ipStringMOnboard User IP Address

Sample Request

curl --location 'https://pay2new.in/apis/v1/verification/gst' \
--header 'secret:qwertyuQWERTY12345asdf' \
--header 'Content-Type: application/json' \
--header 'Cookie: ci_session=0eb352f48d491ec888662604e824f73b8b0dd020' \
--data '{
    "gst": "22AAAAA0000A1Z5",
    "request_id": P2N54544444545,   
    "latitude": "19.1258",
    "longitude": "74.7453",
    "ip": "30.169.159.167"   
}'
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://pay2new.in/apis/v1/verification/gst',
  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 =>'{
    "gst": "22AAAAA0000A1Z5",
    "request_id": P2N54544444545,   
    "latitude": "19.1258",
    "longitude": "74.7453",
    "ip": "30.169.159.167"   
}',
  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
order_idStringTransaction Id ( If transaction otherwise it is null )
txn_valueStringTransaction amount
balanceStringAccount Balance
request_idStringUnique Request number
dataArrayResponse Data (If Present)

Sample Response

{
    "status": 1,
    "message": "Transaction Successful!",
    "order_id": "P2N5452534158DFOLASDF",
    "txn_value": "0.00",
    "balance": "2671.53",
    "request_id": P2N54544444545,
    "data": {
        "gstin": "22AAAAA0000A1Z5",
        "legal_Name": "Test",
        "trade_Name": "Test",
        "principal_Address": "Test",
        "state": "Karnataka",
        "district": "Bengaluru Urban",
        "pincode": "123456",
        "date_of_Registration": "01/06/2022",
        "constitution_of_Business": "Proprietorship",
        "taxpayer_Type": "Regular",
        "gstin_Status": "Active",
        "date_of_Cancellation": null,
        "state_Jurisdiction": "RANGE-ANWD2",
        "centre_Jurisdiction": "RANGE-ANWD2"
    }
}

🚧

Note:

  • Latitude and Longitude must be represented in degrees with 4 digits after decimal.
Language
Click Try It! to start a request and see the response here!