GST CERTIFICATE OCR API

EXTRACT TEXT FROM GST CERTIFICATE IMAGES

Description

This API can extract and parse the text from an input GST certificate document image and return the information in JSON format. This API can parse both provisional and registered GST certificates.

API Outcome

  • GSTIN Number
  • Legal and trade name of individual / entity
  • Date of registration
  • PAN, TIN and Central sales tax registration number if available
  • Type of registration
  • Address as registered

Get Free Trial

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

API Details

Request

TypeURL
Posthttps://api.attestr.com/api/{version}/public/xtract

Request Body Parameters

TypeNameDescriptionOptional (Default)Min VersionMax Version
StringsrcInput GST certificate image media Id. To generate a media Id, refer to Image Media UploadRequiredv1
StringadditionalDocument back side image media Id.Optionalv1
StringtypePass constant value as GSTRequiredv1

Request Header Parameters

TypeNameValue / DescriptionOptional (Default)Min 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 image is invalid or low quality, then all keys except valid and message are omitted. If true, remaining keys will have appropriate data.

KeyDescriptionTypeMin VersionMax Version
validTrue | false if the provided GST certificate image is a valid readable document with decent qualityBooleanv1
dataGST Object as described belowObjectv1
messageMessage string if the input media image is invalid or of not enough good quality to be read by OCR algorithmStringv1

GST Object

KeyDescriptionTypeMin VersionMax Version
gstinGSTIN number as present on the cardStringv1
legalNameLegal entity name as registered.Stringv1
tradeNameTrade / business name if available.Stringv1
constitutionConstitution of the entity such as private limited, proprietorship etc.Datev1
addressPrimary address of the entityDatev1
typeRegistration type eg Regular, composition etc.Stringv1
registeredDate of registration DD/MM/YYYYDatev1
expiryDate of expiry if available DD/MM/YYYYDatev1
issuedDate of issue of the certificate DD/MM/YYYYDatev1
approvingAuthorityApproving authorityStringv1
jurisdictionJurisdiction code of the GST office when entity is registeredStringv1
provisionalBoolean flag indicating if the certificate registration is provisional or permanent.Booleanv1
panPAN number of the entity. Available for provisional certificate only.Stringv1
tinTIN (Tax information network) Id. Available for provisional certificate only.Stringv1
slrCentral sales tax registration number. Available for provisional certificate only.Stringv1

Sample Response

Sample response for valid registered GST certificate

JSON
Copy

Sample response for a valid provisional GST certificate

JSON
Copy

Sample response for invalid document image

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

Constraints

  • Only JPEG, PNG images are supported.
  • Minimum image size is 200x200 png for better identification and parsing.
  • Maximum allowed image size is 10 MB.

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