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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"docType": "<docType>",
"documentId": "<documentId>"
},
"name": "update_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 |