Let customers cancel their own orders
The customer cancellation action is available in the signed-in customer's order view. It is separate from the Admin status allowlist.
Enable the action
- Open Stores > Configuration > MageB2B > Order Cancellation.
- In General settings, select one or more values under Allowed Order Statuses for Customer Cancellation.
- Save the configuration and clear the relevant Magento caches.
- Sign in as a customer who owns an order with one of those statuses.
- Open My Account > My Orders, then open the order.
The Cancel Order action appears only while the order has an allowed status. The customer must confirm the action.

Access checks
The request is submitted as a POST action with Magento form-key protection. The controller also checks that the customer is signed in and owns the requested order. A customer cannot use the action to cancel another customer's order.
Guest orders do not have an authenticated customer account owner, so this self-service action does not apply to them.
Recommended policy
Limit customer cancellation to statuses used before fulfilment, capture or invoicing. Test the action with each payment method and downstream order integration in use. A status name alone does not tell you whether an external payment or warehouse process has already started.