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

# Download a file

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

Downloads a file that was attached to a payment link.

## Path parameters

- `paymentId` string, required
- `fileId` string, required

## Response `200`

OK.

## Other responses

- `400` — Bad request.
- `401` — Request lacks valid authentication.
- `404` — The specified resource was not found.

---

[API](https://skmtc.net/peachpayments/apis/checkout.md) · [All operations](https://skmtc.net/peachpayments/apis/checkout/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/peachpayments/checkout/revisions/3a98165665f8/schema)
