GSTIN Verification Basic
❗️ This API Documentation is now available in Clear Identity Demo hub here
Clear provides APIs to verify if a GSTIN is valid as per the Government. This will help you to:
Prevent wrong/incorrect GSTINs of vendors or customers in ERP
Avoid GST compliance errors
Get additional details related to the GSTIN
Request Method
GET
Request URL
{BASE_URL}/clearIdentity/v1/taxpayer-info
Request Headers
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
x-cleartax-auth-token | String | NA | Mandatory. User auth token |
Request Path Params
There are no path parameters for this API.
Request Query Params
Parameter | Data Type | Field Validations | |
---|---|---|---|
gstin | String | MaxLength: 15 Regex: Valid GSTIN as per government. | Mandatory. The GSTIN that you want the information for. |
Request Body
There will be no request body for this API.
Sample Request
Response Status Codes
HTTP Status Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Authorisation failed |
402 | Payment Required |
429 | Too many requests |
500 | Service is down |
Response Schema
Parameter | Data Type | Field Constraints | Description |
---|---|---|---|
taxpayerInfo | Object | NA | Mandatory. Taxpayer Information Object. If there is no value, this will be null. |
requestId | String | MaxLength: 36 | Mandatory. Unique identifier generated by Clear to trace any request. Users can share this while raising support cases. If there is no value, this will be an empty string. |
Taxpayer Info Object
Parameter | Data Type | Field Constraints | Description |
---|---|---|---|
gstin | String | MaxLength: 15 | Mandatory. GSTIN of the Taxpayer. If there is no value, this will be an empty string. |
pan | String | MaxLength: 10 | Mandatory, PAN of the Taxpayer. If there is no value, this will be an empty string. |
legalBusinessName | String | MaxLength: 255 | Mandatory - Legal Name of the Taxpayer. If there is no value, this will be an empty string. |
tradeName | String | MaxLength: 255 | Mandatory - Trade Name of the Taxpayer. If there is no value, this will be an empty string. |
taxpayerType | String | MaxLength: 255 | Mandatory -Taxpayer Type. If there is no value, this will be null. The common values this field include the following. But these are subject to additions and modifications by the government portal:
|
status | String | Enum: Active, Cancelled,Suspended, Provisional | Mandatory - Current Status of the GSTIN. If there is no value, this will be null. |
registrationDate | String | Format: dd/mm/yyyy | Mandatory - Date of Registration. If there is no value, this will be an empty string. |
cancellationDate | String | Format : dd/mm/yyyy | Conditional - Returned only if the GSTIN is canceled. Date of Cancellation. If there is no value, this will be an empty string. |
stateJurisdiction | String | MaxLength: 255 | Mandatory - State Jurisdiction. If there is no value, this will be an empty string. |
centralJurisdiction | String | MaxLength: 255 | Mandatory - Central Jurisdiction. If there is no value, this will be an empty string. |
stateJurisdictionCode | String | MaxLength: 255 | Mandatory - State Jurisdiction Code. If there is no value, this will be an empty string. |
centralJurisdictionCode | String | MaxLength: 255 | Mandatory - Central Jurisdiction Code. If there is no value, this will be an empty string. |
natureOfBusinessActivity | Array of Strings | NA | Mandatory - Nature of Business Activity. If there is no value, this will be an empty array. |
constitutionOfBusiness | String | MaxLength: 255 | Mandatory - Constitution of Business. If there is no value, this will be an empty string. |
principalAddress | Object | NA | Mandatory - Principal Place of Taxpayer. Address Wrapper Object. If there is no value, this will be null. |
additionalAddresses | Array | NA | Optional - Additional Place of Taxpayer. Array of Address Wrapper objects. If no additional addresses are present, then this will be an empty array. |
frequencyType | String | Enum: MONTHLY, QUARTERLY | Mandatory - Filing frequency. If there is no value, this will be null. |
Address Wrapper Object
Parameter | Data Type | Field Constraints | Description |
---|---|---|---|
address | Object | NA | Mandatory - Address object. If there is no value, this will be null. |
natureOfBusiness | String | MaxLength: 255 | Optional - Nature of Business. If there is no value, this will be an empty string. |
Address Object
Parameter | Data Type | Field Constraints | Description |
---|---|---|---|
buildingName | String | MaxLength: 255 | Optional - Building Name. If there is no value, this will be an empty string. |
street | String | MaxLength: 255 | Optional - Street. If there is no value, this will be an empty string. |
locality | String | MaxLength: 255 | Optional - Locality. If there is no value, this will be an empty string. |
doorNumber | String | MaxLength: 255 | Optional - Door Number. If there is no value, this will be an empty string. |
stateName | String | MaxLength: 255 | Mandatory - State Name. If there is no value, this will be an empty string. |
floorNumber | String | MaxLength: 255 | Optional - Floor Number. If there is no value, this will be an empty string. |
latitude | String | MaxLength: 255 | Optional - Latitude. If there is no value, this will be an empty string. |
longitude | String | MaxLength: 255 | Optional - Longitude. If there is no value, this will be an empty string. |
district | String | MaxLength: 255 | Optional - District. If there is no value, this will be an empty string. |
city | String | MaxLength: 255 | Optional - City. If there is no value, this will be an empty string. |
pincode | String | MaxLength: 255 | Optional - Pincode. If there is no value, this will be an empty string. |
Sample Response (Success)
1) Active GSTIN
Metered: Yes
HTTP Status Code: 200
Response Body
2) Cancelled GSTIN
Metered: Yes
HTTP Status Code: 200
Response Body
Sample Response (Error)
1) Invalid GSTIN
Metered: Yes
HTTP Status Code: 404
Response Body
2) Incorrect GSTIN (Regex failure)
Metered: No
HTTP Status Code: 400
Response Body
3) Invalid Auth Token
Metered: No
HTTP Status Code: 401
Response Body
4) Verification service is down
Metered: No
HTTP Status Code: 500
Response Body
5) Usage increased
Metered: No
HTTP Status Code: 402
Response Body
6) Too many requests
Metered: No
HTTP Status Code: 429
Response Body
API Validations
Currently there are no known validations.
API Constraints
Licensing and metering against resource : GSTIN_VERIFICATION_CREDITS - If user exceeds the API threshold they would get an error 406.
Last updated