Validate, close or delete a shipment
dolibarr_shipment_actionValidate, close, or delete a Dolibarr shipment with a safe preview by default. Set confirm=true only after approval to apply the irreversible status change.
Instructions
Moves a shipment to another status. Actions: validate (the draft gets its final ref; depending on the stock setup this takes the goods out of stock); close (classifies the shipment as delivered); delete (deletes the shipment 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": {
"shipment_id": "<shipment_id>",
"action": "<action>"
},
"name": "dolibarr_shipment_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. | |
| shipment_id | Yes |