# Download a Report

<Warning>
**Recent endpoint update**

This endpoint was recently updated to version 2 (see "V2" in the URL). Version 1 has been deprecated, we recommend switching to V2 as soon as possible.
</Warning>

To retrieve the file content, use your API credentials to access the file specified by the report object `id`.

<Note>
**Downloading reports**

The API response will include a link with to download the report. Open the link through your browser to access the data.
</Note>

Explore the following links to access various report examples:

<Columns cols={2}>
  <Card title="Payments" href="https://github.com/yuno-payments/yuno-docs/raw/refs/heads/main/raw-files/report-examples/example-payments-csv.zip" arrow />

  <Card title="Settlements & Fees" href="https://github.com/yuno-payments/yuno-docs/raw/refs/heads/main/raw-files/report-examples/example-settlement-fees-report.csv.zip" arrow />

  <Card title="Settlement Payouts" href="https://github.com/yuno-payments/yuno-docs/raw/refs/heads/main/raw-files/report-examples/example-settlement-payouts-report.csv.zip" arrow />

  <Card title="Transaction Report" href="https://github.com/yuno-payments/yuno-docs/raw/refs/heads/main/raw-files/report-examples/example-transaction-report-csv.zip" arrow />

  <Card title="Reconciliation Overview" href="https://github.com/yuno-payments/yuno-docs/raw/refs/heads/main/raw-files/report-examples/example-reconciliation-overview-report.csv.zip" arrow />

  <Card title="Communications" href="https://github.com/yuno-payments/yuno-docs/raw/refs/heads/main/raw-files/report-examples/example-communications-csv.zip" arrow />
</Columns>

**GET** `/reports/{report_id}/download`

Base URL: `https://api-sandbox.whitelabel.com/v2`

Download a Report

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `X-Organization-Code` (string, required)
  Organization code associated to the request.

## Path parameters

- `report_id` (string, required)
  The report unique identifier.

## Responses

### 200

200

- `type` (string)
- `download_link` (string)
- `status` (string)

Example:

```json
{
  "type": "TRANSACTIONS",
  "download_link": "https://s3.amazonaws.com/.../report.csv",
  "status": "AVAILABLE"
}
```

### 400

400

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "INVALID_REQUEST",
  "messages": [
    "Invalid request"
  ]
}
```

### 401

401

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "INVALID_CREDENTIALS",
  "messages": [
    "Invalid credentials"
  ]
}
```

### 403

403

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "AUTHORIZATION_REQUIRED",
  "messages": [
    "The merchant has no authorization to use this API."
  ]
}
```