Cancel an order
cancel_orderCancel a sandbox order and put its stock back. Use it to undo place_order; the order stays on record with its original prices. Returns the cancelled order, or a 403 problem when the receipt key does not match.
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>",
"receipt_key": "<receipt_key>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | the order id, from place_order | |
| receipt_key | Yes | the value of key in the order's confirmation_path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| order | No |