> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DiscountBxgyCustomerBuysInput

> The X side of a buy-X-get-Y discount.

<ResponseField name="amount" type="Float">
  Required spend when `triggerType` is MINIMUM\_AMOUNT.
</ResponseField>

<ResponseField name="collections" type={<a href="/docs/api-reference/v3/reference/marketing/discount-catalog-item-input">[DiscountCatalogItemInput!]</a>}>
  Collections that count toward X.

  <Expandable title="fields" lazyRender>
    <ResponseField name="id" type="String!" required>
      The platform's id for this product or collection.
    </ResponseField>

    <ResponseField name="title" type="String">
      An optional display name.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="products" type={<a href="/docs/api-reference/v3/reference/marketing/discount-catalog-item-input">[DiscountCatalogItemInput!]</a>}>
  Products that count toward X.

  <Expandable title="fields" lazyRender>
    <ResponseField name="id" type="String!" required>
      The platform's id for this product or collection.
    </ResponseField>

    <ResponseField name="title" type="String">
      An optional display name.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="quantity" type="Float">
  Required quantity when `triggerType` is MINIMUM\_QUANTITY.
</ResponseField>

<ResponseField name="triggerType" type={<a href="/docs/api-reference/v3/reference/marketing/discount-bxgy-trigger-type">DiscountBxgyTriggerType!</a>} required>
  Whether the customer must buy a quantity or spend an amount.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.