Validate Product

Validate whether a given HSN code is valid.

Tip

If you already have an HSN code, You can use this endpoint to validate if it’s valid or not

API Endpoint

GET /hsn/{code}/validate

Example Request

curl --location '<BASE_URL>/hsn/<HSN_CODE>/validate'

Example Response

{
  "data": {
    "code": "01061100",
    "type": "HSN",
    "isValid": true
  }
}

Field Reference

Field

Description

Example

data.code

The HSN code being validated

01061100

data.type

Type of classification (always HSN in this endpoint)

HSN

data.isValid

Whether the provided HSN code is valid

true