GSTIN verification API
Check a GST number, legal name, status and filing history.
Overview
Returns the registered business name, trade name, constitution, address and current status. Add filing history to see if the business actually files returns.
POST/v1/verify/gstin
Where it’s used
- B2B seller and supplier onboarding
- Invoice and input credit checks
- Business loans and credit lines
How the check runs
- You send the 15-character GSTIN.
- We validate the checksum digit locally, then query GSTN.
- Registration details come back; with filing_history true, the last 12 months of return filing are added.
Request
| Field | Description |
|---|---|
gstin | 15-character GSTIN |
filing_history | Optional. true to include returns filed |
curl -X POST https://api.yetlix.com/v1/verify/gstin \
-H "x-client-id: $YETLIX_CLIENT_ID" \
-H "x-client-secret: $YETLIX_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{"gstin":"09AABCY1234M1ZQ","filing_history":true}'
{
"status": "success",
"request_id": "req_7Hq2kD91",
"data": {
"gstin": "09AABCY1234M1ZQ",
"legal_name": "YELLOWLEAF TRADERS PRIVATE LIMITED",
"trade_name": "Yellowleaf",
"gst_status": "Active",
"registered_on": "01-07-2017",
"taxpayer_type": "Regular",
"state": "Uttar Pradesh",
"last_filed": {
"GSTR3B": "Oct-2026",
"GSTR1": "Oct-2026"
}
}
}
Response fields
Inside the data object. The envelope (status, request_id, billable, timestamp) is the same for every API and is described in the docs.
| Field | Type | Meaning |
|---|---|---|
gstin | string | The GSTIN. Characters 3–12 are the business’s PAN. |
legal_name | string | Legal name of business, as per PAN. |
trade_name | string | Brand or shop name. |
gst_status | enum | Active, Cancelled, Suspended or Inactive. |
registered_on | string | Effective date of registration. |
taxpayer_type | string | Regular, Composition, SEZ unit, Input Service Distributor, etc. |
constitution | string | Private Limited, Proprietorship, Partnership, LLP… |
principal_address | object | Principal place of business. |
last_filed | object | Most recent period filed per return type (with filing_history). |
Outcomes and what to do
Every check can end in a handful of ways. Decide up front what your product does in each case, so nothing falls through to a support ticket.
Active, filing regularly
Healthy, compliant business.
Do this: Approve.
Active, not filing
Registered but no returns for months. Common with shell or dormant businesses.
Do this: Review before extending credit or onboarding as a supplier.
Cancelled / Suspended
The GSTIN can’t be used for taxable supplies.
Do this: Don’t onboard. Input tax credit on their invoices is at risk.
Sandbox test values
Send these values in gstin with your sandbox key to get each result. Anything else returns INVALID_INPUT in sandbox.
| Value | Returns |
|---|---|
09AABCY1234M1ZQ | Active, filing up to date |
07AAACX9999R1Z5 | Cancelled |
27AAAAA0000A1Z0 | Invalid checksum |
Best practices
- Cross-check characters 3–12 of the GSTIN with the business PAN you collected.
- Turn on filing_history for supplier and credit decisions. Registration alone says little about whether a business is real and active.
- Re-check active suppliers monthly; cancellations happen quietly.
Compliance note. Input tax credit depends on the supplier being registered and filing returns, so supplier GST checks protect your own tax position as well as your onboarding.
Frequently asked
Can I search by PAN to find all GSTINs?
Yes, a PAN-to-GSTIN search is available on request. A business has one GSTIN per state it operates in.