GSTIN Verification API

VERIFICATION OF GOODS AND SERVICE TAX (GST) REGISTRATION OF BUSINESSES

Description

Indian Goods And Service Tax Act was implemented in July 2017 which replaced many indirect taxes. GSTIN is a unique number assigned to companies registered under this Act.

GSTIN verification is the process of verifying the registration of an entity. Businesses can perform this check as a mandatory taxation compliance while on-boarding new vendors, partners or customer entities.

API Outcome

General company information

  • Registration status, Entity's registered legal name, Trade / business name, Type of company (private limited, proprietorship etc.), Nature of business

Demographics

  • Primary address location, Additional locations of business

Timeline

  • Date of registration, Last updated, Expiration (if applicable)

Jurisdiction

  • GST Zonal Office of registration and code, Centre name and code

Filing History

  • Filing date, Period, ARN number, Status of filing

Get Free Trial

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

API Details

Request

TypeURLCurrent Version
POSThttps://api.attestr.com/api/{version}/public/corpx/gstinv2

Request Body Parameters

TypeNameDescriptionOptional (default)Min VersionMax Version
StringgstinInput GSTINRequiredv1
BooleanfetchFilingsFetch returns or notRequiredv1
StringfyFinancial year for which returns should be fetched. e.g. 2017-18Optional (Required if fetch returns input parameter is set to true)v1

As GST was implemented in 2017, the allowed "fy" parameter values range from 2017-18 till current fiscal year. Values smaller than 2017-18 and greater than current fiscal year will throw malformed request error.

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 GSTIN is invalid, all keys except valid and message are omitted. If true, remaining keys will have appropriate data.

The GST verification API output now includes the PAN number of the entity. Please refer to the updated schema below.

KeyDescriptionTypeMin VersionMax Version
validTrue | false depending on if the provided tax identification number is valid.Booleanv1
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
natureNature of business e.g. supplier of services etc.Array (String)v1
typeRegular etc.Stringv1
registeredDate of GSTIN registration DD-MM-YYYYDatev1
updatedDate of last change made DD-MM-YYYYDatev1
expiryDate of cancellation if applicable DD-MM-YYYYDatev1
stateZone as defined by GST councilStringv1
stateCodeZone codeStringv1
centerOffice / center in the allotted zoneStringv1
centerCodeOffice codeStringv1
addressesArray of registered primary and additional addresses of the companyArray of Address objectv1
filingsArray of GSTR filings made by the companyArray of GSTFiling objectv1
einvoiceEnabledWhether the company has opted for e-invoicing. Available from API version v2 onwards.Booleanv2
messageMessage if the provided GSTIN is valid (available only if valid is false)Stringv1

returns key is not available in the response if the value of input parameter fetchFilings is provided as false.

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

GSTFiling Object

KeyDescriptionTypeMin VersionMax Version
modeOnline, OfflineStringv1
typeType of GSTR e.g. GSTR3B, GSTR2, GSTR1 etc.Stringv1
filedDate of filing of this return MM-DD-YYYYDatev1
periodDuration / Month for which filing was madeStringv1
ackAcknowledgement numberStringv1
statusFiled, Pending payment etc.Stringv1

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 GSTIN

JSON
Copy

Sample response for invalid GSTIN

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