Cancel an order
shop.order.cancelCancel an order with a reason: unpaid quotes are voided and held stock released; paid orders start a refund when eligible, while delivered digital content waived from withdrawal cannot be cancelled.
Instructions
QUOTED: free cancel, the quote is voided and held stock released. After payment: before the merchant confirms it is always a refund (state REFUND_PENDING, due in 7 days); later only if the merchant accepts returns and the refund window is open, else 409 with the policy. Digital content delivered under waive_withdrawal cannot be cancelled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| order_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| order_id | Yes | ||
| refund_id | No |