--- 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 --- [Back to Developer changelog](https://shopify.dev/changelog) 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).