post
https://in.staging.decentro.tech/v2/kyc/converter/pan/gstin
Important NotePlease use only Staging Credentials on each API Reference page to test the APIs directly from our Documentation.
API Endpoints
| Environment | Host |
|---|---|
| Staging | in.staging.decentro.tech |
| Production | in.decentro.tech |
Input Validations
| Field | Requirement |
|---|---|
reference_id | Required (String, Not Blank) |
consent | Required (Boolean, Not Blank) |
pan | String (regex: ^[A-Za-z]{5}[0-9]{4}[A-Za-z]{1}$) |
| purpose | Required (String, Not Blank), 5–50 characters inclusive |
Response Description
| Key | Data Type | Description |
|---|---|---|
decentroTxnId | String | Transaction identifier generated by Decentro for tracking the request. |
status | String | Overall request status, such as SUCCESS or FAILURE. |
responseCode | String | Decentro response code identifying the request outcome. |
responseKey | String | Machine-readable key identifying the response outcome. |
message | String | Description of the response outcome. |
data | Object | Contains the GST lookup results and result message. |
data.data | Array of Objects | GST registrations returned for the PAN; an empty array is returned when no GST record is found. |
data.data[].gstin | String | GST registration number. |
data.data[].status | String | Status of the GST registration. |
data.data[].state | String | State associated with the GST registration. |
data.message | String | Describes whether GST records were found. |
Response Key Mapping
| Response Key | Description |
|---|---|
success_gst_search_by_pan | GST records were found. |
error_no_record_found | No GST record was found; this outcome is returned with HTTP 200 and S00000. |
error_empty_pan | PAN is missing or empty. |
error_invalid_pan | PAN does not match the required format. |
error_consent_false | Consent is false. |
error_empty_consent | Consent is missing or empty. |
error_invalid_consent_type | Consent is not a boolean. |
error_short_purpose_length | Purpose contains fewer than 5 characters. |
error_long_purpose_length | Purpose exceeds 50 characters. |
error_empty_purpose | Purpose is missing or empty. |
error_invalid_purpose | Purpose is not a string. |
error_duplicate_reference_id | The reference ID has already been used. |
error_unsanitized_values | Input contains rejected special characters. |
error_provider_error | The underlying provider returned an error or did not respond. |
