Skip to main content
POST
Get merchant category codes for a GSTIN (v1)
Use this endpoint to assign a merchant category code while onboarding a merchant, based on what its GST registration says it sells. This is a v1 endpoint: the response is a flat object, not the v2 envelope.

Environments

This endpoint has no Idempotency-Key support. A retried call runs again and can be charged twice. Retry only after you have confirmed the first call failed.

How to read the result

  • result is an object: result.business_details lists each registered goods line (hsncd, gdes) or services line (saccd, sdes) with its mcc_code. mcc_code is empty when no MCC maps to that line.
  • result is a string: no data was returned, for example because the GSTIN is invalid. This is still status: "success" and is charged. The text varies; do not parse it.
  • consent must be Y and consent_text must not be empty, or the call is refused before it reaches the source.
  • Charged only when the response status is success. Billing signal: chargeble and user_consent are present as "true" only on a charged call, spelled exactly as shown. There is no billed field on v1.
  • tranx_id identifies the call for support.

Errors

Every wrapped detail object also carries tranx_id and timestamp. See the Business verification FAQ for common questions. Was this page helpful? Email us at tech@idto.ai with the page link.

Authorizations

X-Client-ID
string
header
default:<client-id>
required

The Client ID shown on the API Credentials page of the idto dashboard. It is not your account or customer ID, which returns 401. Send it on every server-to-server request together with X-API-Key. Staging and production client IDs are different.

X-API-Key
string
header
default:<api-key>
required

Your API key from the idto dashboard (API credentials). Keep it on your server; never ship it in a browser or mobile app. Send it on every server-to-server request together with X-Client-ID.

Body

application/json
gst_no
string
required

15-character GSTIN.

Example:

"29ABCDE1234F1Z5"

Must be Y: you confirm you hold the end user's consent.

Available options:
Y

The consent statement you captured. Must not be empty.

Response

The call completed. Charged, including when the GSTIN is invalid (result is a string).

status
string
required

success on this response.

result
tranx_id
string

idto transaction id for this call.

timestamp
string

When the call was recorded.

chargeble
enum<string>

Present and "true" only when the call was charged.

Available options:
true

Present and "true" only when the call was charged.

Available options:
true
Last modified on October 4, 2026