Skip to main content

orderItemUpdate

Update an existing order item's information.

Modifies order item details such as quantity, pricing, or product configuration. Order totals will be recalculated automatically after the update.

Possible errors:

  • ORDER_NOT_FOUND: Order with the specified ID does not exist
  • ORDER_ITEM_NOT_FOUND: Order item does not exist
  • ORDER_ITEM_UPDATE_ERROR: Failed to update the order item due to system error
  • VALIDATION_ERROR: Input validation failed (invalid item ID, negative quantity, missing required fields)
  • FORBIDDEN: Insufficient permissions to modify orders

AUTH: Role=[order.OWNER,order.EDITOR]

orderItemUpdate(
orderId: Int!
orderItem: OrderItemUpdateInput!
): OrderItem!

Arguments

orderItemUpdate.orderId ● Int! non-null scalar

Unique identifier of the order containing the item.

Must be a valid order ID that exists in the system.

orderItemUpdate.orderItem ● OrderItemUpdateInput! non-null input

Updated order item information.

Contains the item ID and updated fields. Only provided fields will be changed, others remain unchanged.

Type

OrderItem object

Order item entity for GraphQL federation.

Represents an individual line item within a customer order, containing the item identification and associated product information. Used for managing order fulfillment, inventory tracking, and product references in order processing.