create_product
Create a new product or service in the Dolibarr catalog with reference, label, pricing, stock, and tax details.
Instructions
Créer un nouveau produit ou service dans le catalogue
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Référence interne unique (ex: CLOUD-AZ-001) | |
| type | No | 0=Produit physique, 1=Service. Défaut: 1 | |
| label | Yes | Libellé du produit/service | |
| price | No | Prix HT de vente | |
| stock | No | Stock initial (pour produits physiques) | |
| status | No | 1=En vente, 0=Inactif | |
| tva_tx | No | Taux TVA % (ex: 18) | |
| weight | No | Poids en kg (pour produits physiques) | |
| barcode | No | Code barre / EAN | |
| price_ttc | No | Prix TTC (calculé si price fourni) | |
| status_buy | No | 1=Achetable, 0=Non achetable | |
| description | No | Description détaillée | |
| price_base_type | No | "HT" ou "TTC". Défaut: HT | |
| accountancy_code_buy | No | Code comptable d'achat | |
| accountancy_code_sell | No | Code comptable de vente |