Download invoice PDF

View as Markdown
## Download invoice (PDF) Generates and downloads the invoice `:id` as a **PDF** (`application/pdf`). The invoice must belong to the store resolved from the API key. ### Authentication > ⚠️ This endpoint does **not** accept an API key. `@HibridAdminUserEndpoint` overrides `methods` to `[JWT_USER, JWT_POS, LIMITED_JWT_USER]`, so it requires a bearer token (dashboard user or POS session). Requires scope `Merchant.payment_link.read`. ### Path parameters - `id` — invoice (payment request) id. There is **no request body**. The response is a binary PDF stream with `Content-Disposition: attachment; filename="invoice-<id>.pdf"`. --- **Notas:** Handler: billingInvoicePdfService.generate. Auth methods are overridden to [JWT_USER, JWT_POS, LIMITED_JWT_USER] — API keys are rejected. Also available with a store prefix for POS: GET /v1/:storeId/payment-requests/billing-invoices/:id/pdf.

Authentication

x-api-keystring
API Key authentication via header

Path parameters

idstringRequired

Id of the invoice (payment request).

Headers

x-application-account-idstringOptional

Scope the request to a specific store / account instead of the one resolved from the API key. Aliases: the x-account-id header, or the application_account_id / account_id query parameter.