---
title: Fetch Report
slug: api-marketplace/2-NN-fetch-report
createdAt: 2024-06-19T09:43:12.772Z
---

This API will be used to fetch the consolidated report of multiple GSTINs

### cURL

:::CodeblockTabs
Production

```curl
curl --location --globoff 'https://api.signzy.app/api/v3/gstr-analytics/fetch-consolidated-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-consolidated-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 merge report 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. Request is in progress.
```

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

