upsert_customer
Creates or updates a customer in inFlow Inventory; legacy high-risk operation, use set_customer instead because it bypasses safe-write safeguards.
Instructions
[LEGACY IMMEDIATE WRITE — HIGH RISK: BYPASSES INFLOW_ENABLE_SAFE_WRITES] Use set_customer instead. Create a new customer or update an existing one
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Customer ID (required for updates) | |
| fax | No | Fax number | |
| name | Yes | Customer name | |
| No | Email address | ||
| phone | No | Phone number | |
| remarks | No | Notes/remarks | |
| website | No | Website URL | |
| contacts | No | Contact persons | |
| isActive | No | Whether customer is active | |
| timestamp | No | Timestamp for concurrency control | |
| currencyCode | No | Currency code | |
| customFields | No | Custom field values | |
| billingAddress | No | Billing address | |
| paymentTermsId | No | Payment terms ID | |
| taxingSchemeId | No | Taxing scheme ID | |
| pricingSchemeId | No | Pricing scheme ID | |
| shippingAddress | No | Shipping address |