Upload an invoice-specific attachment
upload_sales_invoice_attachmentUpload a base64-encoded file (PDF, image, DOC, XLS) as an attachment to a sales invoice. Attachments are included in email sends and preserved on invoice updates.
Instructions
Upload an invoice-specific attachment.
Upload a file as a document-specific attachment for a sales invoice. The file content must be base64-encoded. Supported types: PDF, PNG, JPEG, GIF, DOC, DOCX, XLS, XLSX. Maximum size: 10 MB. The attachment is automatically included when the invoice is sent by email and is preserved when the invoice is updated. Do not reference these IDs in the 'attachments' field of POST/PUT requests; manage them only through this endpoint.
[Sales Invoices] POST /invoices/sales/{id}/attachments
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the sales invoice. | |
| body | Yes | ||
| administration | No | The client administration to act on. Only one is configured: default. |