Create a product or service
dolibarr_product_createCreate a product or service in Dolibarr with a unique reference and label; search existing products first to avoid duplicate references.
Instructions
Creates a product or service. Search first with dolibarr_product_search: the ref must be unique.
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": {
"ref": "<ref>",
"label": "<label>"
},
"name": "dolibarr_product_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Product reference (code). Must be unique. | |
| kind | No | product | |
| label | Yes | ||
| price | No | Selling price before tax. | |
| weight | No | ||
| barcode | No | ||
| for_sale | No | ||
| vat_rate | No | Default VAT rate in percent. | |
| description | No | ||
| lot_tracked | No | Track lots / serial numbers (needs the Lots module). | |
| note_public | No | Note visible to the third party (printed on documents). | |
| for_purchase | No | ||
| note_private | No | Internal note. | |
| custom_fields | No | Custom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list. |