Skip to Content
StoreOSv0.27.1
Storefront GraphQL APIReferenceObjects

DiscountBuysRule

typeDiscountBuysRule

Fields

  1. fields
scope*DiscountItemScope!
Value inALLPRODUCTSCOLLECTIONS
productIds?[String!]
collectionIds?[String!]
minQuantity?Int

Units the customer must buy. Used when minAmount is empty.

minAmount?Float

Spend on qualifying items the customer must reach.

Usages

Field of
DiscountBuyXGetY.buys
SDL
type DiscountBuysRule {  scope: DiscountItemScope!  productIds: [String!]  collectionIds: [String!]  minQuantity: Int  minAmount: Float}