Append Price List Lines
append_price_list_linesAdd or overwrite up to 500 prices on a price list (id or code), as the list's lines upload does. A line is an item (id or SKU), an optional uomId (omit for the base unit), a minimumQuantity where the break starts (default 1) and a unitPrice before tax; isActive=false keeps a line but stops it pricing. A line is identified by item, unit and minimum quantity: sending one that exists overwrites its price, and re-sending the same lines changes nothing, so a large list arrives in several calls and any call can be repeated. The preview says for each line whether it is added, updated (with the old price) or unchanged. On an active list the new prices apply to orders priced from the confirm on, and every change is written to the list's change log. Archived lists are frozen. Requires an operator (unpinned) credential with Write + catalog.execute and an Admin.
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": {
"priceList": "<priceList>",
"lines": "<lines>"
},
"name": "append_price_list_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | The lines to add or overwrite, 1 to 500. | |
| 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. | |
| priceList | Yes | The price list id (GUID) or code. | |
| 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 | ||
| lines | No | ||
| preview | No | ||
| expiresAt | No | ||
| priceList | No | ||
| assignment | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No | ||
| archivedPriceListId | No |