Hanzo
OpenapiBilling

Download one invoice as a PDF

Answers the invoice as an attachment — `application/pdf` under a Content-Disposition naming the invoice number — rather than as a JSON value, which is why…

GET /v1/billing/invoices/{id}/pdf

Addresshttps://api.hanzo.ai/v1/billing/invoices/{id}/pdf
MethodGET
Operationget_billing_invoices_by_id_pdf
AuthAuthorization: Bearer $HANZO_API_KEY

Answers the invoice as an attachment — application/pdf under a Content-Disposition naming the invoice number — rather than as a JSON value, which is why this one route is untyped where its five siblings are typed: a PDF is bytes with a filename, and the two headers are the whole contract.

The render is a PURE function of the invoice: one page, no timestamps and no random ids, so the same invoice renders the same bytes however often it is asked for and a retry after a dropped connection costs a re-render and nothing else.

The invoice is read from the caller's own org, taken from the VALIDATED IAM owner claim and never from a client header, and the lookup is scoped at the storage layer — so an id belonging to another customer resolves to nothing and answers 404 rather than being found and then refused.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo billing invoices pdf <id>

Billing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page