---
id: pdf
title: "Settlement PDF"
sidebar_label: Settlement PDF
hide_title: true
description: "Reports API - Settlements - PDF"
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Ingress from "../../../src/components/ingress/ingress.react";

<Ingress title="Settlement PDF">
  Download the PDF report for each settlement made by Walley.
</Ingress>

Each settlement generates a PDF file that aggregates all transactions and fees (if any), giving you an overview of the transactions for the settlement period.

<a href="/settlements/testpartner-3.0_se_170814-170815.pdf" target="_blank">
  Example of PDF settlement file
</a>

<Tabs defaultValue="req" values={[
{ label: 'Request', value: 'req', },
{ label: 'Response', value: 'res', }
]}>

<TabItem value="req">

```http
GET /reports/settlements/{{settlementId}}/file/pdf HTTP/1.1
Host: api.uat.walleydev.com // Test environment. Production uses a different hostname.
Authorization: Bearer bXlVc2VybmFtZTpmN2E1ODA4MGQzZTk0M2VmNWYyMTZlMDE...
```

</TabItem>

<TabItem value="res">

```http
HTTP/1.1 200 OK

/* PDF file */
```

</TabItem>

</Tabs>

| Http status code | Description                                                                                                       |
| ---------------- | ----------------------------------------------------------------------------------------------------------------- |
| 200              | Successful request                                                                                                |
| 401              | Token missing, expired, or invalid. See [Authentication](/docs/reports/authentication)                             |
| 403              | No permission for this store                                                                                       |
| 404              | PDF not found                                                                                                     |

## Data Model

### Request

#### Request headers

| Header            | Required | Explanation                                                                                                                  |
| ----------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **Authorization** | Yes      | See [Authentication](/docs/reports/authentication) for how to generate the Bearer token value |

### Response

```text
File stream
```
