Create Vendor
create_supplierCreate a vendor. Name is required and must be unique within the tenant; code, tax number and bank account (when supplied) must be unique too. Set defaultLeadTimeDays (0-365) to give the reorder engine a fallback lead time. Pass customFields to set tenant-defined custom field values (see list_custom_fields with entity=businessPartner); an unknown fieldName fails the whole call at preview. The partner is created with the vendor role. Requires an operator (unpinned) org token. Returns the created vendor, whose id is what you attach per-item vendor terms to.
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": {
"input": "<input>"
},
"name": "create_supplier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The vendor to create (name required). | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is created until the commit call. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| code | No | ||
| name | No | ||
| No | |||
| preview | No | ||
| expiresAt | No | ||
| taxNumber | No | ||
| isCustomer | No | ||
| isSupplier | No | ||
| contactName | No | ||
| phoneNumber | No | ||
| vatIdNumber | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| customFields | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No | ||
| paymentTermsDays | No | ||
| bankAccountNumber | No | ||
| defaultLeadTimeDays | No |