orderUpdate
Update an existing order's information.
Modifies order details including status, customer information, addresses, payment data, and shipping information. Only provided fields will be updated, others remain unchanged.
Possible errors:
- ORDER_NOT_FOUND: Order with the specified ID does not exist
- ORDER_UPDATE_ERROR: Failed to update the order due to system error
- ORDER_STATUS_TRANSITION_NOT_ALLOWED: Invalid status transition attempted
- VALIDATION_ERROR: Input validation failed (invalid data format, missing required fields)
- FORBIDDEN: Insufficient permissions to update this order
AUTH: Role=[order.OWNER,order.EDITOR]
orderUpdate(
orderId: Int!
order: OrderUpdateInput!
): Order!
Arguments
orderUpdate.orderId
● Int!
non-null scalar
Unique identifier of the order to update.
Must be a positive integer representing a valid order ID in the system.
orderUpdate.order
● OrderUpdateInput!
non-null input
Updated order information.
Only provided fields will be updated, others remain unchanged. Can include status changes, customer details, and metadata updates.