--- title: orderEditUpdateDiscount - GraphQL Admin 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). api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/orderEditUpdateDiscount md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/orderEditUpdateDiscount.md --- # order​Edit​Update​Discount mutation Requires `write_order_edits` access scope. Also: The user must have apply\_discounts\_to\_orders permission. 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). ## Arguments * discount [Order​Edit​Applied​Discount​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/OrderEditAppliedDiscountInput) required The updated discount. * discount​Application​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the [calculated discount application](https://shopify.dev/api/admin-graphql/latest/interfaces/calculateddiscountapplication) to update. * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the [calculated order](https://shopify.dev/api/admin-graphql/latest/objects/calculatedorder) or the order edit session to edit. This is the edit used to update the discount. *** ## Order​Edit​Update​Discount​Payload returns * calculated​Order [Calculated​Order](https://shopify.dev/docs/api/admin-graphql/latest/objects/CalculatedOrder) An order with the edits applied but not saved. * order​Edit​Session [Order​Edit​Session](https://shopify.dev/docs/api/admin-graphql/latest/objects/OrderEditSession) The order edit session with the edits applied but not saved. * user​Errors [\[Order​Edit​Update​Discount​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/OrderEditUpdateDiscountUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### orderEditUpdateDiscount reference ## Mutation Reference ```graphql mutation orderEditUpdateDiscount($id: ID!, $discount: OrderEditAppliedDiscountInput!, $discountApplicationId: ID!) { orderEditUpdateDiscount(id: $id, discount: $discount, discountApplicationId: $discountApplicationId) { calculatedOrder { # CalculatedOrder fields } orderEditSession { # OrderEditSession fields } userErrors { field message } } } ``` ## Input ```json { "id": "gid://shopify//10079785100", "discount": { "description": "", "fixedValue": { "amount": "29.99", "currencyCode": "USD" }, "percentValue": 1.1 }, "discountApplicationId": "gid://shopify//10079785100" } ``` ##### Variables ``` { "id": "gid://shopify//10079785100", "discount": { "description": "", "fixedValue": { "amount": "29.99", "currencyCode": "USD" }, "percentValue": 1.1 }, "discountApplicationId": "gid://shopify//10079785100" } ``` ##### Schema ``` input OrderEditAppliedDiscountInput { description: String fixedValue: MoneyInput percentValue: Float } input MoneyInput { amount: Decimal! currencyCode: CurrencyCode! } ```