---
title: Get HSN list from GST
slug: api-marketplace/get-hsn-list-from-gst
description: Get a sneak peek of the upcoming document that will be available soon. Stay tuned for the latest information and insights it will bring.
createdAt: 2023-04-20T20:31:01.000Z
---

### Introduction

The API allows to access Harmonized System of Nomenclature (HSN) codes associated with GST (Goods and Services Tax) registration. By inputting a GST number, this API promptly returns a detailed list of HSN codes for goods and services tied to the specific GST account. This feature is crucial for businesses to ensure accurate GST filings and compliance with tax regulations. It provides insights into the nature of business activities and assists in the proper classification of goods and services for tax purposes. The API is an invaluable asset for simplifying tax processes and maintaining financial accuracy.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/gst/gstToHsn
```
:::

:::CodeblockTabs
UAT/Testing Endpoint

```text
POST https://api-preproduction.signzy.app/api/v3/gst/gstToHsn
```
:::

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**           | **Required** |
| ------------- | ------------- | ------------------------- | ------------ |
| gstin         | string        | GST identification number | Mandatory    |

:::CodeblockTabs
JSON

```json
{
    "gstin":"<GST number>"
}
```
:::

***

### Request Headers

| **Name&#x20;** | **Value**        | **Required** | **Description**                                                                                            |
| -------------- | ---------------- | ------------ | ---------------------------------------------------------------------------------------------------------- |
| Content-type   | application/json | Mandatory    | The type of content that the request body contains.                                                        |
| Authorization  | XXXXXXXXXXXXXXX  | Mandatory    | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

***

### Code Samples

:::CodeblockTabs
Curl

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/gst/gstToHsn' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Auth token>' \
--data '{
    "gstin":"<GST number>"
}'
```

Node.js

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "gstin": "<gstin>"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/gst/gstToHsn',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<Auth token>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

Python

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/gst/gstToHsn"

payload = json.dumps({
  "gstin": "<gstin>"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Auth token>'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

GO

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/gst/gstToHsn"
  method := "POST"

  payload := strings.NewReader(`{
    "gstin":"<gstin>"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "<Auth token>")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| Parameter                           | Data Type      | Description                                             |
| ----------------------------------- | -------------- | ------------------------------------------------------- |
| result.natureOfCoreBusinessActivity | String         | The core business activity.                             |
| result.legalNameOfBusiness          | String         | The legal name of the business.                         |
| result.taxPayerType                 | String         | Type of tax payer.                                      |
| result.cancellationDate             | String         | The date of GSTIN cancellation, if any.                 |
| result.gstin                        | String         | The GST Identification Number.                          |
| result.natureOfBusinessActivities   | Array\[String] | List of business activities.                            |
| result.complianceRating             | String         | GST compliance rating.                                  |
| result.registrationDate             | String         | Date of business registration.                          |
| result.constitutionOfBusiness       | String         | Type of business constitution.                          |
| result.principalPlaceAddress        | String         | The principal place of business address.                |
| result.gstinStatus                  | String         | Status of GSTIN.                                        |
| result.tradeNameOfBusiness          | String         | Trade name of the business.                             |
| result.hsnGoods                     | Array\[Object] | List of goods with their HSN codes and descriptions.    |
| result.hsnServices                  | Array\[Object] | List of services with their HSN codes and descriptions. |
| result.administrativeOffice         | String         | Details of the administrative GST office.               |
| result.otherOffice                  | String         | Details of the other related office.                    |

:::CodeblockTabs
200

```json
{
    "result": {
        "natureOfCoreBusinessActivity": "MANUFACTURER",
        "legalNameOfBusiness": "TATA MOTORS LIMITED",
        "taxPayerType": "REGULAR",
        "cancellationDate": "",
        "gstin": "<GST number>",
        "natureOfBusinessActivities": [
            "OFFICE / SALE OFFICE",
            "INPUT SERVICE DISTRIBUTOR (ISD)",
            "SERVICE PROVISION",
            "RECIPIENT OF GOODS OR SERVICES",
            "FACTORY / MANUFACTURING",
            "WAREHOUSE / DEPOT",
            "WORKS CONTRACT",
            "SUPPLIER OF SERVICES",
            "OTHERS",
            "WHOLESALE BUSINESS",
            "BONDED WAREHOUSE",
            "LEASING BUSINESS",
            "RETAIL BUSINESS"
        ],
        "complianceRating": "NA",
        "registrationDate": "01/07/2017",
        "constitutionOfBusiness": "PUBLIC LIMITED COMPANY",
        "principalPlaceAddress": "5TH FLOOR, TATA MOTOR LIMITED, PRESTIGE TOWER, AMRAPALI CIRCLE, AMRAPALI ROAD, VAISHALI NAGAR, JAIPUR, RAJASTHAN, 302021",
        "gstinStatus": "ACTIVE",
        "tradeNameOfBusiness": "TATA MOTORS LIMITED",
        "hsnGoods": [
            {
                "hsnCode": "87021019",
                "description": "MOTOR VEHICLES FOR THE TRANSPORT OF TEN OR MORE PERSONS, INCLUDING THE DRIVERWITH COMPRESSION-IGNITION INTERNALCOMBUSTION PISTON ENGINE (DIESEL OR SEMIDIESEL) VEHICLES FOR TRANSPORT OF NOT MORE THAN 13 PERSONS, INCLUDING THE DRIVER:OTHER"
            },
            {
                "hsnCode": "87060039",
                "description": "8706 CHASSIS FITTED WITH ENGINES, FOR THE MOTOR VEHICLES OF HEADINGS 8701 TO 8705 FOR THE MOTOR VEHICLES OF HEADING 8703 OTHER"
            },
            {
                "hsnCode": "87089900",
                "description": "PARTS AND ACCESSORIES OF THE MOTOR VEHICLES OF HEADINGS 8701 TO 8705 - OTHER PARTS AND ACCESSORIES -- OTHER"
            },
            {
                "hsnCode": "87032299",
                "description": "MOTOR CARS AND OTHER MOTOR VEHICLES PRINCIPALLY DESIGNED FOR THE TRANSPORT OF PERSONS (OTHER THAN THOSE OF HEADING 8702), INCLUDING STATION WAGONS AND RACING CARS OTHER VEHICLES, WITH SPARK-IGNITION INTERNAL COMBUSTION RECIPROCATING PISTON ENGINE : OF A CYLINDER CAPACITY EXCEEDING 1,000 CC BUT NOT EXCEEDING 1,500 CC OTHER OTHER"
            },
            {
                "hsnCode": "87049090",
                "description": "MOTOR VEHICLES FOR THE TRANSPORT OF GOODS OTHER : LORRIES AND TRUCKS: OTHER OTHER"
            }
        ],
        "hsnServices": [
            {
                "hsnCode": "00440262",
                "description": "TRANSPORT OF GOODS BY ROAD"
            },
            {
                "hsnCode": "00440181",
                "description": "REPAIR, RECONDITIONING, RESTORATION OR DECORATION OR ANY SIMILAR SERVICES OF ANY MOTOR VEHICLE"
            },
            {
                "hsnCode": "00440366",
                "description": "BUSINESS SUPPORT SERVICES"
            },
            {
                "hsnCode": "00440410",
                "description": "WORKS CONTRACT SERVICES"
            },
            {
                "hsnCode": "00441480",
                "description": "OTHER TAXABLE SERVICES - OTHER THAN THE ONES MENTIONED"
            }
        ],
        "administrativeOffice": "RANGE - GST RANGE-XXXII DIVISION - GST DIVISION-G JAIPUR COMMISSIONERATE - JAIPUR (JURISDICTION - CENTER)",
        "otherOffice": " AC / CTO WARD  JAIPUR III WARD - CIRCLE-C  JAIPUR III CIRCLE - CIRCLE-C ZONE - JAIPUR-III STATE - RAJASTHAN (JURISDICTION - STATE)"
    }
}
```

400

```json
// When wrong gstin number is passed
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Invalid gstin Number",
        "status": 400
    }
}

// When gstin number is not passed in request body
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "gstin number is not allowed to be empty string",
        "status": 400
    }
}


```

401

```json
// When API is passed wrong in header
{
    "message": "Invalid authentication credentials"
}

// When API key is not passed in headers
{
    "message": "No API key found in request"
}
```
:::

***

**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!
