Search GSTIN By PAN Number API

FETCH GST REGISTERED ENTITIES MAPPED TO A PROVIDED PAN NUMBER

Description

Many businesses with multiple locations or those involved in multiple commercial services have multiple GSTINs registered. GSTIN numbers are linked to PAN, the permanent account number assigned to each entity by the Income Tax Department of India. As a result, a single PAN number might frequently be connected to numerous GSTIN numbers.

Such registered multiple GST numbers linked to a given PAN number can be searched using this API.

Get Free Trial

Create a free account Or “Talk to Us” for price information and other queries.

API Details

Request

TypeURLMin VersionMax Version
POSThttps://api.attestr.com/api/{version}/public/corpx/gstin/searchv1

Request Body Parameters

TypeNameDescriptionOptional (default)Min VersionMax Version
StringpanInput PAN number to be searched.Requiredv1

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typeapplication/jsonRequiredv1
StringAuthorizationBasic {authToken}Requiredv1

If you do not have the authentication token, please refer to Register App to generate one.

Sample Request

JSON
Copy

Response

HTTP status code 200

Please note that the valid key decides the availability of rest of the keys in the response. If provided PAN is either invalid or not matching records are found, all keys except valid and message are omitted. If true, remaining keys will have appropriate data.

KeyDescriptionTypeMin VersionMax Version
validTrue if the provided PAN is valid and matching GSTIN records exist, else returns false.Booleanv1
messageMessage if no matching records are found, else null.Stringv1
recordsArray of GSTIN Search Record Object. Refer to the definition below.Arrayv1

The API returns a maximum of 100 matching records. PAN numbers that are linked to more than 100 GSTIN will return only first 100 matching records found in no specific order.

GSTIN Search Record Object

KeyDescriptionTypeMin VersionMax Version
statusStatus of GST registration, Active, Cancelled etc.Stringv1
activeTrue | false implying if the registration status is activeBooleanv1
legalNameName of entity as registered in GST databaseStringv1
tradeNameBusiness / trade name as registered in GST databaseStringv1
panPAN number as extracted from GSTIN.Stringv1
constitutionConstitution type such as private limited, proprietorship etc.Stringv1
typeRegular etc.Stringv1
registeredDate of GSTIN registration DD-MM-YYYYDatev1
primaryAddressPrimary registered address of the company. Refer to GST Address Object definition below.Objectv1

GST Address Object

KeyDescriptionTypeMin VersionMax Version
typeType of addressAddressTypeEnumv1
buildingBuilding, house, plot numberStringv1
buildingNameName of the premisesStringv1
floorFloor number in the buildingStringv1
streetName of the streetStringv1
localityLocal area nameStringv1
districtDistrict nameStringv1
stateState nameStringv1
cityCity nameStringv1
zipPincode of the locationStringv1
latitudeLatitude of the locationStringv1
longitudeLongitude of the locationStringv1
natureBusiness purpose for which this address is usedStringv1

AddressTypeEnum

Enum ValuesDescription
PRIMARYAddress is registered as primary registered address
ADDITIONALAddress is registered as secondary / other addresses of business

Sample Response

Sample response for valid output

JSON
Copy

Sample response for invalid PAN / No matching records

JSON
Copy

Error Response

ParameterTypeDescription
codeNumberUnique error codes for different errors. Always available.
messageStringError message describing the error. Always Available.
detailsStringDetail error message. Available only for certain types of errors.

Error Codes

HTTP StatusError CodeError Message
4004001Malformed data or missing required parameter values
4004005Operation could not be performed due to low credits balance
4014016Invalid client authorization
4034031Unauthorized access
4034035Requested service is not provisioned for your account
4034039Client's IP address is not whitelisted
4034035Requested service is not provisioned for your account
4294291Maximum account rate limit exceeded
4294292Maximum API rate limit exceeded
4294293Maximum account daily limit exceeded
4294294Maximum API daily limit exceeded
5005001Request could not be processed

Sample Error Response

JSON
Copy

Get Free Trial

Create a free account Or “Talk to Us” for price information and other queries.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard