Validate a GSTIN (format, state, PAN and checksum)

Validates a GSTIN's format and check digit, and returns the state, PAN and entity number it encodes.

Request

GEThttps://payment-details-validator.p.apihiver.com/v1/gstin/27AAPFU0939F1ZV
*
String. 15-character GSTIN, e.g. 27AAPFU0939F1ZV.
Language
Client
1curl --request GET \
2  --url https://payment-details-validator.p.apihiver.com/v1/gstin/27AAPFU0939F1ZV \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Validate a GSTIN (format, state, PAN and checksum): IFSC, GSTIN & UPI Validation API (India) reference

Validates a GSTIN's format and check digit, and returns the state, PAN and entity number it encodes. This endpoint is part of the IFSC, GSTIN & UPI Validation API (India): Validate Indian payment details — IFSC (with bank and branch), GSTIN, UPI ID format — plus IBAN and card BIN checks.

Example response (200, application/json)

Success.

1{
2  "pan": "AAPFU0939F",
3  "gstin": "27AAPFU0939F1ZV",
4  "state": "Maharashtra",
5  "valid": true,
6  "checksum": "V",
7  "state_code": "27",
8  "entity_number": "1"
9}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "A parameter has the wrong format — the message names it."
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.