--- 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/discount-rejection-support-for-discount-functions md: https://shopify.dev/changelog/discount-rejection-support-for-discount-functions.md --- [Back to Developer changelog](https://shopify.dev/changelog) December 17, 2025 Tags: * Functions * 2026-01 # Discount Function support for rejecting discount codes 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).