Skip to main content

cancelOrderDelivery

Cancels the delivery of the order and moves its primary delivery to the cancelled state, while the order itself keeps its state (use cancelOrder to cancel the whole order). Cancelling the delivery cancels the order's fulfillment orders that are not shipped yet and releases their reserved stock; fulfillment orders of an order managed by an external system, e.g. one imported from Shopify, stay untouched. Shopware's default delivery state machine cancels an open, shipped or shipped_partially delivery only; from any other state the mutation fails with CONFLICT. Fails with CONFLICT when the order has no delivery. Does nothing when the delivery is already cancelled. Fires the flows configured for the state change. Returns the order.

Required scopes​

The token needs the orders:write access scope.

cancelOrderDelivery(
id: ID!
): Order!

Arguments​

cancelOrderDelivery.id ● ID! non-null scalar​

ID of the order whose delivery to cancel.

Type​

Order object​

A customer order.