Create a supplier invoice
dolibarr_supplier_invoice_createRecord a draft supplier invoice and its line items; product lines without a unit price use the supplier's product price. Validate it afterward with the supplier invoice action tool.
Instructions
Records a draft invoice received from a supplier, with its lines. Product lines without unit_price use the supplier's price for that product. Validate it with dolibarr_supplier_invoice_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": {
"thirdparty_id": "<thirdparty_id>",
"ref_supplier": "<ref_supplier>"
},
"name": "dolibarr_supplier_invoice_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Invoice date; default today. | |
| label | No | ||
| lines | No | ||
| due_date | No | Date as YYYY-MM-DD. | |
| note_public | No | Note visible to the third party (printed on documents). | |
| note_private | No | Internal note. | |
| ref_supplier | Yes | The supplier's invoice number (required, unique per supplier). | |
| custom_fields | No | Custom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list. | |
| thirdparty_id | Yes | Supplier id. |