add_order_line
Add a product or custom line item to an existing customer order in Dolibarr. Specify the order ID, unit price, quantity, and VAT rate, with optional description, product ID, and discount.
Instructions
Ajouter une ligne à une commande client
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": {
"id": "<id>",
"subprice": "<subprice>",
"qty": "<qty>",
"tva_tx": "<tva_tx>"
},
"name": "add_order_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID de la commande | |
| qty | Yes | Quantité commandée | |
| desc | No | Description de la ligne | |
| tva_tx | Yes | Taux TVA % | |
| subprice | Yes | Prix unitaire HT | |
| fk_product | No | ID produit catalogue | |
| remise_percent | No | Remise % |