---
title: View And Track Returns
slug: api-marketplace/view-and-track-returns
description: Get a sneak peek at the upcoming document packed with valuable information. Stay tuned for an insightful resource that promises to provide solutions and expert advice. Don't miss out on this forthcoming release that will surely elevate your knowledge and 
createdAt: 2023-04-20T20:31:03.000Z
---

### Introduction

The "View and Track Returns" API is a comprehensive solution for businesses and financial professionals to effortlessly monitor and verify GST (Goods and Services Tax) returns. With a simple API call using a GST number and financial year, users can access detailed information about filed GST returns, including filing dates, methods, periods, and types. This tool is invaluable for ensuring compliance with GST regulations and maintaining accurate financial records.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

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

:::CodeblockTabs
UAT Endpoint

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

***

### Request body parameters

| **Parameter**            | **Data Type**      | **Description**                              | **Required**             |
| ------------------------ | ------------------ | -------------------------------------------- | ------------------------ |
| gstin<br />financialYear | String<br />String | GST Identiication Number<br />Financial Year | Mandatory<br />Mandatory |
| consent                  | String             | User's consent                               | Optional                 |

```json
{
    "gstin": "<gstin>",
    "financialYear": "2017-18",
    "consent":"Y/N"
}
```

***

### 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/returns' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Auth Token>' \
--data '{
    "gstin": "<GST number>",
    "financialYear": "2017-18",
    "consent":"Y/N"
}'
```

Node.js

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

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

payload = json.dumps({
  "gstin": "<gstin>",
  "financialYear": "2017-18"
})
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/returns"
  method := "POST"

  payload := strings.NewReader(`{
    "gstin": "<gstin>",
    "financialYear": "2017-18"
}`)

  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.filedReturns\[0].valid                      | String        | Whether the return is valid either true or false. |
| result.filedReturns\[0].methodOfFilling            | String        | The method of filing.                             |
| result.filedReturns\[0].dateOfFilling              | String        | The date of filing.                               |
| result.filedReturns\[0].returnPeriod               | String        | The return period.                                |
| result.filedReturns\[0].returnType                 | String        | The type we are returning.                        |
| result.filedReturns\[0].applicationReferenceNumber | String        | The application reference number.                 |
| result.filedReturns\[0].status                     | String        | The status of the return.                         |

:::CodeblockTabs
200

```json
{
    "result": {
        "filedReturns": [
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "20/03/2018",
                "returnPeriod": "02/2018",
                "returnType": "GSTR3B",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            },
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "22/02/2018",
                "returnPeriod": "01/2018",
                "returnType": "GSTR3B",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            },
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "02/02/2018",
                "returnPeriod": "12/2017",
                "returnType": "GSTR1",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            },
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "17/01/2018",
                "returnPeriod": "12/2017",
                "returnType": "GSTR3B",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            },
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "25/12/2017",
                "returnPeriod": "09/2017",
                "returnType": "GSTR1",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            },
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "19/12/2017",
                "returnPeriod": "11/2017",
                "returnType": "GSTR3B",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            },
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "15/11/2017",
                "returnPeriod": "10/2017",
                "returnType": "GSTR3B",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            },
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "16/10/2017",
                "returnPeriod": "09/2017",
                "returnType": "GSTR3B",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            },
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "23/09/2017",
                "returnPeriod": "07/2017",
                "returnType": "GSTR1",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            },
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "19/09/2017",
                "returnPeriod": "08/2017",
                "returnType": "GSTR3B",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            },
            {
                "valid": "Yes",
                "methodOfFilling": "ONLINE",
                "dateOfFilling": "22/08/2017",
                "returnPeriod": "07/2017",
                "returnType": "GSTR3B",
                "applicationReferenceNumber": "<Reference number>",
                "status": "Filed"
            }
        ]
    }
}
```

400

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

// For invalid financial year
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Invalid financialYear",
        "status": 400
    }
}

// when Financial year field is not in the request body
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "financialYear is required",
        "status": 400
    }
}

// when gstin field is not in the request body
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "gstin Number is required",
        "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"
}
```

404

```json
{
    "error": {
        "statusCode": 404,
        "name": "Error",
        "message": "No Record found for the provided Inputs",
        "status": 404
    }
}
```
:::

***

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