--- title: CalculatedLineItem - GraphQL Admin description: >- A line item involved in order editing that may be newly added or have new changes applied. api_version: 2025-04 api_name: admin type: object api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2025-04/objects/CalculatedLineItem md: >- https://shopify.dev/docs/api/admin-graphql/2025-04/objects/CalculatedLineItem.md --- # Calculated​Line​Item object Requires `read_order_edits` access scope. A line item involved in order editing that may be newly added or have new changes applied. ## Fields * calculated​Discount​Allocations [\[Calculated​Discount​Allocation!\]!](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/CalculatedDiscountAllocation) non-null The discounts that have been allocated onto the line item by discount applications. * custom​Attributes [\[Attribute!\]!](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/Attribute) non-null A list of attributes that represent custom features or special requests. * discounted​Unit​Price​Set [Money​Bag!](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/MoneyBag) non-null The price of a single quantity of the line item with line item discounts applied, in shop and presentment currencies. Discounts applied to the entire order aren't included in this price. * editable​Quantity [Int!](https://shopify.dev/docs/api/admin-graphql/2025-04/scalars/Int) non-null The total number of items that can be edited. * editable​Quantity​Before​Changes [Int!](https://shopify.dev/docs/api/admin-graphql/2025-04/scalars/Int) non-null The editable quantity prior to any changes made in the current edit. * editable​Subtotal​Set [Money​Bag!](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/MoneyBag) non-null The total price of editable lines in shop and presentment currencies. * has​Staged​Line​Item​Discount [Boolean!](https://shopify.dev/docs/api/admin-graphql/2025-04/scalars/Boolean) non-null Whether the calculated line item has a staged discount. * id [ID!](https://shopify.dev/docs/api/admin-graphql/2025-04/scalars/ID) non-null A globally-unique ID. * image [Image](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/Image) The image object associated to the line item's variant. * original​Unit​Price​Set [Money​Bag!](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/MoneyBag) non-null The variant unit price in shop and presentment currencies, without any discounts applied. * quantity [Int!](https://shopify.dev/docs/api/admin-graphql/2025-04/scalars/Int) non-null The total number of items. * restockable [Boolean!](https://shopify.dev/docs/api/admin-graphql/2025-04/scalars/Boolean) non-null Whether the line item can be restocked or not. * restocking [Boolean!](https://shopify.dev/docs/api/admin-graphql/2025-04/scalars/Boolean) non-null Whether the changes on the line item will result in a restock. * sku [String](https://shopify.dev/docs/api/admin-graphql/2025-04/scalars/String) The variant SKU number. * staged​Changes [\[Order​Staged​Change!\]!](https://shopify.dev/docs/api/admin-graphql/2025-04/unions/OrderStagedChange) non-null A list of changes that affect this line item. * title [String!](https://shopify.dev/docs/api/admin-graphql/2025-04/scalars/String) non-null The title of the product. * uneditable​Subtotal​Set [Money​Bag!](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/MoneyBag) non-null The total price of uneditable lines in shop and presentment currencies. * variant [Product​Variant](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/ProductVariant) The product variant associated with this line item. The value is null for custom line items and items where the variant has been deleted. * variant​Title [String](https://shopify.dev/docs/api/admin-graphql/2025-04/scalars/String) The title of the variant. * discount​Allocations [\[Discount​Allocation!\]!](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/DiscountAllocation) non-nullDeprecated *** ## Map ### Fields and connections with this object * <->[CalculatedLineItemConnection.nodes](https://shopify.dev/docs/api/admin-graphql/2025-04/connections/CalculatedLineItemConnection#returns-nodes) * {}[CalculatedLineItemEdge.node](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/CalculatedLineItemEdge#field-CalculatedLineItemEdge.fields.node) * {}[CalculatedOrder.addedLineItems](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/CalculatedOrder#field-CalculatedOrder.fields.addedLineItems) * {}[CalculatedOrder.lineItems](https://shopify.dev/docs/api/admin-graphql/2025-04/objects/CalculatedOrder#field-CalculatedOrder.fields.lineItems) *** ## Mutations * [order​Edit​Add​Custom​Item](https://shopify.dev/docs/api/admin-graphql/2025-04/mutations/orderEditAddCustomItem) mutation Adds a custom line item to an existing order. For example, you could add a gift wrapping service as a [custom line item](https://shopify.dev/apps/fulfillment/order-management-apps/order-editing#add-a-custom-line-item). To learn how to edit existing orders, refer to [Edit an existing order with Admin API](https://shopify.dev/apps/fulfillment/order-management-apps/order-editing). * [order​Edit​Add​Line​Item​Discount](https://shopify.dev/docs/api/admin-graphql/2025-04/mutations/orderEditAddLineItemDiscount) mutation Adds a discount to a line item on the current order edit. For more information on how to use the GraphQL Admin API to edit an existing order, refer to [Edit existing orders](https://shopify.dev/apps/fulfillment/order-management-apps/order-editing). * [order​Edit​Add​Variant](https://shopify.dev/docs/api/admin-graphql/2025-04/mutations/orderEditAddVariant) mutation Adds a line item from an existing product variant. As of API version 2025-04, the [orderEditAddVariant](https://shopify.dev/api/admin-graphql/latest/mutations/ordereditaddvariant) API will respect the contextual pricing of the variant. * [order​Edit​Set​Quantity](https://shopify.dev/docs/api/admin-graphql/2025-04/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). * [order​Edit​Remove​Line​Item​Discount](https://shopify.dev/docs/api/admin-graphql/2025-04/mutations/orderEditRemoveLineItemDiscount) mutation Deprecated *** ## <\~> CalculatedLineItem Mutations ### Mutated by * <\~>[order​Edit​Add​Custom​Item](https://shopify.dev/docs/api/admin-graphql/2025-04/mutations/orderEditAddCustomItem) * <\~>[order​Edit​Add​Line​Item​Discount](https://shopify.dev/docs/api/admin-graphql/2025-04/mutations/orderEditAddLineItemDiscount) * <\~>[order​Edit​Add​Variant](https://shopify.dev/docs/api/admin-graphql/2025-04/mutations/orderEditAddVariant) * <\~>[order​Edit​Set​Quantity](https://shopify.dev/docs/api/admin-graphql/2025-04/mutations/orderEditSetQuantity)