markOrderAsShipped
Records that the order was shipped completely and moves its primary delivery to the shipped state. This only records the shipment and does not take stock out of the warehouse: to do both, call shipOrderCompletely first and this mutation afterwards. Marking the order as shipped cancels its fulfillment orders that are not shipped yet and releases their reserved stock, so in the opposite order shipOrderCompletely finds no work left to ship. 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. Shopware's default delivery state machine ships an open 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 shipped. Fires the flows configured for the state change. Returns the order.
Required scopes
The token needs the orders:write access scope.
markOrderAsShipped(
id: ID!
): Order!
Arguments
markOrderAsShipped.id ● ID! non-null scalar
ID of the order to mark as shipped.
Type
Order object
A customer order.