upsert_vendor
Create a new vendor or update an existing vendor in inFlow Inventory. Supply the vendor ID to update; omit it to create a new record.
Instructions
[LEGACY IMMEDIATE WRITE — HIGH RISK: BYPASSES INFLOW_ENABLE_SAFE_WRITES] Use set_vendor instead. Create a new vendor or update an existing one
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": "upsert_vendor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Vendor ID (required for updates) | |
| fax | No | Fax number | |
| name | Yes | Vendor name | |
| No | Email address | ||
| phone | No | Phone number | |
| address | No | Vendor address | |
| website | No | Website URL | |
| contacts | No | Contact persons | |
| isActive | No | Whether vendor is active | |
| timestamp | No | Timestamp for concurrency control | |
| currencyCode | No | Currency code | |
| customFields | No | Custom field values | |
| paymentTermsId | No | Payment terms ID |