# orderEditAddLineItemDiscount - admin - MUTATION
Version: 2024-04

## Description
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).

### Access Scopes
`write_order_edits` access scope. Also: The user must have apply_discounts_to_orders permission.


## Arguments
* [discount](/docs/api/admin/2024-04/input-objects/OrderEditAppliedDiscountInput): OrderEditAppliedDiscountInput! - The discount to add to the line item.
* [id](/docs/api/admin/2024-04/scalars/ID): ID! - The ID of the [calculated order](https://shopify.dev/api/admin-graphql/latest/objects/calculatedorder)
to update.
* [lineItemId](/docs/api/admin/2024-04/scalars/ID): ID! - The ID of the calculated line item to add the discount to.


## Returns
* [addedDiscountStagedChange](/docs/api/admin/2024-04/objects/OrderStagedChangeAddLineItemDiscount): OrderStagedChangeAddLineItemDiscount The discount applied to a line item during this order edit.
* [calculatedLineItem](/docs/api/admin/2024-04/objects/CalculatedLineItem): CalculatedLineItem The line item with the edits applied but not saved.
* [calculatedOrder](/docs/api/admin/2024-04/objects/CalculatedOrder): CalculatedOrder An order with the edits applied but not saved.
* [userErrors](/docs/api/admin/2024-04/objects/UserError): UserError! The list of errors that occurred from executing the mutation.


## Examples