> ## 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.

# DiscountBxgyCustomerBuys

> 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">[DiscountCatalogItem!]!</a>} required>
  Collections that count toward X. Empty if products are used.

  <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">
      A display name, when the platform provided one.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="products" type={<a href="/docs/api-reference/v3/reference/marketing/discount-catalog-item">[DiscountCatalogItem!]!</a>} required>
  Products that count toward X. Empty if collections are used.

  <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">
      A display name, when the platform provided one.
    </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.