Skip to main content
POST
Verify a GSTIN (basic)
Confirm that a GSTIN is registered and read the business details the GST registry holds for it: legal and trade name, registration status and date, taxpayer type, constitution, jurisdiction and principal place of business. Use it at merchant or vendor onboarding before you accept invoices or settle payments. The GSTIN is trimmed and upper-cased, then checked against the 15-character GSTIN format before any lookup, so a malformed value is rejected with IDTO_001 and not billed.

Environments

Errors

Branch on error_code, not on status: a no-record result is status: "success" with an error_code. Full list in v2 error codes.

Retries

Send an Idempotency-Key header (up to 255 characters) to make retries safe. Replaying the same key with the same body returns the stored result without running or billing the verification again. The same key with a different body returns IDTO_010; a replay while the first call is still running returns IDTO_004. If the first call returned an error, nothing is stored and a retry runs the verification again.

Test scenarios

Use these input classes in staging to exercise each outcome. Questions about GST lookups are answered in the Business FAQ.
Was this page helpful? Email us at tech@idto.ai with the page link.

Authorizations

X-Client-ID
string
header
default:<client-id>
required

The Client ID shown on the API Credentials page of the idto dashboard. It is not your account or customer ID, which returns 401. Send it on every server-to-server request together with X-API-Key. Staging and production client IDs are different.

X-API-Key
string
header
default:<api-key>
required

Your API key from the idto dashboard (API credentials). Keep it on your server; never ship it in a browser or mobile app. Send it on every server-to-server request together with X-Client-ID.

Headers

Idempotency-Key
string

Make retries of this exact request safe. If the same key is replayed with an identical request body, the original result is returned without re-running the verification or billing again. If the same key is replayed with a different body, the request is rejected with IDTO_010 (422). Omitting this header runs every request as new.

Maximum string length: 255

Body

application/json
id_number
string
required

The GSTIN.

Maximum string length: 20
Pattern: ^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z][1-9A-Z][A-Z][0-9A-Z]$
Example:

"29ABCDE1234F1Z5"

user_id
string

Your own reference for the end user. Stored against this call.

Maximum string length: 255
workflow_session_token
string

Session token when the call is part of an idto workflow session. Omit for standalone calls.

Maximum string length: 64

Response

The GSTIN lookup ran to completion.

status
enum<string>
required
Available options:
success
message
string
required
error_code
string | null
required

null on a full match, an IDTO_2xx code on a definitive no-record result. Both are billed.

data
object | null
required
billed
enum<boolean>
required
Available options:
true
tranx_id
string | null
timestamp
string<date-time> | null
Last modified on December 1, 2026