Create a shipment
dolibarr_shipment_createCreates a draft shipment for a validated sales order, assigning each line to a warehouse; no stock moves until the draft is validated.
Instructions
Creates a draft shipment for a validated sales order. Read the order with dolibarr_order_get for its line ids and quantities, and dolibarr_product_stock for where the goods are. Each line ships from one warehouse. Products tracked by lot or serial number cannot be shipped through the standard API; ship those in the Dolibarr web interface. A draft moves no stock; validate it with dolibarr_shipment_action.
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>",
"lines": "<lines>"
},
"name": "dolibarr_shipment_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| order_id | Yes | ||
| note_public | No | Note visible to the third party (printed on documents). | |
| note_private | No | Internal note. | |
| date_delivery | No | Planned delivery date. | |
| tracking_number | No |