Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to orderEditSetQuantity

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.

ID!required

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

ID!required

The ID of the calculated line item to edit.

Int!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.

IDDeprecated

The ID of the location. If 'restock' is set to true, the restocked item will be made available at the specified location. No longer supported.


Was this section helpful?

Anchor to OrderEditSetQuantityPayload returnsOrderEditSetQuantityPayload 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?