An automatic discount that offers customers a Buy X, Get Y (BXGY) discount.
Access Scopes
Apps must have `read_discounts` access scope.
Fields
asyncUsageCount:
Int! -
The number of times the discount has been used. This value is updated asynchronously and can be different than the actual usage count.
combinesWith:
DiscountCombinesWith! -
Determines which discount classes the discount can combine with.
createdAt:
DateTime! -
The date and time when the discount was created.
customerBuys:
DiscountCustomerBuys! -
The qualifying items and the quantity of each one that the customer has to buy to be eligible for the discount.
customerGets:
DiscountCustomerGets! -
The qualifying items in an order, the quantity of each one, and the total value of the discount.
discountClass:
MerchandiseDiscountClass! -
The class of the discount for combining purposes.
endsAt:
DateTime -
The date and time when the discount ends. For open-ended discounts, use `null`.
DiscountAutomatic
The type of discount associated to the automatic discount. For example, the automatic discount might offer a basic discount using a fixed percentage, or a fixed amount, on specific products from the order. The automatic discount may also be a BXGY discount, which offers customer discounts on select products if they add a specific product to their order.