---
title: >-
  Add, remove, and update discounts with the newest order editing API - 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/add-remove-and-update-discounts-with-the-newest-order-editing-api
  md: >-
    https://shopify.dev/changelog/add-remove-and-update-discounts-with-the-newest-order-editing-api.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2023-11-09T12:31:17-05:00'
  postedAt: '2024-01-01T09:00:00-05:00'
  updatedAt: '2024-02-02T10:05:18-05:00'
  effectiveAt: '2024-01-01T09:00:00-05:00'
---

January 1, 2024

Tags:

* API

# Add, remove, and update discounts with the newest order editing API

You can now add, remove, and update discounts to new or existing items when editing orders.

The orderEditAddLineItemDiscount mutation allows you to add a fixed amount or percentage discount to an already existing item during an order edit. Previously, this mutation was limited to applying discounts to new products or custom items added to the order.

In addition, two new mutations allow you to remove and update discounts. The mutation orderEditRemoveDiscount removes discounts on newly added, existing products, or custom items, while the orderEditUpdateDiscount mutation allows for updating discounts.

For more information about using discounts with order edits, visit the tutorial on [editing an existing order with the Admin API](https://shopify.dev/tutorials/edit-an-existing-order-with-admin-api#add-a-discount-to-the-variant).
