--- title: OrderEditSetQuantityPayload - GraphQL Admin description: Return type for `orderEditSetQuantity` mutation. api_version: 2025-01 api_name: admin type: payload api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/2025-01/payloads/ordereditsetquantitypayload md: https://shopify.dev/docs/api/admin-graphql/2025-01/payloads/ordereditsetquantitypayload.md --- # Order​Edit​Set​Quantity​Payload payload Return type for `orderEditSetQuantity` mutation. ## Fields * calculated​Line​Item [Calculated​Line​Item](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/CalculatedLineItem) The calculated line item with the edits applied but not saved. * calculated​Order [Calculated​Order](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/CalculatedOrder) The calculated order with the edits applied but not saved. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Mutations with this payload * [order​Edit​Set​Quantity](https://shopify.dev/docs/api/admin-graphql/2025-01/mutations/orderEditSetQuantity) mutation Sets the quantity of a line item on an order that's being edited. Use this mutation to increase, decrease, or remove items by adjusting their quantities. Setting the quantity to zero effectively removes the line item from the order. The item still exists as a data structure with zero quantity. When decreasing quantities, you can optionally restock the removed items to inventory by setting the `restock` parameter to `true`. Learn more about [editing workflows for existing orders](https://shopify.dev/docs/apps/build/orders-fulfillment/order-management-apps/edit-orders). *** ## Map ### Mutations with this payload * [order​Edit​Set​Quantity](https://shopify.dev/docs/api/admin-graphql/2025-01/types/orderEditSetQuantity)