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
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 |