Skip to content

Print Invoice (PDF)

Returns the invoice as an application/pdf binary attachment — the same PDF the admin panel produces. Requires the sales.invoices.view permission.

Endpoint

EndpointMethod
/api/admin/invoices/{id}/printGET

Response headers

Content-Type: application/pdf
Content-Disposition: attachment; filename="invoice-{id}.pdf"

The body is a raw PDF — do not JSON-decode it.

GraphQL

There is no GraphQL counterpart for this endpoint — GraphQL transports cannot return a binary PDF stream. Use this REST endpoint when you need the PDF.

Released under the MIT License.