# CalculatedOrder - admin-graphql - OBJECT Version: 2024-04 ## Description An order with edits applied but not saved. ### Access Scopes `read_order_edits` access scope. ## Fields * [cartDiscountAmountSet](/docs/api/admin-graphql/2024-04/objects/MoneyBag): MoneyBag - Amount of the order-level discount (doesn't contain any line item discounts) in shop and presentment currencies. * [committed](/docs/api/admin-graphql/2024-04/scalars/Boolean): Boolean! - Whether the changes have been applied and saved to the order. * [id](/docs/api/admin-graphql/2024-04/scalars/ID): ID! - A globally-unique ID. * [notificationPreviewHtml](/docs/api/admin-graphql/2024-04/scalars/HTML): HTML - The HTML of the customer notification for the order edit. * [notificationPreviewTitle](/docs/api/admin-graphql/2024-04/scalars/String): String! - The customer notification title. * [order](/docs/api/admin-graphql/2024-04/objects/Order): Order! - The order without any changes applied. * [originalOrder](/docs/api/admin-graphql/2024-04/objects/Order): Order! - The order without any changes applied. * [shippingLines](/docs/api/admin-graphql/2024-04/objects/CalculatedShippingLine): CalculatedShippingLine! - Returns the shipping lines on the order that existed before starting the edit. Will include any changes that have been made as well as shipping lines added during the current edit. Returns only the first 250 shipping lines. * [subtotalLineItemsQuantity](/docs/api/admin-graphql/2024-04/scalars/Int): Int! - The sum of the quantities for the line items that contribute to the order's subtotal. * [subtotalPriceSet](/docs/api/admin-graphql/2024-04/objects/MoneyBag): MoneyBag - The subtotal of the line items, in shop and presentment currencies, after all the discounts are applied. The subtotal doesn't include shipping. The subtotal includes taxes for taxes-included orders and excludes taxes for taxes-excluded orders. * [taxLines](/docs/api/admin-graphql/2024-04/objects/TaxLine): TaxLine! - Taxes charged for the line item. * [totalOutstandingSet](/docs/api/admin-graphql/2024-04/objects/MoneyBag): MoneyBag! - Total price of the order less the total amount received from the customer in shop and presentment currencies. * [totalPriceSet](/docs/api/admin-graphql/2024-04/objects/MoneyBag): MoneyBag! - Total amount of the order (includes taxes and discounts) in shop and presentment currencies. ## Connections * [addedDiscountApplications](/docs/api/admin-graphql/2024-04/connections/CalculatedDiscountApplicationConnection): CalculatedDiscountApplicationConnection! * [addedLineItems](/docs/api/admin-graphql/2024-04/connections/CalculatedLineItemConnection): CalculatedLineItemConnection! * [lineItems](/docs/api/admin-graphql/2024-04/connections/CalculatedLineItemConnection): CalculatedLineItemConnection! * [stagedChanges](/docs/api/admin-graphql/2024-04/connections/OrderStagedChangeConnection): OrderStagedChangeConnection! ## Related queries ## Related mutations * [orderEditAddCustomItem](/docs/api/admin-graphql/2024-04/mutations/orderEditAddCustomItem) 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). * [orderEditAddLineItemDiscount](/docs/api/admin-graphql/2024-04/mutations/orderEditAddLineItemDiscount) 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). * [orderEditAddShippingLine](/docs/api/admin-graphql/2024-04/mutations/orderEditAddShippingLine) Adds a shipping line to an existing order. 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). * [orderEditAddVariant](/docs/api/admin-graphql/2024-04/mutations/orderEditAddVariant) Adds a line item from an existing product variant. * [orderEditBegin](/docs/api/admin-graphql/2024-04/mutations/orderEditBegin) Starts editing an order. Mutations are operating on `OrderEdit`. All order edits start with `orderEditBegin`, have any number of `orderEdit`* mutations made, and end with `orderEditCommit`. * [orderEditRemoveDiscount](/docs/api/admin-graphql/2024-04/mutations/orderEditRemoveDiscount) Removes a discount 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). * [orderEditRemoveLineItemDiscount](/docs/api/admin-graphql/2024-04/mutations/orderEditRemoveLineItemDiscount) Removes a line item discount that was applied as part of an order edit. * [orderEditRemoveShippingLine](/docs/api/admin-graphql/2024-04/mutations/orderEditRemoveShippingLine) Removes a shipping line from an existing order. 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). * [orderEditSetQuantity](/docs/api/admin-graphql/2024-04/mutations/orderEditSetQuantity) 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](https://shopify.dev/apps/fulfillment/order-management-apps/order-editing). * [orderEditUpdateDiscount](/docs/api/admin-graphql/2024-04/mutations/orderEditUpdateDiscount) Updates a manual line level discount 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). * [orderEditUpdateShippingLine](/docs/api/admin-graphql/2024-04/mutations/orderEditUpdateShippingLine) Updates a shipping line 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). ## Related Unions ## Examples