Anchor to section titled 'undefined'

orderEditSetQuantity
mutation

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.


Anchor to id
id
required

The ID of the calculated order to edit. The edit changes the quantity on the line item.

Anchor to lineItemId
lineItemId
required

The ID of the calculated line item to edit.

Anchor to quantity
quantity
required

The new quantity to set for the line item. This value cannot be negative.

Whether or not to restock the line item when the updated quantity is less than the original quantity.


Was this section helpful?

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?