Cancel an order
cancel_orderCancel an order that has not shipped. This cannot be undone. Call it first with confirm=false to get the order details, show them to the user, and only after the user explicitly agrees call again with confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set true only after the user has explicitly confirmed the cancellation. | |
| orderId | Yes | The order id, for example o-5001. |