Create a third party
dolibarr_thirdparty_createCreates a customer, prospect, or supplier record in Dolibarr. Search existing third parties first to avoid duplicates; customer and supplier codes are generated automatically.
Instructions
Creates a customer, prospect or supplier. Search first with dolibarr_thirdparty_search: duplicates are hard to clean up. Customer and supplier codes are generated by Dolibarr's numbering rule.
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": {
"name": "<name>"
},
"name": "dolibarr_thirdparty_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| zip | No | ||
| name | Yes | ||
| town | No | ||
| No | |||
| phone | No | ||
| roles | No | What the third party is to the company. | |
| address | No | ||
| name_alias | No | Trade name or short name. | |
| vat_number | No | Intra-community VAT number. | |
| note_public | No | Note visible to the third party (printed on documents). | |
| country_code | No | ISO 3166 country code, e.g. FR, US. | |
| 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. |