Skip to main content
GET
Download invoice PDF attachment
The response body is the raw PDF. The url of each listed attachment links here with a signature, so you can open it without your API key for one hour. After that, send your API key or list the attachments again. The response includes an ETag. Send it back in If-None-Match to get 304 Not Modified when the file has not changed.

Authorizations

x-api-token
string
header
required

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

Path Parameters

invoiceId
string
required
attachmentId
string
required

Query Parameters

expires
integer

Part of a signed link. When the link stops working, as a Unix timestamp in seconds.

signature
string

Part of a signed link. Proves that the link was issued by Infinity for this attachment.

Response

The attached PDF, sent inline with its original filename.

The response is of type file.