Set Item Volume Pricing
set_item_volume_pricingReplace one item's volume price tiers (by id or SKU) with the list given: each tier is a minimum order quantity (greater than zero, unique) and the unit price from that quantity up. Tiers not in the list are removed; an empty list removes them all. The preview shows the tiers before→after with % off list and warns when a tier is not below the list price. A client-pinned credential prices only its own items. Requires the Admin role in the app.
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": {
"item": "<item>",
"tiers": "<tiers>"
},
"name": "set_item_volume_pricing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | The item id (GUID) or SKU. | |
| tiers | Yes | The complete tier list (max 50); an empty list removes every tier. | |
| 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 changes until the commit call. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| tiers | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |