| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Validate a GSTIN and retrieve registered business, address, registration and jurisdiction details.
Endpoint
POST https://pay2new.in/apis/v1/verification/gst
Headers
| Header | Required | Value / description |
|---|---|---|
secret | Yes | Your Pay2New API secret. Keep it on your server. |
Content-Type | Yes for JSON requests | application/json |
Accept | Optional | application/json |
Authentication
Use an active Pay2New partner account with verified KYC, an active wallet and API access. Send requests from your registered IP address. Enable the relevant service where applicable; offer services may also require an active plan.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
gst | string | Yes | GSTIN. Send the standard 15-character value in uppercase. |
latitude | decimal string | Yes | Customer/outlet latitude as a decimal value. |
longitude | decimal string | Yes | Customer/outlet longitude as a decimal value. |
request_id | string | Yes | Unique client reference for this request. Store it for reconciliation and support. Minimum 8 characters. |
ip | string | Yes | End-user IPv4 address. |
Request example
Illustrative values
All identifiers, identity data, amounts and IP addresses in these examples are synthetic. Replace the secret, product/customer references and sample inputs with the values for your integration before sending a request.
curl --request POST \
--url 'https://pay2new.in/apis/v1/verification/gst' \
--header 'secret: <YOUR_PAY2NEW_SECRET>' \
--header 'Content-Type: application/json' \
--data '{
"gst": "27ABCDE1234F1Z5",
"latitude": "19.0760",
"longitude": "72.8777",
"request_id": "GSTVER202609260001",
"ip": "203.0.113.10"
}'
Response fields
| Field | Type | Description |
|---|---|---|
status | integer | 1: successful operation; 2: failed/rejected operation; 3: pending or indeterminate where returned. |
message | string | Human-readable result or error message. |
order_id | string | Pay2New transaction/order reference. Store it for reconciliation. |
txn_value | string | Verification transaction value/charge as a formatted string. |
balance | string | Wallet balance as a formatted string; may contain commas. |
request_id | string | Client request reference associated with the operation. |
data | object / null | GST business details. Field names are case-sensitive; see the table below. |
GST data
| Field | Description |
|---|---|
data.gstin | gstin. |
data.legal_Name | legal Name. |
data.trade_Name | trade Name. |
data.principal_Address | principal Address. |
data.state | state. |
data.district | district. |
data.pincode | pincode. |
data.date_of_Registration | date of Registration. |
data.constitution_of_Business | constitution of Business. |
data.taxpayer_Type | taxpayer Type. |
data.gstin_Status | gstin Status. |
data.date_of_Cancellation | Returned as null by this integration. |
data.state_Jurisdiction | state Jurisdiction. |
data.centre_Jurisdiction | centre Jurisdiction. |
Response example
{
"status": 1,
"message": "Transaction Successful!",
"order_id": "P2NGST202608260001",
"txn_value": "2.00",
"balance": "1,000.00",
"request_id": "GSTVER202609260001",
"data": {
"gstin": "27ABCDE1234F1Z5",
"legal_Name": "SAMPLE ENTERPRISES PRIVATE LIMITED",
"trade_Name": "SAMPLE ENTERPRISES",
"principal_Address": "Sample Building Sample Road Mumbai",
"state": "Maharashtra",
"district": "Mumbai",
"pincode": "400001",
"date_of_Registration": "01/07/2017",
"constitution_of_Business": "Private Limited Company",
"taxpayer_Type": "Regular",
"gstin_Status": "Active",
"date_of_Cancellation": null,
"state_Jurisdiction": "State - Maharashtra",
"centre_Jurisdiction": "State - Maharashtra"
}
}
Integration notes
Formatted monetary fields are strings with two decimal places and may use Indian comma grouping, for example 1,23,456.78. Remove grouping separators before numeric calculations. Illustrative balances or charges are not pricing commitments.
Errors
Application failures return status: 2 and a message. Invalid fields can also be identified in an errors object. Authentication, IP registration, service access and product availability can prevent processing. Other response fields may be absent when processing fails before a transaction is created. Evaluate the JSON result even when the HTTP request completes successfully. Preserve your request and order references when an outcome is pending or indeterminate.
{
"status": 2,
"message": "Invalid Parameters",
"errors": {
"gst": "Illustrative field validation message"
}
}
