Preview Purchase Order Transition
preview_purchase_order_transitionPreview one exact purchase-order lifecycle transition and issue a short-lived, single-use confirmation receipt. Supported transitions are IssueOrRouteForApproval, Cancel, and QuickReceive. IssueOrRouteForApproval never grants approval: an unapproved Created order goes to Waiting Approval; an already human-approved order may be issued. QuickReceive lists every order quantity, converted inventory quantity and unit cost, and resolved destination location that will move. It refuses exact previews when an after-operation rule could add undisclosed effects. Requires Write scope plus purchasing.execute, or receiving.execute for QuickReceive.
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": {
"purchaseOrderId": "<purchaseOrderId>",
"transition": "<transition>"
},
"name": "preview_purchase_order_transition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transition | Yes | Exact transition: IssueOrRouteForApproval, Cancel, or QuickReceive. | |
| purchaseOrderId | Yes | Purchase order id (GUID). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| result | No | ||
| effects | No | ||
| warnings | No | ||
| expiresAt | No | ||
| operation | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No | ||
| allowedNextActions | No |