dolibarr_create_contract
Create a new contract header for a client in Dolibarr. Use the socid parameter to specify the client, then add line items separately.
Instructions
Create a new contract header. Add line items afterwards with dolibarr_add_contract_line.
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_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| socid | Yes | Thirdparty (client) ID | |
| date_contrat | No | Unix timestamp; defaults to now if omitted | |
| note_public | No | ||
| note_private | No | ||
| commercial_signature_id | No | Dolibarr user ID who signed internally | |
| commercial_suivi_id | No | Dolibarr user ID following up the account |