--- 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/enhanced-discount-function-configuration-with-admin-ui-extensions md: >- https://shopify.dev/changelog/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-01-27T17:29:48-05:00' effectiveAt: '2026-01-06T12:00:00-05:00' --- January 28, 2026 Tags: * Admin Extensions * 2026-01 # Enhanced Discount Function configuration with Admin UI 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/2026-01/api/target-apis/discount-function-settings-api#discounts)