1. Home
  2. APIs
  3. Business

GSTIN verification API

Check a GST number, legal name, status and filing history.

Mode: Instant
Checked against: GST Network (GSTN)

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

  1. You send the 15-character GSTIN.
  2. We validate the checksum digit locally, then query GSTN.
  3. Registration details come back; with filing_history true, the last 12 months of return filing are added.

Request

FieldDescription
gstin15-character GSTIN
filing_historyOptional. 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}'

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.

FieldTypeMeaning
gstinstringThe GSTIN. Characters 3–12 are the business’s PAN.
legal_namestringLegal name of business, as per PAN.
trade_namestringBrand or shop name.
gst_statusenumActive, Cancelled, Suspended or Inactive.
registered_onstringEffective date of registration.
taxpayer_typestringRegular, Composition, SEZ unit, Input Service Distributor, etc.
constitutionstringPrivate Limited, Proprietorship, Partnership, LLP…
principal_addressobjectPrincipal place of business.
last_filedobjectMost 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.

ValueReturns
09AABCY1234M1ZQActive, filing up to date
07AAACX9999R1Z5Cancelled
27AAAAA0000A1Z0Invalid checksum

Run these in the playground

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.

Often used with