Skip to main content

Edit manual order-level discounts during an order edit

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:

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. 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

Was this page helpful?