PAN to GSTIN

🙌

Important Note

Please use only Staging Credentials on each API Reference page to test the APIs directly from our Documentation.

API Endpoints

EnvironmentHost
Stagingin.staging.decentro.tech
Productionin.decentro.tech

Input Validations

FieldRequirement
reference_idRequired (String, Not Blank)
consentRequired (Boolean, Not Blank)
panString (regex: ^[A-Za-z]{5}[0-9]{4}[A-Za-z]{1}$)
purposeRequired (String, Not Blank), 5–50 characters inclusive

Response Description

KeyData TypeDescription
decentroTxnIdStringTransaction identifier generated by Decentro for tracking the request.
statusStringOverall request status, such as SUCCESS or FAILURE.
responseCodeStringDecentro response code identifying the request outcome.
responseKeyStringMachine-readable key identifying the response outcome.
messageStringDescription of the response outcome.
dataObjectContains the GST lookup results and result message.
data.dataArray of ObjectsGST registrations returned for the PAN; an empty array is returned when no GST record is found.
data.data[].gstinStringGST registration number.
data.data[].statusStringStatus of the GST registration.
data.data[].stateStringState associated with the GST registration.
data.messageStringDescribes whether GST records were found.

Response Key Mapping

Response KeyDescription
success_gst_search_by_panGST records were found.
error_no_record_foundNo GST record was found; this outcome is returned with HTTP 200 and S00000.
error_empty_panPAN is missing or empty.
error_invalid_panPAN does not match the required format.
error_consent_falseConsent is false.
error_empty_consentConsent is missing or empty.
error_invalid_consent_typeConsent is not a boolean.
error_short_purpose_lengthPurpose contains fewer than 5 characters.
error_long_purpose_lengthPurpose exceeds 50 characters.
error_empty_purposePurpose is missing or empty.
error_invalid_purposePurpose is not a string.
error_duplicate_reference_idThe reference ID has already been used.
error_unsanitized_valuesInput contains rejected special characters.
error_provider_errorThe underlying provider returned an error or did not respond.
Body Params
string
required

Any unique ID assigned by you for this API request.

string
required
Defaults to To perform KYC of the individual

The purpose of taking consent from your customer. Mandatory as per regulation. Must contain 5 to 50 characters, inclusive.

string
required

The PAN (Permanent Account Number) that is to be converted into GSTIN.

Headers
string
required
Defaults to Bearer

The JWT token generated using your client ID and client secrets

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json