Validate GSTIN numbers and retrieve business registration details.
curl -X POST https://app.way2api.com/api/v1/gst/verify \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{\"gstin\": \"27AAAAA0000A1Z5\"}'
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => "https://app.way2api.com/api/v1/gst/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json"
],
CURLOPT_POSTFIELDS => json_encode([
"gstin" => "27AAAAA0000A1Z5"
])
]);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);
const response = await fetch("https://app.way2api.com/api/v1/gst/verify", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"gstin": "27AAAAA0000A1Z5"
})
});
if (!response.ok) {
throw new Error(`HTTP error: ${response.status}`);
}
const data = await response.json();
console.log(data);
import requests
response = requests.post(
"https://app.way2api.com/api/v1/gst/verify",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"gstin": "27AAAAA0000A1Z5"
}
)
print(response.status_code)
print(response.json())
{
"status": "success",
"gstin": "27AAAAA0000A1Z5",
"business_name": "EXAMPLE BUSINESS PVT LTD",
"state": "Maharashtra",
"registration_date": "2017-07-01",
"active": true,
"business_type": "Private Limited Company"
}
| Code | Meaning |
|---|---|
| 200 | OK — Request successful |
| 400 | Bad Request — Missing or invalid parameters |
| 401 | Unauthorized — Invalid or missing API key |
| 429 | Too Many Requests — Rate limit exceeded |
| 500 | Server Error — Try again later |
Start with free trial API calls. No credit card required.
Get API Key — Free Browse All APIs