Generate Invoice PDF
Retrieves a PDF‐formatted version of an existing invoice.
Clients issue a GET request to /v2/invoice/pdf?id={id}
where {id}
is the numeric identifier of the invoice you wish to download. On success, the server responds with HTTP 200
and streams back a binary PDF (Content-Type: application/pdf)
along with a Content-Disposition header that suggests the filename.
Because this is a read-only operation, it is safe and idempotent, and responses can be cached by HTTP caches or CDNs. If no invoice exists with the given ID, the endpoint returns HTTP 404 with a JSON error payload; any unexpected failure returns HTTP 500 with an explanatory message.
READ
access to the SALES
module is required to access this endpointAuthorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
ID of the invoice to generate a PDF for
Response
The response is of type file
.