completeOrder
Records that the order is finished and moves it to the completed state. Shopware's default order state machine completes an order in_progress only, so start an open order with startOrderProcessing first; from any other state the mutation fails with CONFLICT. Completing cancels the order's fulfillment orders that are not shipped yet and releases their reserved stock, so ship the order with shipOrderCompletely before, or its stock is never taken out of the warehouse. Fails with CONFLICT while the order is being picked. Fulfillment orders of an order managed by an external system, e.g. one imported from Shopify, stay untouched. Does nothing when the order is already completed. Fires the flows configured for the state change. Returns the order.
Required scopes
The token needs the orders:write access scope.
completeOrder(
id: ID!
): Order!
Arguments
completeOrder.id ● ID! non-null scalar
ID of the order to complete.
Type
Order object
A customer order.