---
title: "Download a file"
method: GET
path: "/api/payments/{paymentId}/files/{fileId}"
tags: ["Files"]
---

# Download a file

`GET /api/payments/{paymentId}/files/{fileId}`

## Request

- Base URL: `https://sandbox-l.ppay.io`
- URL: `https://sandbox-l.ppay.io/api/payments/{paymentId}/files/{fileId}`
- Auth: HTTP bearer

Downloads a file that was attached to a payment link.

## Response `200`

File downloaded successfully.

## Other responses

- `400`: The request parameters failed validation.
- `401`: Request lacks valid authentication.
- `404`: The specified resource was not found.

---

[API](https://skmtc.dev/peachpayments/apis/payment-links.md) - [All operations](https://skmtc.dev/peachpayments/apis/payment-links/llms.txt) - [OpenAPI document](https://skmtc.dev/peachpayments/apis/payment-links/revisions/3a63dca6b297?raw)
