---
title: Fetch Report
slug: api-marketplace/fetch-report
createdAt: 2024-12-10T09:15:21.812Z
---

## Introduction:

This API is used to fetch the analytics report run on GST data fetched from AA.

## Sample cURL:

:::CodeblockTabs
preproduction

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/account-aggregator-switch/fetch-report' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth token>' \
--data '{
    "requestId": "79f7b232-5dc2-421c-818f-8acbd4b5e2bf"
}'
```
:::

## Input Parameters:

| **Parameter** | **Type** | **Description**                                        | **Mandatory/Optional** |
| ------------- | -------- | ------------------------------------------------------ | ---------------------- |
| requestId     | String   | Request Id generated during the create report request. | Mandatory              |

## Output Parameters:

| **Key**         | **Type** | **Description**   |
| --------------- | -------- | ----------------- |
| result          | Object   |                   |
| result.status   | String   | SUCCESS           |
| result.message  | String   | Completed         |
| result.jsonUrl  | String   | Json report link  |
| result.excelUrl | String   | Excel report link |
| result.pdfUrl   | String   | Pdf report link   |

## Status Codes:

:::CodeblockTabs
200

```json
{
    "result": {
        "status": "SUCCESS",
        "message": "Completed",
        "jsonUrl": "https://persist.signzy.tech/api/files/42184354/download/d61488d1ea754b42b07394bf9ddc84462d36fa77230245758c6f9faa925ffb39.json",
        "excelUrl": "https://persist.signzy.tech/api/files/42184356/download/31634308ee964b10858c96451364c4de19f88e88adcc461489ca10a9af2e826b.xlsx",
        "pdfUrl": "https://persist.signzy.tech/api/files/42184359/download/7f15dcf61c294e49b71aacf7f4e8d6ddf3371a4fff904906a531c7cc2ec2e95c.pdf"
    }
}
```

401

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

{
    "message": "No API key found in request"
}
```

404

```json
{
    "error": {
        "name": "error",
        "message": "Data not found",
        "status": 404,
        "reason": "Error",
        "type": "Not Found",
        "statusCode": 404
    }
}
```

409

```json
{
    "error": {
        "reason": "ERROR",
        "status": 409,
        "message": "Unable to fetch data from upstream",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
```

500

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

