<div class="doc-version" data-version="unstable">
  <p>A discount <a href="https://shopify.dev/api/functions/reference/product-discounts/graphql/common-objects/target">Target</a> that can apply to any cart lines for a specific product variant, up to an optional quantity limit.</p>
  <h2 id="input-fields-unstable">Fields</h2>
  <ul class="fields-list">
      <li>
        <div class="field">
          <div class="field-name">
            id
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-unstable"><code>ID!</code></a>)
              <span class="heading-flag">Required</span>
          </div>
        </div>
        <div>
          <p>The ID of the targeted product variant.</p>
        </div>
      </li>
      <li>
        <div class="field">
          <div class="field-name">
            quantity
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-unstable"><code>Int</code></a>)
          </div>
        </div>
        <div>
          <p>The maximum number of line item units to be discounted.
The default value is <code>null</code>, which represents the total quantity of the matching line items.</p>
<p>The value is validated against: &gt; 0.</p>
        </div>
      </li>
  </ul>
</div>
<div class="doc-version doc-version--rc" data-version="2025-04">
  <p>A discount <a href="https://shopify.dev/api/functions/reference/product-discounts/graphql/common-objects/target">Target</a> that can apply to any cart lines for a specific product variant, up to an optional quantity limit.</p>
  <h2 id="input-fields-2025-04">Fields</h2>
  <ul class="fields-list">
      <li>
        <div class="field">
          <div class="field-name">
            id
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-2025-04"><code>ID!</code></a>)
              <span class="heading-flag">Required</span>
          </div>
        </div>
        <div>
          <p>The ID of the targeted product variant.</p>
        </div>
      </li>
      <li>
        <div class="field">
          <div class="field-name">
            quantity
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-2025-04"><code>Int</code></a>)
          </div>
        </div>
        <div>
          <p>The maximum number of line item units to be discounted.
The default value is <code>null</code>, which represents the total quantity of the matching line items.</p>
<p>The value is validated against: &gt; 0.</p>
        </div>
      </li>
  </ul>
</div>
<div class="doc-version doc-version--latest selected" data-version="2025-01">
  <p>A discount <a href="https://shopify.dev/api/functions/reference/product-discounts/graphql/common-objects/target">Target</a> that can apply to any cart lines for a specific product variant, up to an optional quantity limit.</p>
  <h2 id="input-fields-2025-01">Fields</h2>
  <ul class="fields-list">
      <li>
        <div class="field">
          <div class="field-name">
            id
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-2025-01"><code>ID!</code></a>)
              <span class="heading-flag">Required</span>
          </div>
        </div>
        <div>
          <p>The ID of the targeted product variant.</p>
        </div>
      </li>
      <li>
        <div class="field">
          <div class="field-name">
            quantity
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-2025-01"><code>Int</code></a>)
          </div>
        </div>
        <div>
          <p>The maximum number of line item units to be discounted.
The default value is <code>null</code>, which represents the total quantity of the matching line items.</p>
<p>The value is validated against: &gt; 0.</p>
        </div>
      </li>
  </ul>
</div>
<div class="doc-version" data-version="2024-10">
  <p>A discount <a href="https://shopify.dev/api/functions/reference/product-discounts/graphql/common-objects/target">Target</a> that can apply to any cart lines for a specific product variant, up to an optional quantity limit.</p>
  <h2 id="input-fields-2024-10">Fields</h2>
  <ul class="fields-list">
      <li>
        <div class="field">
          <div class="field-name">
            id
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-2024-10"><code>ID!</code></a>)
              <span class="heading-flag">Required</span>
          </div>
        </div>
        <div>
          <p>The ID of the targeted product variant.</p>
        </div>
      </li>
      <li>
        <div class="field">
          <div class="field-name">
            quantity
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-2024-10"><code>Int</code></a>)
          </div>
        </div>
        <div>
          <p>The maximum number of line item units to be discounted.
The default value is <code>null</code>, which represents the total quantity of the matching line items.</p>
<p>The value is validated against: &gt; 0.</p>
        </div>
      </li>
  </ul>
</div>
<div class="doc-version" data-version="2024-07">
  <p>A discount <a href="https://shopify.dev/api/functions/reference/product-discounts/graphql/common-objects/target">Target</a> that can apply to any cart lines for a specific product variant, up to an optional quantity limit.</p>
  <h2 id="input-fields-2024-07">Fields</h2>
  <ul class="fields-list">
      <li>
        <div class="field">
          <div class="field-name">
            id
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-2024-07"><code>ID!</code></a>)
              <span class="heading-flag">Required</span>
          </div>
        </div>
        <div>
          <p>The ID of the targeted product variant.</p>
        </div>
      </li>
      <li>
        <div class="field">
          <div class="field-name">
            quantity
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-2024-07"><code>Int</code></a>)
          </div>
        </div>
        <div>
          <p>The maximum number of line item units to be discounted.
The default value is <code>null</code>, which represents the total quantity of the matching line items.</p>
<p>The value is validated against: &gt; 0.</p>
        </div>
      </li>
  </ul>
</div>
<div class="doc-version" data-version="2024-04">
  <p>A discount <a href="https://shopify.dev/api/functions/reference/product-discounts/graphql/common-objects/target">Target</a> that can apply to any cart lines for a specific product variant, up to an optional quantity limit.</p>
  <h2 id="input-fields-2024-04">Fields</h2>
  <ul class="fields-list">
      <li>
        <div class="field">
          <div class="field-name">
            id
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-2024-04"><code>ID!</code></a>)
              <span class="heading-flag">Required</span>
          </div>
        </div>
        <div>
          <p>The ID of the targeted product variant.</p>
        </div>
      </li>
      <li>
        <div class="field">
          <div class="field-name">
            quantity
            (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-2024-04"><code>Int</code></a>)
          </div>
        </div>
        <div>
          <p>The maximum number of line item units to be discounted.
The default value is <code>null</code>, which represents the total quantity of the matching line items.</p>
<p>The value is validated against: &gt; 0.</p>
        </div>
      </li>
  </ul>
</div>