Create an invoice from a sales order
dolibarr_invoice_create_from_orderCreates a draft customer invoice from a sales order, copying its customer and lines and linking the invoice to that order. Use it to start invoicing an existing order without re-entering data.
Instructions
Creates a draft customer invoice with the customer and lines of a sales order, linked to it.
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_invoice_create_from_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes |