Archive Price Book
archive_price_bookArchive (soft-delete) a price book: the book and its grid are hidden from lists and refuse to resolve or quote until restored. Existing run quotes that reference the book are NOT deleted — they retain their recorded price but can no longer be repriced. Reversible with restore_price_book. 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": "archive_price_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookId | Yes | The price book id (GUID) to archive. | |
| preview | No | Step 1 of the required two-step write: set true to see what will be archived (break count, dependent quotes, sourcing profiles) 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 commit the archive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| applied | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| archivedBookId | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| restoredBookId | No | ||
| idempotentReplay | No |