> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.usegrade.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoices

> Download invoice or receipt PDFs via /sdk/v1.

All endpoints below require:

* `X-Application-Id`
* `X-Api-Key`

## GET /sdk/v1/invoice/pdf

Download an invoice or receipt PDF.

### Query parameters

* `invoiceId` (required)

### Response

Returns `application/pdf` with `Content-Disposition: attachment; filename="invoice_<number>.pdf"` or `receipt_<number>.pdf`.

### Common errors

* `400`: missing `invoiceId`
* `403`: invoice exists but is not accessible to the authenticated agency
* `404`: invoice not found
