Skip to main content
GET
/
v1
/
invoices
/
{invoiceId}
/
pdf
Download invoice PDF
curl --request GET \
  --url https://api.infinity.swiss/v1/invoices/{invoiceId}/pdf \
  --header 'x-api-token: <api-key>'
"<string>"
The response body is the raw PDF binary. The Content-Disposition header includes a suggested filename based on the invoice number. If you only need a public link rather than the bytes, the full invoice representation includes a publicPdfUrl field that can be shared without an API token.

Authorizations

x-api-token
string
header
required

API token for authentication. Obtain from your Infinity account settings.

Path Parameters

invoiceId
string
required

The id of the invoice to render.

Response

The invoice PDF.

The response is of type file.