Zum Inhalt springen
GET /v1/decode

Decode a GSTIN into its parts

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/gst-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}