Skip to main content
Back to changelog

Add Prerequisites to Product Discount Functions

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.

For more detailed information, please visit the Discount Functions documentation.

Was this page helpful?