Cancel Pickup Order
cancel_pickup_orderCancel an open pickup order from the pickup monitor. It leaves the board and its stock reservation is released. Unless sparkOnly=true, it is also canceled in Shopify (refund and restock, when order updates push to Shopify) and the customer gets the sales-order canceled notification if that notification is on. sparkOnly=true only clears it from Spark. Completed and canceled orders cannot be canceled. Automation rules on order cancels apply. Requires Write + pickup.execute; operator credentials only. Preview first, then repeat identical arguments with previewReceipt and idempotencyKey. In-app assistants get a confirm card.
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": {
"order": "<order>"
},
"name": "cancel_pickup_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | Pickup order id, order number or pickup code. | |
| preview | No | ||
| sparkOnly | No | true cancels only in Spark: Shopify is left as is and the customer is not told. | |
| idempotencyKey | No | ||
| previewReceipt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| preview | No | ||
| nextStep | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| approvalRequired | No | ||
| approvalRuleName | No | ||
| idempotentReplay | No |