← API reference
Mutation / commerce

updateOrderLine

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

Arguments

Order line ID to update

Fields to update — only provided fields are changed

Returns UpsertOrderLinePayload!

Explore in a view

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

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