Create a commercial proposal
dolibarr_proposal_createCreates a draft proposal (quote) for a customer or prospect and adds product or free-text lines; edit or delete it before validating.
Instructions
Creates a draft proposal (quote) for a customer or prospect and adds its lines. A draft can be edited or deleted; validate it with dolibarr_proposal_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>"
},
"name": "dolibarr_proposal_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Proposal date; default today. | |
| lines | No | Lines to add to the new draft. | |
| valid_days | No | Validity in days; default from Dolibarr's setup. | |
| note_public | No | Note visible to the third party (printed on documents). | |
| note_private | No | Internal note. | |
| ref_customer | No | The customer's own reference. | |
| custom_fields | No | Custom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list. | |
| delivery_date | No | Date as YYYY-MM-DD. | |
| thirdparty_id | Yes |