---
title: >-
  Discount Function support for rejecting discount codes - 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/discount-rejection-support-for-discount-functions
  md: >-
    https://shopify.dev/changelog/posts/discount-rejection-support-for-discount-functions.md
metadata:
  effectiveApiVersion: 2026-01
  affectedApi:
    - displayName: Functions
      handle: functions-api
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2025-10-24T15:55:11-04:00'
  postedAt: '2025-12-17T12:00:00-05:00'
  updatedAt: '2025-12-16T15:40:28-05:00'
  effectiveAt: '2025-12-25T12:00:00-05:00'
---

December 17, 2025

# Discount Function support for rejecting discount codes

DateDecember 17, 2025

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

FlagsNew

SurfacesAPI

Affected APIs[Functions](https://shopify.dev/changelog?api_type=functions-api)

The [`Discount Function API`](https://shopify.dev/docs/api/functions/reference/discount) now supports discount code rejection, allowing apps to conditionally reject discount codes with a custom message.

With discount rejection for the Discount Function API, merchants can:

* Prevent double discounting on sale prices
* Manage fine-grained combinations of discount codes
* Disqualify certain products from discounts

For more information on discount rejections, visit the [tutorial](https://shopify.dev/docs/apps/build/discounts/discount-rejections?extension=rust).
