<div class="doc-version" data-version="unstable">
  <p>Represents information about the merchandise in the cart.</p>
    <div>
    <h2 id="on-this-page">On this page</h2>
    <ul>
      <li>
        <a href="#fields-unstable">
          Fields
        </a>
      </li>
      <li>
        <a href="#types-that-return-deliverablecartline-unstable">
          Types that return DeliverableCartLine
        </a>
      </li>
    </ul>
  </div>
<h2 id="fields-unstable">
  Fields
</h2>
  <ul class="fields">
      <li>
        <div class="field" id="attribute-unstable">
          <div class="field-name">
            attribute
            (<a href="/api/functions/reference/discounts-allocator/graphql/common-objects/attribute"><code>Attribute</code></a>)
          </div>
          <div>
            <p>Retrieve a cart line attribute by key.</p>
<p>Cart line attributes are also known as line item properties in Liquid.</p>
          </div>
        </div>
          <div class="arguments-table">
  <table>
    <tr>
      <th>Argument</th>
      <th>Description</th>
    </tr>
      <tr class="field-argument">
        <td class="argument-name">
          <code>key</code>
          (<a href="/api/functions/reference/discounts-allocator/graphql/scalar#string-unstable">
            <code>String</code>
          </a>)
        </td>
        <td class="argument-description">
          <p>The key of the attribute to retrieve.</p>
        </td>
      </tr>
  </table>
</div>
      </li>
      <li>
        <div class="field" id="id-unstable">
          <div class="field-name">
            id
            (<a href="/api/functions/reference/discounts-allocator/graphql/scalar#id-unstable"><code>ID!</code></a>)
          </div>
          <div>
            <p>The ID of the cart line.</p>
          </div>
        </div>
      </li>
      <li>
        <div class="field" id="merchandise-unstable">
          <div class="field-name">
            merchandise
            (<a href="/api/functions/reference/discounts-allocator/graphql/common-objects/merchandise"><code>Merchandise!</code></a>)
          </div>
          <div>
            <p>The merchandise that the buyer intends to purchase.</p>
          </div>
        </div>
      </li>
      <li>
        <div class="field" id="quantity-unstable">
          <div class="field-name">
            quantity
            (<a href="/api/functions/reference/discounts-allocator/graphql/scalar#int-unstable"><code>Int!</code></a>)
          </div>
          <div>
            <p>The quantity of the merchandise that the customer intends to purchase.</p>
          </div>
        </div>
      </li>
  </ul>
  <h2 id="types-that-return-deliverablecartline-unstable">
    Types that return DeliverableCartLine
  </h2>
  <ul>
    <li>
      <a href="/api/functions/reference/discounts-allocator/graphql/common-objects/cart#deliverablelines-unstable">
        <code>Cart.deliverableLines</code>
      </a>
    </li>
  </ul>
</div>