---
title: Fetch Report
slug: api-marketplace/tbgd-fetch-report
description: Learn about the API responsible for generating a comprehensive GSTR analytics report in this document. Access to the API requires an authorization token from Signzy. Get acquainted with example cURL commands, request headers, parameters, and response data
createdAt: 2023-09-21T15:50:49.289Z
---

### Introduction

This API is responsible for generating a  GSTR analytics report based on the requestId that was created during OTP Generation.&#x20;
You will require an authorization token to use this API. This authorization token will be generated by Signzy for you and will be used in each API call. Please contact help\@signzy.com for this.

### cURL

:::CodeblockTabs
Production

```curl
curl --location --globoff 'https://api.signzy.app/api/v3/gstr-analytics/fetch-report' \
--header 'Authorization: <Access-Token>' \
--header 'Content-Type: application/json' \
--data '{
    "requestId": "d54becdf-05d9-49b9-9af8-7c93ae2772a4"
}
```

Pre-Production

```curl
curl --location --globoff 'https://api-preproduction.signzy.app/api/v3/gstr-analytics/fetch-report' \
--header 'Authorization: <Access-Token>' \
--header 'Content-Type: application/json' \
--data '{
    "requestId": "d54becdf-05d9-49b9-9af8-7c93ae2772a4"
}
```
:::

### Request Headers

| Key           | Value            |
| ------------- | ---------------- |
| Authorization | Shared by Signzy |
| Content-type  | application/json |

### Request Body

```json
{
    "requestId": "d54becdf-05d9-49b9-9af8-7c93ae2772a4"
}
```

| PARAMETERS | DESCRIPTION                                                 | TYPE   | VALUE (COMPULSORY OR OPTIONAL) |
| ---------- | ----------------------------------------------------------- | ------ | ------------------------------ |
| requestId  | The requestId that was created during Generate OTP API call | String | COMPULSORY                     |

### Response Data

:::CodeblockTabs
Production JSON

```json
{
    "result": {
        "jsonDataUrl": "https://persist.signzy.tech/api/files/4977718/download/d7c6741a42ac42a891a0dbbba67e130ac2b0448397264e2db647a0d01e7d8d2e.json",
        "excelUrl": "https://persist.signzy.tech/api/files/4977717/download/0b55ce3e3e5e42a0b3d8b3f372aa94b6c1b381e47293479e96592089ff6aa2b3.xlsx",
        "pdfUrl": "https://persist.signzy.tech/api/files/4977719/download/e07143d69dd648df8ae1a2892c719a130a1cc92a1271466598f3c583ca18e899.pdf"
    }
}
```

Pre-production JSON

```json
{
    "result": {
        "jsonDataUrl": "https://preproduction-persist.signzy.tech/api/files/4977718/download/d7c6741a42ac42a891a0dbbba67e130ac2b0448397264e2db647a0d01e7d8d2e.json",
        "excelUrl": "https://preproduction-persist.signzy.tech/api/files/4977717/download/0b55ce3e3e5e42a0b3d8b3f372aa94b6c1b381e47293479e96592089ff6aa2b3.xlsx",
        "pdfUrl": "https://preproduction-persist.signzy.tech/api/files/4977719/download/e07143d69dd648df8ae1a2892c719a130a1cc92a1271466598f3c583ca18e899.pdf"
    }
}
```
:::

| PARAMETERS  | DESCRIPTION                                                                                      | TYPE   | VALUE (COMPULSORY OR OPTIONAL) |
| ----------- | ------------------------------------------------------------------------------------------------ | ------ | ------------------------------ |
| jsonDataUrl | An URL that holds the GSTR analytics report in JSON format                                       | String | OPTIONAL                       |
| excelUrl    | An URL that holds the GSTR analytics report in Excel format                                      | String | OPTIONAL                       |
| pdfUrl      | An URL that holds the GSTR analytics report in PDF format                                        | String | OPTIONAL                       |
| status      | This serves as an enum to indicate the status of the API call. Possible values - SUCCESS, FAILED | String | OPTIONAL                       |
| message     | It indicates whether the OTP was successfully authenticated or the request is still in progress  | String | OPTIONAL                       |

### Status Codes

:::CodeblockTabs
200 OK

```json
{
    "result": {
        "status": "SUCCESS",
        "message": "Request is in progress."
    }
}
1. OTP is generated. Please proceed with the submit otp API to start processing.
2. Request is in progress.
3. OTP has expired. Please retry from OTP generation.
```

404

```json
{
    "error": {
        "name": "error",
        "message": "requestId not found",
        "status": 404,
        "reason": "NOT_FOUND",
        "type": "Not Found",
        "statusCode": 200
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "\"requestId\" must be a valid GUID",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 200
    }
}

1. "\"requestId\" must be a valid GUID"
2. "\"requestId\" must be a string"
3. "\"requestId\" is required"
```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

500

```json
{
    "error": {
        "name": "error",
        "message": "Internal Server Error",
        "status": 500,
        "reason": "ERROR",
        "type": "Internal Server Error",
        "statusCode": 500
    }
}
```
:::

***

:::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](#).
:::

