Activate Price List
activate_price_listPublish a draft price list (id or code), as its Activate button does: from the confirm it prices the orders, invoices, quotes and storefront of the customers and groups it is assigned to (or, as the tenant default, every sale no other list prices) on the days its window covers. A new edition archives the edition it replaces in the same step. The preview names that edition and refuses a list that cannot be published: one that prices nothing (no active line and no percent rule), whose window has already ended on the tenant's today, or that would be a second active default. An archived list cannot come back. 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>"
},
"name": "activate_price_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |