Activate Price Book
activate_price_bookPublish a DRAFT price book so it can price quotes and runs. Validates first and REFUSES with the reasons if the book could not price correctly — an empty grid, breaks missing a cost-driver attribute (which could never resolve), duplicate or blank attribute keys, a numeric-band attribute with no bands, or an unconfirmed canonical field/option mapping. For a book that prices by item, it instead refuses while too few of the supplier's SKUs matched an item, and asks you to confirm before publishing with any that are left over. Rehashes the whole grid against the schema being activated, so a book whose attributes moved during the draft is left consistent. Blockers come back as data (activated=false) on any call; evaluate_price_book shows the same review in full. Two-step: preview=true shows what will be published and returns a single-use previewReceipt; repeat the identical call with that receipt and a fresh idempotencyKey to activate. Already-active books return unchanged. Requires an operator (unpinned) credential.
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": {
"bookId": "<bookId>"
},
"name": "activate_price_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookId | Yes | The DRAFT price book id (GUID). | |
| preview | No | Step 1 of the required two-step write: set true to see what will be published and receive a single-use previewReceipt. Nothing is changed until the commit call. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to activate. | |
| skipUnmatchedRows | No | Item-priced books only. Set true to confirm that rows which never matched an item should be published as skipped: they are switched off and price nothing, and can be resolved later. Does NOT waive the minimum match rate — a book where too few rows matched is refused whatever this says. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| bookId | No | ||
| status | No | ||
| applied | No | ||
| preview | No | ||
| blockers | No | ||
| activated | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |