---
title: "Download an invoice as PDF"
method: GET
path: "/invoices/{id}/print"
tags: ["Admin Sales: Invoices"]
---

# Download an invoice as PDF

`GET /invoices/{id}/print`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/invoices/{id}/print`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/invoices/:id/print/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the invoice as a PDF file (`application/pdf` attachment) — the response is a binary download, not JSON. There is no example body; the browser/client downloads `invoice-{id}.pdf`.

## Path parameters

- `id` integer, required

## Response `200`

The invoice PDF file is downloaded (application/pdf attachment).

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
