---
title: PAN To GST List
slug: api-marketplace/pan-to-gst-list
description: The PAN to GST List API by Signzy enables businesses in India to easily retrieve a list of GSTINs associated with a specific PAN number. With a simple POST request and authorization token, users can access a JSON object containing vital information like G
createdAt: 2023-04-20T20:31:15.000Z
---

## Introduction

The "PAN To GST List" API is a valuable tool for businesses and financial professionals to retrieve a list of GSTINs (Goods and Services Tax Identification Numbers) associated with a specific PAN (Permanent Account Number). This API simplifies the process of tracking and managing multiple GST registrations under a single PAN. Users can input a PAN number and receive a comprehensive list of GSTINs, along with their statuses and the states in which they are registered. This feature is especially useful for auditing, tax planning, and ensuring compliance across various state jurisdictions, providing a streamlined approach to managing tax-related information.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```none
POST https://api.signzy.app/api/v3/gst/panToGstnList
```
:::

:::CodeblockTabs
UAT Endpoint

```none
POST https://api-preproduction.signzy.app/api/v3/gst/panToGstnList
```
:::

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**                                | **Required** |
| ------------- | ------------- | ---------------------------------------------- | ------------ |
| panNumber     | String        | PAN (Permanent Account Number) of the company. | Mandatory    |
| callbackUrl   | String        | URL where callbacks are sent.                  | Optional     |

:::CodeblockTabs
Input body

```json
{
    "panNumber": "<PAN number>",
    "callbackUrl": "<Callback url>"
}
```
:::

***

### 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/panToGstnList' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Auth token>' \
--data '{
    "panNumber": "<PAN number>",
    "callbackUrl": "<Callback url>"
}'
```

Node.js

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "panNumber": "<PAN number>",
  "callbackUrl": "<Callback url>"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/gst/panToGstnList',
  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/panToGstnList"

payload = json.dumps({
  "panNumber": "<PAN number>",
  "callbackUrl": "<Callback url>"
})
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/panToGstnList"
  method := "POST"

  payload := strings.NewReader(`{
    "panNumber": "<PAN number>",
    "callbackUrl": "<Callback url>"
}`)

  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                  | Object           | The main result object containing GSTIN list.                            |
| result.gstinList        | Array of Objects | List of GSTIN objects.                                                   |
| result.gstinList.gstin  | String           | Goods and Services Tax Identification Number and UIN number              |
| result.gstinList.status | String           | Indicates the status of the GSTIN (e.g., "ACTIVE").                      |
| result.gstinList.state  | String           | The state to which the GSTIN belongs (e.g., "KARNATAKA", "MAHARASHTRA"). |

:::CodeblockTabs
200

```json
{
    "result": {
        "gstinList": [
            {
                "gstin": "29AAWCS3552Q1Z6",
                "status": "ACTIVE",
                "state": "KARNATAKA"
            },
            {
                "gstin": "27AAWCS3552Q1ZA",
                "status": "ACTIVE",
                "state": "MAHARASHTRA"
            }
        ]
    }
}
```

400

```json
// Passing invalid PAN number
{
    "error": {
        "name": "error",
        "message": "Invalid PAN number",
        "status": "Bad Request",
        "statusCode": 400
    }
}

// Passing empty string in PAN number
{
    "error": {
        "name": "error",
        "message": "PAN number is not allowed to be empty string",
        "status": "Bad Request",
        "statusCode": 400
    }
}

// Passing non-string value in PAN number
{
    "error": {
        "name": "error",
        "message": "PAN number must be a string",
        "status": "Bad Request",
        "statusCode": 400
    }
}
```

401

```json
// If Authorization token is not passed
{
    "message": "No API key found in request"
}

// If Authorization token is invalid
{
    "message": "Invalid authentication credentials"
}
```

404

```json
{
    "error": {
        "name": "error",
        "message": "GSTIN not found",
        "status": 404,
        "statusCode": 404
    }
}
```

409

```json
{
    "error": {
        "reason": "Error From Upstream",
        "status": 409,
        "message": "Upstream Down",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
```
:::

***

**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!
