← Latest Shopify changes

Add Prerequisites to Product Discount Functions

APINewFunctions2026-04

Shopify developer change

MerchantDiff detected this entry in Shopify's official developer changelog on April 01, 2026.

This Shopify update is categorized as API, New, Functions, 2026-04.

What changed

Discount functions now support prerequisites for product discount candidates, allowing you to define the "Buy X" portion of a Buy X, Get Y (BXGY) discount. In a BXGY discount, customers must purchase a specified quantity of one product (Buy X) to receive a discount on another product (Get Y). What's New: A prerequisites field has been added to product discount candidates. Each prerequisite is defined as a cartLinePrerequisite, which includes: id: The identifier for the cart line used as the prerequisite. quantity: The number of items from that cart line required to qualify for the discount.

Who is affected

Apps that create, manage, or depend on Shopify discount functionality should review this change.

What action may be needed

Review whether the new capability is relevant to your app. If you plan to use it, test the affected API or workflow before adopting it in production.

Referenced API version: 2026-04

Use the official Shopify entry below as the source of truth for technical implementation details, affected APIs, migration instructions and deadlines.

Want the actionable version?

MerchantDiff monitors Shopify API changes, deprecations, deadlines and ecosystem updates, then turns them into developer-focused release intelligence: what changed, who is affected and what action may be needed.

Get MerchantDiff →