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

# DiscountBxgyCustomerGetsInput

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

<ResponseField name="amount" type="Float!" required>
  Percent off (0–100) when `valueType` is PERCENTAGE; otherwise a currency amount.
</ResponseField>

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

  <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 the customer gets.

  <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>
  How many Y items the customer gets.
</ResponseField>

<ResponseField name="valueType" type={<a href="/docs/api-reference/v3/reference/marketing/discount-value-type">DiscountValueType!</a>} required>
  Whether `amount` is a percent or a currency amount off Y.
</ResponseField>


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