dolibarr_create_invoice
Create a draft invoice header for a client by providing their ID. Optionally link it to a proposal or set payment terms. Add line items separately.
Instructions
Create a new invoice header (draft). Add line items afterwards with dolibarr_add_invoice_line, then validate 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": {
"socid": "<socid>"
},
"name": "dolibarr_create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| socid | Yes | Thirdparty (client) ID | |
| date | No | Unix timestamp; defaults to now if omitted | |
| note_public | No | ||
| note_private | No | ||
| cond_reglement_code | No | ||
| fk_proposal | No | Source proposal ID, if converting a quote to invoice |