update_document
Update existing documents in Holded by specifying the document type and ID, then modify line items, dates, notes, and other fields.
Instructions
Update an existing document
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Document date as Unix timestamp | |
| items | No | Array of line items | |
| notes | No | Notes for the document | |
| docType | Yes | Type of document | |
| currency | No | Currency code (e.g., EUR, USD) | |
| contactId | No | Contact ID for the document | |
| retention | No | IRPF retention percentage. Accepted on SALES documents only; rejected on purchases because Holded silently ignores it there. | |
| documentId | Yes | Document ID to update | |
| invoiceNum | No | Document reference number (e.g. invoice number from supplier) | |
| expAccountId | No | Expense account ID for expense documents | |
| salesChannelId | No | Sales channel ID to associate with the document |