← API reference
Mutation / commerce

updateOrder

Update an order. Only provided fields are changed. Requires order:write permission.

Arguments

Order ID to update

Fields to update — only provided fields are changed

Returns UpsertOrderPayload!

Explore in a view

Order Intake
View exact SDL
"""
Update an order. Only provided fields are changed. Requires order:write permission.
"""
updateOrder(
  """Order ID to update"""
  id: OrderID!
  """Fields to update — only provided fields are changed"""
  input: UpdateOrderInput!
): UpsertOrderPayload! @topic(names: ["commerce"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.