---
title: GST To HSN List API
slug: v2-apis/gst-to-hsn-list-api
description: Learn how to retrieve HSN details of a company using its GSTIN number with this comprehensive API documentation. Find detailed instructions for making GST to HSN List requests, including the mandatory input parameter and access token. Explore code example
createdAt: 2022-09-19T07:28:09.000Z
---

# Introduction

This API gives you the HSN details of the company whose GSTIN number is provided.

## How to call the API

You will need to [login](https://docs.signzy.com/sandboxapis) before sending GST to HSN List request. You are required to pass the access token received from the login call, as authorization header in the GST request along with GSTIN Number.

## API Input Guidelines

gstin number is the mandatory parameter to be passed.

## Sample Curl

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/gstns",
  "name": "GST To HSN List",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "Contains the authorization token"
      },
      {
        "kind": "required",
        "name": "content-type",
        "type": "string",
        "children": [],
        "description": "Application/JSON"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "task",
        "type": "string",
        "description": "Type of task to be performed- GST To HSN List."
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "essentials.gstin",
            "type": "string",
            "description": "GSTIN Number of the company"
          }
        ],
        "description": "Essential part of the request."
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "YsTIUvuGZC9fDfA1aNDM1",
        "code": "{\r\n    \"task\": \"gstToHsn\",\r\n    \"essentials\": {\r\n        \"gstin\": \"\"\r\n    },\r\n    \"id\": \"\",\r\n    \"patronId\": \"\",\r\n    \"result\": {\r\n        \"natureOfCoreBusinessActivity\": \"NA\",\r\n        \"legalNameOfBusiness\": \"\",\r\n        \"taxPayerType\": \"REGULAR\",\r\n        \"cancellationDate\": \"-\",\r\n        \"gstin\": \"\",\r\n        \"natureOfBusinessActivities\": \"\",\r\n        \"complianceRating\": \"NA\",\r\n        \"registrationDate\": \"\",\r\n        \"constitutionOfBusiness\": \"\",\r\n        \"principalPlaceAddress\": \"\",\r\n        \"gstinStatus\": \"NOT MIGRATED\",\r\n        \"tradeNameOfBusiness\": \"\",\r\n        \"hsnGoods\": [],\r\n        \"hsnServices\": [],\r\n        \"administrativeOffice\": \"\",\r\n        \"otherOffice\": \"\"\r\n    }\r\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "YsTIUvuGZC9fDfA1aNDM1"
  },
  "examples": {
    "languages": [
      {
        "id": "c0E14ApFhlV4S59PjMF1W",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/gstns' \\\n\n--header 'Authorization: <token>' \\\n--header 'content-type: application/json' \\\n--data-raw '{\n    \"task\": \"gstToHsn\",\n    \"essentials\": {\n        \"gstin\": \"<GST number>\"\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "LoHByiIFZJZW0wBeLfOwe",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/patrons/<Patron ID>/gstns' \\\r\n\r\n--header 'Authorization: <token>' \\\r\n--header 'content-type: application/json' \\\r\n--data-raw '{\r\n    \"task\": \"gstToHsn\",\r\n    \"essentials\": {\r\n        \"gstin\": \"<GST Number>\"\r\n    }\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "c0E14ApFhlV4S59PjMF1W"
  },
  "description": "It gives the HSN code of Industry/Department for entered GST Number.",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

### Response Parameters

| **Parameter Name&#x20;**            | **Description**                                        |
| ----------------------------------- | ------------------------------------------------------ |
| task                                | Type of task to be performed- GST To HSN List.         |
| essentials                          | Essential part of request                              |
| essentials.gstin                    | GSTIN Number of the company                            |
| id                                  | Unique user ID                                         |
| patronId                            | Unique Patron ID                                       |
| result                              | This object contains the actual result of the response |
| result.natureOfCoreBusinessActivity | It describes nature of core business activity          |
| result.legalNameOfBusiness          | Name of the company                                    |
| result.taxPayerType                 | Tax payer type (i.e regular/irregular)                 |
| result.cancellationDate             | Date of cancellation                                   |
| result.gstin                        | GSTIN number of the company                            |
| result.natureOfBusinessActivities   | It describes nature of business Activity               |
| result.complianceRating             | It holds compliance rating details.                    |
| result.registrationDate             | Date of registration information.                      |
| result.constitutionOfBusiness       | Constitution of bussiness details                      |
| result.principalPlaceAddress        | Principal place address details.                       |
| result.gstinStatus                  | Status of the entered gstin.                           |
| result.tradeNameOfBusiness          | Name of business used for trading.                     |
| result.hsnGoods                     | HSN Goods details.                                     |
| result.hsnServices                  | HSN services details.                                  |
| result.administrativeOffice         | Administrative office details.                         |
| result.otherOffice                  | Details about other office.                            |

***

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](#).
:::

