The input fields to create or update an automatic Buy X, Get Y (BXGY) discount.
Access Scopes
Fields
combinesWith:
DiscountCombinesWithInput -
Determines which discount classes the discount can combine with.
customerBuys:
DiscountCustomerBuysInput -
The qualifying items and the quantity of each one that the customer has to buy to be eligible for the discount.
customerGets:
DiscountCustomerGetsInput -
The qualifying items in an order, the quantity of each one, and the total value of the discount.
endsAt:
DateTime -
The date and time when the discount ends. For open-ended discounts, use `null`.
startsAt:
DateTime -
The date and time when the discount starts.