# orderEditUpdateDiscount - admin-graphql - MUTATION Version: 2024-07 ## Description 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). ### Access Scopes `write_order_edits` access scope. Also: The user must have apply_discounts_to_orders permission. ## Arguments * [discount](/docs/api/admin-graphql/2024-07/input-objects/OrderEditAppliedDiscountInput): OrderEditAppliedDiscountInput! - The updated discount. * [discountApplicationId](/docs/api/admin-graphql/2024-07/scalars/ID): ID! - The ID of the [calculated discount application](https://shopify.dev/api/admin-graphql/latest/interfaces/calculateddiscountapplication) to update. * [id](/docs/api/admin-graphql/2024-07/scalars/ID): ID! - The ID of the [calculated order](https://shopify.dev/api/admin-graphql/latest/objects/calculatedorder) from which to update the discount. ## Returns * [calculatedOrder](/docs/api/admin-graphql/2024-07/objects/CalculatedOrder): CalculatedOrder An order with the edits applied but not saved. * [userErrors](/docs/api/admin-graphql/2024-07/objects/OrderEditUpdateDiscountUserError): OrderEditUpdateDiscountUserError! The list of errors that occurred from executing the mutation. ## Examples