---
title: "Download invoice PDF"
method: GET
path: "/customer-invoices/{id}/pdf"
tags: ["Customer Order"]
---

# Download invoice PDF

`GET /customer-invoices/{id}/pdf`

## Request

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

Streams the PDF for a customer invoice. Requires Bearer token; the invoice must belong to the authenticated customer.

## Path parameters

- `id` integer, required

## Headers

- `Authorization` string, required
- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Response `200`

Binary file stream

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Invoice not found

---

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