---
title: >-
  Enhanced Discount Function configuration with Admin UI extensions - 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/enhanced-discount-function-configuration-with-admin-ui-extensions
  md: >-
    https://shopify.dev/changelog/posts/enhanced-discount-function-configuration-with-admin-ui-extensions.md
metadata:
  effectiveApiVersion: 2026-01
  affectedApi:
    - displayName: Admin Extensions
      handle: admin-extensions
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2026-01-05T15:52:04-05:00'
  postedAt: '2026-01-28T12:00:00-05:00'
  updatedAt: '2026-08-28T10:59:51-04:00'
  effectiveAt: '2026-01-06T12:00:00-05:00'
---

January 28, 2026

# Enhanced Discount Function configuration with Admin UI extensions

DateJanuary 28, 2026

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

FlagsUpdate

SurfacesAPI

Affected APIs[Admin Extensions](https://shopify.dev/changelog?api_type=admin-extensions)

Admin UI extensions for Discount Functions can now interact with the selected discount method and manage discount classes, letting you customize the discount configuration experience directly within the Shopify admin.

This is a non-breaking change that adds new functionality to existing discount UI extensions.

### What's new

We've added a new `discounts` object to the Discount Function Settings API on the `2026-01` API version, providing these features:

* **`discountClasses`**: Access enabled discount classes (product, order, shipping).
* **`updateDiscountClasses`**: Enable or disable discount classes programmatically.
* **`discountMethod`**: Access the selected discount method (code or automatic).

### What this solves

Previously, discount UI extensions had three main limitations:

* **Inability to manage discount classes**: All Discount Functions defaulted to enabling all three discount classes, causing conflicts even when only one was needed.
* **No conditional UI based on method**: It wasn't possible to render different options for automatic versus code discounts.
* **No conditional UI based on classes**: There was no way to show/hide settings based on the enabled discount classes.

### What you can build

With these enhancements, you can now:

* **Create multi-effect discounts**: Develop discounts that offer savings on products, order total, and/or shipping, allowing merchants to toggle each option.
* **Method-specific configuration**: Display different UI for automatic versus code discounts within the same app and discount type.
* **Reduce combination conflicts**: Enable only the discount classes that your function requires to prevent unnecessary conflicts.

### Learn more

* [Build a discount UI with UI extensions](https://shopify.dev/docs/apps/build/discounts/build-ui-extension?extension=javascript) (updated)
* [Admin UI extensions API reference](https://shopify.dev/docs/api/admin-extensions/latest/target-apis/contextual-apis/discount-function-settings-api)
