Requires
write_order_edits
access scope.
Sets the quantity of a line item on an order that is being edited. For more information on how to use the GraphQL Admin API to edit an existing order, refer to Edit existing orders.
Arguments
The ID of the calculated order to edit. The edit changes the quantity on the line item.
The ID of the calculated line item to edit.
The new quantity to set for the line item. This value cannot be negative.
Anchor to restockrestockWhether or not to restock the line item when the updated quantity is less than the original quantity.
Was this section helpful?
OrderEditSetQuantityPayload returns
The calculated line item with the edits applied but not saved.
The calculated order with the edits applied but not saved.
The list of errors that occurred from executing the mutation.
Was this section helpful?