Update a customer invoice's head
dolibarr_invoice_updateUpdate draft invoice head fields such as date, payment terms, payment mode, public or private notes, and custom fields. Only the fields you provide are changed; invoice lines stay untouched.
Instructions
Changes head fields of a draft invoice (not its lines). Only the fields given are changed.
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": {
"invoice_id": "<invoice_id>"
},
"name": "dolibarr_invoice_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date as YYYY-MM-DD. | |
| invoice_id | Yes | ||
| note_public | No | Note visible to the third party (printed on documents). | |
| note_private | No | Internal note. | |
| ref_customer | No | ||
| custom_fields | No | Custom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list. | |
| payment_mode_id | No | ||
| payment_terms_id | No |