Upload document attachment
upload_attachmentUpload a local file (PDF, image, XML, zip) to attach to an issued or received invoice or document, returning an attachment token for use in create/update calls.
Instructions
Upload a local file (PDF, image, XML, zip...) as an attachment for an issued or received document. Returns an attachment_token: pass it as data.attachment_token in a create/update tool to bind it to a document. Unbound tokens expire after a while, so upload right before creating/updating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | "issued" for issued documents (invoices...), "received" for received documents (expenses...). | |
| filename | No | Display name for the attachment (defaults to the file's basename). | |
| file_path | Yes | Absolute path of the local file to upload. | |
| company_id | No | Fatture in Cloud company ID. Omit to use the default company configured for the session; discover IDs with list_companies. |