order.cancel_request.decline
Refuse a shopper’s cancellation request, with a mandatory reason: records the refusal on the timeline and clears the request. The order is untouched and keeps being fulfilled. To grant one instead use order.cancel_request.approve (returning the money with order.refund first). Idempotent by state; declining what was not requested is a conflict.
- Scope:
order.write - System: no
- Reachable from:
POST /v1/commands/order.cancel_request.decline(tenant credential) · MCP toolorder.cancel_request.decline· SDKclient.call('order.cancel_request.decline', …) - Events:
order.cancellation_declined
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "order_id": { "minLength": 1, "type": "string" }, "reason": { "maxLength": 1000, "minLength": 1, "type": "string" } }, "required": [ "order_id", "reason" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "cancellation_requested": { "type": "boolean" }, "order_id": { "type": "string" }, "outcome": { "enum": [ "approved", "declined" ], "type": "string" } }, "required": [ "order_id", "cancellation_requested", "outcome" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)