GST Verification API
Send a 15-character GSTIN. We return whether it is active, cancelled or suspended, the legal and trade name, constitution, taxpayer type, principal address, activities and, if asked, recent filing status.
- Source
- GSTN (GST Network) public taxpayer records
- Turnaround
- Real time, usually one to three seconds
- Endpoint
- POST /v1/gst/verify
- Who can use it
- Any business. GSTIN details are public taxpayer information, though you should still use them only for your stated purpose.
Overview
The first check in seller, vendor and B2B customer onboarding. A GSTIN tells you who the business legally is, whether it is still registered, and where it operates. With filing status turned on, you also see whether it files returns on time, which matters if you claim input tax credit on its invoices.
Good to know
It tells you the registration is valid, not that the person you're talking to runs that business. Confirm with a call to the registered contact, a bank account match or GST with OTP.
What you get
- Cancelled and suspended flagsGSTINs get cancelled suo motu for non-filing. Catch them before you pay or book ITC.
- Legal vs trade nameInvoices often carry the trade name. We give you both, so you can match the right one.
- PAN inside the GSTINCharacters 3 to 12 are the PAN. We pull it out so you can run a PAN check on the same entity.
- Optional filing statusSee the latest GSTR-3B and GSTR-1 filed, a quick read on whether the business is active.
Request
POST https://api.ampletrails.com/v1/gst/verify
| Field | Type | Status | Description |
|---|---|---|---|
id_number | string | Required | 15-character GSTIN |
include_filing_status | boolean | Optional | Also return recent return-filing status (default false) |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
gstin_status | Registration status: ACTIVE, CANCELLED or SUSPENDED | ACTIVE |
legal_name | Legal name of the business | EXAMPLE TRADERS PRIVATE LIMITED |
trade_name | Trade name | Example Traders |
constitution | Constitution of business | Private Limited Company |
taxpayer_type | Taxpayer type: Regular, Composition and so on | Regular |
registration_date | Date of registration | 2017-07-01 |
principal_address | Principal place of business | Plot 5, Okhla Phase II, New Delhi 110020 |
nature_of_business | Business activities | ["Wholesale Business", "Retail Business"] |
pan | PAN embedded in the GSTIN | AAACA1234A |
last_return_filed | Most recent return filed, if requested | GSTR-3B Oct 2026 |
Example
curl -X POST https://api.ampletrails.com/v1/gst/verify \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id_number": "07AAACA1234A1Z5", "include_filing_status": true}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/gst/verify",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"id_number": "07AAACA1234A1Z5",
"include_filing_status": True
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/gst/verify", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"id_number": "07AAACA1234A1Z5",
"include_filing_status": true
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/gst/verify");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["id_number" => "07AAACA1234A1Z5", "include_filing_status" => true]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"gstin_status": "ACTIVE",
"legal_name": "EXAMPLE TRADERS PRIVATE LIMITED",
"trade_name": "Example Traders",
"constitution": "Private Limited Company",
"taxpayer_type": "Regular",
"registration_date": "2017-07-01",
"principal_address": "Plot 5, Okhla Phase II, New Delhi 110020",
"nature_of_business": [
"Wholesale Business",
"Retail Business"
],
"pan": "AAACA1234A",
"last_return_filed": "GSTR-3B Oct 2026"
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Marketplace seller onboarding
Marketplaces collect TCS under GST and need a valid GSTIN from every seller.
Vendor master clean-up
Finance teams re-run the whole vendor list each quarter to find cancelled GSTINs.
B2B credit
Lenders and distributors check registration age and filing regularity before extending credit.
Questions about this API
What does a GSTIN look like?
Fifteen characters: two-digit state code, the 10-character PAN, an entity number, a 'Z' and a check character. We validate the format and check digit before calling the source.
Why would a GSTIN show as cancelled when the vendor says it's fine?
Most often because returns weren't filed for several months and the officer cancelled it. The vendor can apply for revocation, but until then ITC on their invoices is at risk.
Can I get the business's phone or email?
No. GSTN doesn't publish contact details. Use GST with OTP if you need the taxpayer to prove control of the registration.
Does this show turnover?
No. Turnover data needs the taxpayer's consent through GST with OTP.
Try the GST Verification API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.