/v1/decode
Decode a GSTIN into its parts
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/gst-api/v1/decode" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gst-api/v1/decode", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gst-api/v1/decode");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/gst-api/v1/decode",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"gstin": "27AAPFU0939F1ZV",
"parts": {
"pan": "AAPFU0939F",
"state_code": "27",
"state_name": "Maharashtra",
"check_digit": "V",
"default_char": "Z",
"entity_number": "1",
"pan_holder_type": "Firm / LLP",
"expected_check_digit": "V",
"pan_holder_type_code": "F"
},
"valid": true,
"format_valid": true,
"checksum_valid": true
},
"meta": {
"timestamp": "2026-06-01T23:40:37.834Z",
"request_id": "f8bf039f-e6a9-4042-b771-601440a1e704"
},
"status": "ok",
"message": "GSTIN decoded",
"success": true
}