Upsert Item Vendor Terms
upsert_item_vendor_termsCreate or update the vendor terms for an (item, vendor) pair. If a live link already exists it is updated; otherwise it is created. minimumOrderQuantity is the vendor's minimum order quantity for the item (item base UOM): pass a value greater than zero to set it, or omit/null to record no minimum. Terms are surfaced, never enforced. The item and vendor must both belong to the tenant and the partner must actually be a vendor. Requires an operator (unpinned) org token.
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": {
"itemId": "<itemId>",
"supplierId": "<supplierId>"
},
"name": "upsert_item_vendor_terms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | The item id (GUID) the terms apply to. | |
| 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 changed until the commit call. | |
| supplierId | Yes | The vendor id (GUID) these terms are for. | |
| 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. | |
| minimumOrderQuantity | No | The vendor's minimum order quantity for this item (greater than zero). Omit or null to record no minimum. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| terms | No | ||
| created | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |