Update a sales order's head
dolibarr_order_updateUpdate selected header fields of a Dolibarr sales order, including customer reference, delivery date, notes, and custom fields, without modifying its order lines.
Instructions
Changes head fields of a sales order (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": {
"order_id": "<order_id>"
},
"name": "dolibarr_order_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_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. | |
| delivery_date | No | Date as YYYY-MM-DD. |