cancel_order
Cancel an order that hasn't shipped; invalid attempts return machine-readable errors and are logged for audit.
Instructions
Cancel an order. Shipped orders cannot be cancelled. Writes are gated: if a business rule rejects this call, the error is machine-readable ({ code, message }) and the attempt is recorded in the audit log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| orderId | Yes |