order.request_cancellation
Request cancellation of the caller’s OWN order (paid or preparing only). Stamps the request + a timeline event; does NOT change the status (real cancel/refund is future). Idempotent by state.
- Scope:
customer.self.write - System: no
- Reachable from:
POST /v1/commands/order.request_cancellation(tenant credential) · MCP toolorder.request_cancellation· SDKclient.call('order.request_cancellation', …) - Events:
order.cancellation_requested
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "order_id": { "minLength": 1, "type": "string" }, "reason": { "type": "string" } }, "required": [ "order_id" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "cancellation_requested": { "type": "boolean" }, "order_id": { "type": "string" } }, "required": [ "order_id", "cancellation_requested" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)