---
title: >-
  Edit manual order-level discounts during an order edit - Shopify developer
  changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/posts/edit-manual-order-level-discounts-during-an-order-edit
  md: >-
    https://shopify.dev/changelog/posts/edit-manual-order-level-discounts-during-an-order-edit.md
metadata:
  effectiveApiVersion: 2027-01
  affectedApi:
    - displayName: GraphQL Admin API
      handle: admin-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2026-12-01T10:47:21-05:00'
  postedAt: '2026-12-03T12:00:00-05:00'
  updatedAt: '2026-12-02T16:56:49-05:00'
  effectiveAt: '2026-12-02T12:00:00-05:00'
---

December 3, 2026

# Edit manual order-level discounts during an order edit

DateDecember 3, 2026

Version[2027-01](https://shopify.dev/changelog?api_version=2027-01)

FlagsNew

Tags[GraphQL Admin API](https://shopify.dev/changelog?api_type=admin-graphql)

Starting in API version `2027-01`, you can add, update, and remove manual order-level discounts when you edit an order with the GraphQL Admin API. When your app targets `2027-01`, you can manage manual discounts on the whole order in addition to individual line items.

## What changed

API version `2027-01` adds the following order-editing discount capabilities:

* Call the new [`orderEditAddManualOrderDiscount`](https://shopify.dev/docs/api/admin-graphql/2027-01/mutations/orderEditAddManualOrderDiscount) mutation to stage a fixed-amount or percentage discount on the entire order. Shopify allocates the discount across all line items.
* Call [`orderEditUpdateDiscount`](https://shopify.dev/docs/api/admin-graphql/2027-01/mutations/orderEditUpdateDiscount) and [`orderEditRemoveDiscount`](https://shopify.dev/docs/api/admin-graphql/2027-01/mutations/orderEditRemoveDiscount) to update or remove manual order-level discounts and line item discounts. You still can't change discount codes, automatic discounts, or shipping discounts during an edit.
* Query the new [`CalculatedOrder.discountApplications`](https://shopify.dev/docs/api/admin-graphql/2027-01/objects/CalculatedOrder#field-CalculatedOrder.fields.discountApplications) field to list the order's discounts, including staged edits. On [`CalculatedDiscountApplication`](https://shopify.dev/docs/api/admin-graphql/2027-01/interfaces/CalculatedDiscountApplication), check `appliedTo` to see whether a discount applies at the `ORDER` or `LINE` level, and check `discountClass` to see whether a discount belongs to the `ORDER`, `PRODUCT`, or `SHIPPING` class. `discountClass` returns `null` for manual discounts.
* Handle the new [`OrderStagedChangeAddManualDiscount`](https://shopify.dev/docs/api/admin-graphql/2027-01/objects/OrderStagedChangeAddManualDiscount) member on the [`OrderStagedChange`](https://shopify.dev/docs/api/admin-graphql/2027-01/unions/OrderStagedChange) union. If your app switches on `__typename`, then update your code to handle this type.

## Who's affected

This change applies to apps that edit orders on API version `2027-01` or later. Shopify stages these changes until you commit them with [`orderEditCommit`](https://shopify.dev/docs/api/admin-graphql/2027-01/mutations/orderEditCommit). Your app needs the `write_order_edits` access scope, and staff who use your app need permission to apply discounts to orders.

## What to do

1. Update your app to target API version `2027-01`.
2. Update your order-editing flows to call `orderEditAddManualOrderDiscount` and handle `OrderStagedChangeAddManualDiscount` where you switch on `__typename`.
3. Test adding, updating, and removing manual order-level discounts in a development store.

## Related docs

* [Edit existing orders with the GraphQL Admin API](https://shopify.dev/docs/apps/build/orders-fulfillment/order-management-apps/edit-orders)
* [Edit discounts on orders in the Shopify admin](https://help.shopify.com/en/manual/fulfillment/managing-orders/editing-orders/discounts)
