Create Price List
create_price_listCreate a customer price list, as the Price lists page does. It starts as a draft in the tenant currency and prices nothing until activate_price_list publishes it; add its prices with append_price_list_lines and give it to customers with assign_price_list. code is unique (ignoring case). validFrom and validUntil are YYYY-MM-DD tenant-local days, both included; omit for no start or no end. isNet=true means its prices are final, with no discount taken off. unlistedItemRule: none (default; an item the list does not name falls through to the next list) or percent_of_item_price with unlistedItemPercent (70 = 70% of the item's price). isTenantDefault=true makes it the list for every sale no other list prices; only one default can be active. 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": {
"name": "<name>",
"code": "<code>"
},
"name": "create_price_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A short unique code, up to 64 characters (WHOLESALE-2026). | |
| name | Yes | The list's name, up to 200 characters. | |
| isNet | No | true: its prices are final, no discount is taken off. | |
| 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. | |
| validFrom | No | Optional first day it prices, YYYY-MM-DD. | |
| validUntil | No | Optional last day it prices, YYYY-MM-DD, included. | |
| 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. | |
| isTenantDefault | No | true: the list for every sale that no other list prices. | |
| unlistedItemRule | No | none (default) or percent_of_item_price. | |
| unlistedItemPercent | No | With percent_of_item_price: the percent of the item's price, over 0. |
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 |