Validate a supplier invoice, set it back to draft or delete it
dolibarr_supplier_invoice_actionValidate a supplier invoice, return an unpaid invoice to draft, or permanently delete it—preview changes first and require confirmation plus an audit reason.
Instructions
Moves a supplier invoice to another status. Actions: validate (the draft gets its final ref and becomes payable; this is an accounting document); set_draft (an unpaid validated invoice goes back to draft); delete (deletes the supplier invoice permanently). This step cannot simply be undone: without confirm=true it only returns a preview.
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": {
"supplier_invoice_id": "<supplier_invoice_id>",
"action": "<action>"
},
"name": "dolibarr_supplier_invoice_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| reason | No | One line on why, kept in the audit log. Required when confirm is true. | |
| confirm | No | false (default) = change nothing, only show what would happen. true = do it. Set true only after the user has explicitly agreed to this exact step. | |
| supplier_invoice_id | Yes |