---
title: "Download invoice PDF"
method: GET
path: "/files/download/invoice"
tags: ["Files"]
---

# Download invoice PDF

`GET /files/download/invoice`

Downloads an invoice as a PDF. Can be accessed with an invoice ID (requires team file key via fk query parameter) or invoice token (public access).

## Query parameters

- `id` string, uuid — Invoice ID (UUID). Requires team file key (fk) query parameter for authentication.
- `fk` string — Team file key for authenticated invoice access. Required when using invoice ID. This key is returned in the user data response (GET /users/me) as the `fileKey` field.
- `token` string — Invoice access token for public access. When used alone (without id), allows public access to the invoice.
- `preview` boolean, nullable — If true, the PDF will be displayed inline. If false, it will be downloaded.
- `type` 'invoice' | 'receipt' — Type of document to download. Use 'receipt' to download a receipt for paid invoices.

## Response `200`

Invoice PDF

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/midday-ai/apis/midday-api.md) · [All operations](https://skmtc.net/midday-ai/apis/midday-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/midday-ai/midday-api/versions/c0df9243c1b0/schema)
