---
title: Gst detailed-Generate OTP API
slug: api-marketplace/gst-detailed-generate-otp-api
createdAt: 2024-09-12T08:55:29.830Z
---

## Introduction

The GSTIN Detailed Search with OTP API is an advanced and efficient solution designed for businesses, tax professionals, and financial analysts. This API introduces an additional layer of security through an OTP (One-Time Password) verification process.

When a user inputs a GSTIN number, an OTP is triggered and sent to the mobile number registered with the GST system. The user must enter this OTP to verify their access before retrieving the detailed report about the corresponding business entity. Once verified, you can access a wide array of information, including legal and trade names, business constitution, jurisdiction details, registration date, taxpayer type, GSTIN status, filing status, and filing frequency on request.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```none
POST https://api.signzy.app/api/v3/detailed-gst/generateOtp 
```
:::

:::CodeblockTabs
UAT Endpoint

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

***

### 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. |

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**                                                      | **Required** |
| ------------- | ------------- | -------------------------------------------------------------------- | ------------ |
| gstNumber     | String        | Goods and Services Tax Identification Number of the user or company. | Mandatory    |

:::CodeblockTabs
Input body

```json
{
    "gstNumber": "27AAWCS3552Q1ZA"
}
```
:::

***

:::CodeblockTabs
Curl

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/detailed-gst/generateOtp' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Auth Token>' \
--data '{
    "gstNumber": "<gstNumber>"
}'
```

Node.js

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

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/detailed-gst/generateOtp',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': ''
  },
  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/detailed-gst/generateOtp"

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

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/detailed-gst/generateOtp "
  method := "POST"

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

  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", "")

  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.requestId | String        | The Id which will be passed on in next API call to uniquely identify each of the request |

:::CodeblockTabs
200

```json
{
    "result": {
         "requestId": "WoAIXnRsMxoLtLCgprZW"
    }
}
```

400

```json
// Invalid GSTIN
{
  "error": {
    "name": "error",
    "message": "Invalid GSTIN",
    "status": 400,
    "reason": "VALIDATION_ERROR",
    "type": "Bad Request",
    "statusCode": 400
  }
}
// Passing empty string
{
  "error": {
    "name": "error",
    "message": "GSTIN is not allowed to be an empty string",
    "status": 400,
    "reason": "VALIDATION_ERROR",
    "type": "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"
}
```

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!
