set_purchase_order_receipts
Preview exact purchase-order receipt or unreceipt stock changes and validate inventory semantics before committing them.
Instructions
Preview exact purchase-order receipt changes. Apply remains blocked until receipt/unreceipt stock semantics are canary-proven.
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>",
"action": "<action>",
"receiveLines": "<receiveLines>"
},
"name": "set_purchase_order_receipts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| action | Yes | ||
| dryRun | No | ||
| receiveAll | No | ||
| previewToken | No | ||
| receiveLines | Yes | ||
| unreceiveAll | No | ||
| idempotencyKey | No | ||
| receiveLineIds | No | ||
| purchaseOrderId | Yes | ||
| expectedDesiredHash | No | ||
| expectedSemanticHash | No | ||
| expectedWriteShapeHash | No | ||
| expectedEntityTimestamp | No |