Cancel an order
cancel_pickup_orderCancel a pickup order when the user asks, with the claim create_pickup_order returned. An unpaid order just closes. A paid one can be cancelled until the shop starts making it, and what was paid goes back the way it was paid (a card refund can take a few business days to show). Once the shop has started it, or it's ready, the user asks staff at the counter instead.
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_id": "<order_id>",
"claim": "<claim>"
},
"name": "cancel_pickup_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| claim | Yes | The claim create_pickup_order returned with the order. | |
| order_id | Yes | ||
| shop_url | No | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |