Skip to main content
POST
Add an invoice PDF attachment
Send the PDF as the file part of a multipart request with a title field. The response contains the uploaded file under attachment. You can attach up to ten PDFs to an invoice. Each file may be at most 10 MiB (10,485,760 bytes). Infinity checks the actual file contents and rejects PDFs whose pages cannot be rendered. Issued invoices allow attachment changes only while they have no payments, have not been annulled, belong to an editable fiscal year, and are outside settled VAT periods. Draft attachments remain editable. Attachments added through the API also appear in the invoice editor and generated invoice PDF.

Authorizations

x-api-token
string
header
required

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

Path Parameters

invoiceId
string
required

Body

multipart/form-data
file
file
required

A valid PDF file. Its actual contents determine its type.

title
string
required

Required upload title. The attachment name comes from the file's original filename.

Response

The uploaded attachment.

attachment
object
required