Business
Verify a GSTIN
Look up a GST registration by GSTIN and get legal name, trade name, status, taxpayer type and principal place of business.
POST
/
v2
/
verify
/
gst_verification_basic
Verify a GSTIN (basic)
curl --request POST \
--url https://prod.idto.ai/v2/verify/gst_verification_basic \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Client-ID: <api-key>' \
--data '
{
"id_number": "29ABCDE1234F1Z5",
"user_id": "customer-001"
}
'const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({id_number: '29ABCDE1234F1Z5', user_id: 'customer-001'})
};
fetch('https://prod.idto.ai/v2/verify/gst_verification_basic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({id_number: '29ABCDE1234F1Z5', user_id: 'customer-001'})
};
fetch('https://prod.idto.ai/v2/verify/gst_verification_basic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod.idto.ai/v2/verify/gst_verification_basic"
payload = {
"id_number": "29ABCDE1234F1Z5",
"user_id": "customer-001"
}
headers = {
"X-Client-ID": "<api-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://prod.idto.ai/v2/verify/gst_verification_basic"
payload := strings.NewReader("{\n \"id_number\": \"29ABCDE1234F1Z5\",\n \"user_id\": \"customer-001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://prod.idto.ai/v2/verify/gst_verification_basic",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id_number' => '29ABCDE1234F1Z5',
'user_id' => 'customer-001'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Client-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://prod.idto.ai/v2/verify/gst_verification_basic")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id_number\": \"29ABCDE1234F1Z5\",\n \"user_id\": \"customer-001\"\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://prod.idto.ai/v2/verify/gst_verification_basic")
.header("X-Client-ID", "<api-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id_number\": \"29ABCDE1234F1Z5\",\n \"user_id\": \"customer-001\"\n}")
.asString();{
"status": "success",
"message": "GSTIN verification successful.",
"error_code": null,
"data": {
"gst_number": "29ABCDE1234F1Z5",
"legal_name": "SAMPLE TECHNOLOGIES PRIVATE LIMITED",
"trade_name": "SAMPLE TRADERS",
"taxpayer_type": "Regular",
"business_constitution": "Private Limited Company",
"register_date": "2018-07-01",
"gst_status": "Active",
"state_jurisdiction": "Karnataka",
"nature_of_business": [
"Retail Business",
"Wholesale Business"
],
"primary_business_address": {
"address": "12 SAMPLE STREET, SAMPLE AREA, BENGALURU, KARNATAKA-560001",
"pincode": "560001",
"state": "Karnataka"
},
"extras": {
"nature_of_core_business": "Trader",
"aadhaar_verified": true,
"ekyc_verified": true,
"composition_rate": null,
"cancellation_date": null,
"field_visit_conducted": false,
"center_jurisdiction": "Range - 1",
"einvoice_status": "Yes"
}
},
"billed": true,
"tranx_id": "8f14e45f-ceea-467e-bd93-4a2c11e0a1b2",
"timestamp": "2026-09-14T10:15:30Z"
}
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
Branch on
Questions about GST lookups are answered in the Business FAQ.
Was this page helpful? Email us at tech@idto.ai with the page link.
IDTO_001 and not billed.
Environments
| Environment | Base URL | Notes |
|---|---|---|
| Production | https://prod.idto.ai | Keys from the dashboard after go-live. Billed. |
| Staging | https://dev.idto.ai | Keys on request from your idto account manager. Calls reach live sources, so use identities you are authorised to verify. Staging credits are deducted from your staging account. |
Errors
| Code | HTTP | Message | Billed |
|---|---|---|---|
IDTO_202 | 200 | GSTIN is invalid or does not exist in GST records. | Yes |
IDTO_001 | 400 | Invalid GSTIN format. Please check and retry. | No |
IDTO_001 | 422 | Invalid request. The body is missing id_number or a field has the wrong type. | No |
IDTO_004 | 409 | An identical request is already in progress; retry shortly. | No |
IDTO_006 | 429 | Too many requests. Please wait a moment and retry. | No |
IDTO_007 | 500 | Verification could not be completed due to a service configuration issue. Please contact support at tech@idto.ai. | No |
null | 400 | Insufficient credits for this operation. (your idto balance is too low; recharge and retry) | No |
IDTO_010 | 422 | Idempotency-Key was already used with a different request body. | No |
IDTO_008 | 503 | The verification service is facing downtime due to issues from the source. Please drop a mail to tech@idto.ai, and try again later. | No |
error_code, not on status: a no-record result is status: "success" with an error_code. Full list in v2 error codes.
Retries
Send anIdempotency-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.| Input | Expected result | Billed |
|---|---|---|
Registered GSTIN, for example 29ABCDE1234F1Z5 format | error_code: null, data filled | Yes |
| Well-formed GSTIN that is not registered | IDTO_202, data: null | Yes |
id_number empty or blank | IDTO_001 (400) | No |
id_number not in GSTIN format, for example 12 characters | IDTO_001 (400) | No |
id_number missing from the body | IDTO_001 (422) | No |
Same Idempotency-Key, different body | IDTO_010 (422) | No |
Was this page helpful? Email us at tech@idto.ai with the page link.
Authorizations
Headers
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:
255Body
application/json
Response
The GSTIN lookup ran to completion.
Last modified on December 1, 2026
Verify a GSTIN (basic)
curl --request POST \
--url https://prod.idto.ai/v2/verify/gst_verification_basic \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Client-ID: <api-key>' \
--data '
{
"id_number": "29ABCDE1234F1Z5",
"user_id": "customer-001"
}
'const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({id_number: '29ABCDE1234F1Z5', user_id: 'customer-001'})
};
fetch('https://prod.idto.ai/v2/verify/gst_verification_basic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({id_number: '29ABCDE1234F1Z5', user_id: 'customer-001'})
};
fetch('https://prod.idto.ai/v2/verify/gst_verification_basic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod.idto.ai/v2/verify/gst_verification_basic"
payload = {
"id_number": "29ABCDE1234F1Z5",
"user_id": "customer-001"
}
headers = {
"X-Client-ID": "<api-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://prod.idto.ai/v2/verify/gst_verification_basic"
payload := strings.NewReader("{\n \"id_number\": \"29ABCDE1234F1Z5\",\n \"user_id\": \"customer-001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://prod.idto.ai/v2/verify/gst_verification_basic",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id_number' => '29ABCDE1234F1Z5',
'user_id' => 'customer-001'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Client-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://prod.idto.ai/v2/verify/gst_verification_basic")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id_number\": \"29ABCDE1234F1Z5\",\n \"user_id\": \"customer-001\"\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://prod.idto.ai/v2/verify/gst_verification_basic")
.header("X-Client-ID", "<api-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id_number\": \"29ABCDE1234F1Z5\",\n \"user_id\": \"customer-001\"\n}")
.asString();{
"status": "success",
"message": "GSTIN verification successful.",
"error_code": null,
"data": {
"gst_number": "29ABCDE1234F1Z5",
"legal_name": "SAMPLE TECHNOLOGIES PRIVATE LIMITED",
"trade_name": "SAMPLE TRADERS",
"taxpayer_type": "Regular",
"business_constitution": "Private Limited Company",
"register_date": "2018-07-01",
"gst_status": "Active",
"state_jurisdiction": "Karnataka",
"nature_of_business": [
"Retail Business",
"Wholesale Business"
],
"primary_business_address": {
"address": "12 SAMPLE STREET, SAMPLE AREA, BENGALURU, KARNATAKA-560001",
"pincode": "560001",
"state": "Karnataka"
},
"extras": {
"nature_of_core_business": "Trader",
"aadhaar_verified": true,
"ekyc_verified": true,
"composition_rate": null,
"cancellation_date": null,
"field_visit_conducted": false,
"center_jurisdiction": "Range - 1",
"einvoice_status": "Yes"
}
},
"billed": true,
"tranx_id": "8f14e45f-ceea-467e-bd93-4a2c11e0a1b2",
"timestamp": "2026-09-14T10:15:30Z"
}