upsert_purchase_order
Create or update a purchase order in inFlow Inventory; this legacy high-risk action bypasses safe writes, so use set_purchase_order instead.
Instructions
[LEGACY IMMEDIATE WRITE — HIGH RISK: BYPASSES INFLOW_ENABLE_SAFE_WRITES] Use set_purchase_order instead. Create a new purchase order or update an existing one
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Purchase order ID (required for updates) | |
| items | No | Order line items | |
| remarks | No | Order remarks/notes | |
| vendorId | Yes | Vendor ID | |
| orderDate | No | Order date (ISO format) | |
| timestamp | No | Timestamp for concurrency control | |
| locationId | No | Destination location/warehouse ID | |
| orderNumber | No | Order number | |
| currencyCode | No | Currency code (e.g., USD) | |
| customFields | No | Custom field values | |
| expectedDate | No | Expected delivery date (ISO format) | |
| shippingAddress | No | Shipping address |