---
title: Company name to GST API
slug: v2-apis/company-name-to-gst-api
description: Learn how to fetch all GSTIN numbers registered to a company with the help of this API. Login and use the access token as an authorization header before sending a GST request. Get guidance on providing the company's name as input based on the API input gu
createdAt: 2022-09-19T07:28:09.000Z
---

# Introduction

This API helps to fetch all GSTIN numbers registered to the company by providing its name.

## How to call the API

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

## API Input Guidelines

Company's name needs to be given as Input

## Sample Curl

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/..patronId../gstns",
  "name": "Company name to GST",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization ",
        "type": "string",
        "children": [],
        "description": "Authorizations token"
      },
      {
        "kind": "required",
        "name": "content-type",
        "type": "string",
        "children": [],
        "description": "application/json"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "task",
        "type": "string",
        "description": "Company name to Gst"
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "companyName",
            "type": "string",
            "description": "Company name as Input"
          }
        ],
        "description": "Contains essential information"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "F0BxlALK1PqHhkH6v_sad",
        "code": "{\n    \"task\": \"companyNameToGst\",\n    \"essentials\": {\n        \"companyName\": \"Signzy\"\n    },\n    \"id\": \"6339766c4c2f12f3ecxxxx\",\n    \"patronId\": \"6319d81fa341350e797xxxx\",\n    \"result\": {\n        \"gstDetails\": [\n            {\n                \"name\": \"SIGNZY TECHNOLOGIES PRIVATE LIMITED\",\n                \"state\": \"Maharashtra\",\n                \"gstin\": \"27AAWCS355xxxxx\"\n            },\n            {\n                \"name\": \"SIGNZY TECHNOLOGIES PRIVATE LIMITED\",\n                \"state\": \"Karnataka\",\n                \"gstin\": \"29AAWCS355xxxxx\"\n            }\n        ]\n    }\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "F0BxlALK1PqHhkH6v_sad"
  },
  "examples": {
    "languages": [
      {
        "id": "qAB5-KRFdwNpNLGuD0ZuB",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/gstns' \\\n--header 'Authorization: <token>' \\\n--header 'content-type: application/json' \\\n--data-raw '{\n    \"task\": \"companyNameToGst\",\n    \"essentials\": {\n        \"companyName\": \"<Name of the company>\"\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "P-lVHg5_my-anM6cZcO__",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/patrons/gstns' \\\r\n--header 'Authorization: <token>' \\\r\n--header 'content-type: application/json' \\\r\n--data-raw '{\r\n    \"task\": \"companyNameToGst\",\r\n    \"essentials\": {\r\n        \"companyName\": \"<Name of the company>>\"\r\n    }\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "qAB5-KRFdwNpNLGuD0ZuB"
  },
  "description": "Fetching Gst number by Company name",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

### Response Parameter

| ***Parameter Name&#x20;*** | **Description**                                |
| -------------------------- | ---------------------------------------------- |
| Id                         | Contains Unique Id                             |
| patronId                   | Contains patron Id                             |
| result                     | Shows Result                                   |
| result.gstDetails          | Contains all the GSTIN details of the company. |
| result.gstDetails.name     | Name of the company                            |
| result.gstDetails.state    | State in which the company is registered       |
| result.gstDetails.gstin    | GSTIN number of the company                    |



:::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](mailto\:help@signzy.com).
:::
