<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-cartline-unstable"> Types that return CartLine </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/product-discounts/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/product-discounts/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="cost-unstable"> <div class="field-name"> cost (<a href="/api/functions/reference/product-discounts/graphql/common-objects/cartlinecost"><code>CartLineCost!</code></a>) </div> <div> <p>The cost of the merchandise line that the buyer will pay at checkout.</p> </div> </div> </li> <li> <div class="field" id="id-unstable"> <div class="field-name"> id (<a href="/api/functions/reference/product-discounts/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/product-discounts/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/product-discounts/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> <li> <div class="field" id="sellingplanallocation-unstable"> <div class="field-name"> sellingPlanAllocation (<a href="/api/functions/reference/product-discounts/graphql/common-objects/sellingplanallocation"><code>SellingPlanAllocation</code></a>) </div> <div> <p>The selling plan associated with the cart line and the effect that each selling plan has on variants when they're purchased.</p> </div> </div> </li> </ul> <h2 id="types-that-return-cartline-unstable"> Types that return CartLine </h2> <ul> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cart#lines-unstable"> <code>Cart.lines</code> </a> </li> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cartdeliverygroup#cartlines-unstable"> <code>CartDeliveryGroup.cartLines</code> </a> </li> </ul> </div><div class="doc-version doc-version--rc" data-version="2025-04"> <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-2025-04"> Fields </a> </li> <li> <a href="#types-that-return-cartline-2025-04"> Types that return CartLine </a> </li> </ul> </div> <h2 id="fields-2025-04"> Fields </h2> <ul class="fields"> <li> <div class="field" id="attribute-2025-04"> <div class="field-name"> attribute (<a href="/api/functions/reference/product-discounts/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/product-discounts/graphql/scalar#string-2025-04"> <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="cost-2025-04"> <div class="field-name"> cost (<a href="/api/functions/reference/product-discounts/graphql/common-objects/cartlinecost"><code>CartLineCost!</code></a>) </div> <div> <p>The cost of the merchandise line that the buyer will pay at checkout.</p> </div> </div> </li> <li> <div class="field" id="id-2025-04"> <div class="field-name"> id (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-2025-04"><code>ID!</code></a>) </div> <div> <p>The ID of the cart line.</p> </div> </div> </li> <li> <div class="field" id="merchandise-2025-04"> <div class="field-name"> merchandise (<a href="/api/functions/reference/product-discounts/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-2025-04"> <div class="field-name"> quantity (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-2025-04"><code>Int!</code></a>) </div> <div> <p>The quantity of the merchandise that the customer intends to purchase.</p> </div> </div> </li> <li> <div class="field" id="sellingplanallocation-2025-04"> <div class="field-name"> sellingPlanAllocation (<a href="/api/functions/reference/product-discounts/graphql/common-objects/sellingplanallocation"><code>SellingPlanAllocation</code></a>) </div> <div> <p>The selling plan associated with the cart line and the effect that each selling plan has on variants when they're purchased.</p> </div> </div> </li> </ul> <h2 id="types-that-return-cartline-2025-04"> Types that return CartLine </h2> <ul> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cart#lines-2025-04"> <code>Cart.lines</code> </a> </li> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cartdeliverygroup#cartlines-2025-04"> <code>CartDeliveryGroup.cartLines</code> </a> </li> </ul> </div><div class="doc-version doc-version--latest selected" data-version="2025-01"> <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-2025-01"> Fields </a> </li> <li> <a href="#types-that-return-cartline-2025-01"> Types that return CartLine </a> </li> </ul> </div> <h2 id="fields-2025-01"> Fields </h2> <ul class="fields"> <li> <div class="field" id="attribute-2025-01"> <div class="field-name"> attribute (<a href="/api/functions/reference/product-discounts/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/product-discounts/graphql/scalar#string-2025-01"> <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="cost-2025-01"> <div class="field-name"> cost (<a href="/api/functions/reference/product-discounts/graphql/common-objects/cartlinecost"><code>CartLineCost!</code></a>) </div> <div> <p>The cost of the merchandise line that the buyer will pay at checkout.</p> </div> </div> </li> <li> <div class="field" id="id-2025-01"> <div class="field-name"> id (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-2025-01"><code>ID!</code></a>) </div> <div> <p>The ID of the cart line.</p> </div> </div> </li> <li> <div class="field" id="merchandise-2025-01"> <div class="field-name"> merchandise (<a href="/api/functions/reference/product-discounts/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-2025-01"> <div class="field-name"> quantity (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-2025-01"><code>Int!</code></a>) </div> <div> <p>The quantity of the merchandise that the customer intends to purchase.</p> </div> </div> </li> <li> <div class="field" id="sellingplanallocation-2025-01"> <div class="field-name"> sellingPlanAllocation (<a href="/api/functions/reference/product-discounts/graphql/common-objects/sellingplanallocation"><code>SellingPlanAllocation</code></a>) </div> <div> <p>The selling plan associated with the cart line and the effect that each selling plan has on variants when they're purchased.</p> </div> </div> </li> </ul> <h2 id="types-that-return-cartline-2025-01"> Types that return CartLine </h2> <ul> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cart#lines-2025-01"> <code>Cart.lines</code> </a> </li> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cartdeliverygroup#cartlines-2025-01"> <code>CartDeliveryGroup.cartLines</code> </a> </li> </ul> </div><div class="doc-version" data-version="2024-10"> <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-2024-10"> Fields </a> </li> <li> <a href="#types-that-return-cartline-2024-10"> Types that return CartLine </a> </li> </ul> </div> <h2 id="fields-2024-10"> Fields </h2> <ul class="fields"> <li> <div class="field" id="attribute-2024-10"> <div class="field-name"> attribute (<a href="/api/functions/reference/product-discounts/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/product-discounts/graphql/scalar#string-2024-10"> <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="cost-2024-10"> <div class="field-name"> cost (<a href="/api/functions/reference/product-discounts/graphql/common-objects/cartlinecost"><code>CartLineCost!</code></a>) </div> <div> <p>The cost of the merchandise line that the buyer will pay at checkout.</p> </div> </div> </li> <li> <div class="field" id="id-2024-10"> <div class="field-name"> id (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-2024-10"><code>ID!</code></a>) </div> <div> <p>The ID of the cart line.</p> </div> </div> </li> <li> <div class="field" id="merchandise-2024-10"> <div class="field-name"> merchandise (<a href="/api/functions/reference/product-discounts/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-2024-10"> <div class="field-name"> quantity (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-2024-10"><code>Int!</code></a>) </div> <div> <p>The quantity of the merchandise that the customer intends to purchase.</p> </div> </div> </li> <li> <div class="field" id="sellingplanallocation-2024-10"> <div class="field-name"> sellingPlanAllocation (<a href="/api/functions/reference/product-discounts/graphql/common-objects/sellingplanallocation"><code>SellingPlanAllocation</code></a>) </div> <div> <p>The selling plan associated with the cart line and the effect that each selling plan has on variants when they're purchased.</p> </div> </div> </li> </ul> <h2 id="types-that-return-cartline-2024-10"> Types that return CartLine </h2> <ul> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cart#lines-2024-10"> <code>Cart.lines</code> </a> </li> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cartdeliverygroup#cartlines-2024-10"> <code>CartDeliveryGroup.cartLines</code> </a> </li> </ul> </div><div class="doc-version" data-version="2024-07"> <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-2024-07"> Fields </a> </li> <li> <a href="#types-that-return-cartline-2024-07"> Types that return CartLine </a> </li> </ul> </div> <h2 id="fields-2024-07"> Fields </h2> <ul class="fields"> <li> <div class="field" id="attribute-2024-07"> <div class="field-name"> attribute (<a href="/api/functions/reference/product-discounts/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/product-discounts/graphql/scalar#string-2024-07"> <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="cost-2024-07"> <div class="field-name"> cost (<a href="/api/functions/reference/product-discounts/graphql/common-objects/cartlinecost"><code>CartLineCost!</code></a>) </div> <div> <p>The cost of the merchandise line that the buyer will pay at checkout.</p> </div> </div> </li> <li> <div class="field" id="id-2024-07"> <div class="field-name"> id (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-2024-07"><code>ID!</code></a>) </div> <div> <p>The ID of the cart line.</p> </div> </div> </li> <li> <div class="field" id="merchandise-2024-07"> <div class="field-name"> merchandise (<a href="/api/functions/reference/product-discounts/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-2024-07"> <div class="field-name"> quantity (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-2024-07"><code>Int!</code></a>) </div> <div> <p>The quantity of the merchandise that the customer intends to purchase.</p> </div> </div> </li> <li> <div class="field" id="sellingplanallocation-2024-07"> <div class="field-name"> sellingPlanAllocation (<a href="/api/functions/reference/product-discounts/graphql/common-objects/sellingplanallocation"><code>SellingPlanAllocation</code></a>) </div> <div> <p>The selling plan associated with the cart line and the effect that each selling plan has on variants when they're purchased.</p> </div> </div> </li> </ul> <h2 id="types-that-return-cartline-2024-07"> Types that return CartLine </h2> <ul> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cart#lines-2024-07"> <code>Cart.lines</code> </a> </li> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cartdeliverygroup#cartlines-2024-07"> <code>CartDeliveryGroup.cartLines</code> </a> </li> </ul> </div><div class="doc-version" data-version="2024-04"> <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-2024-04"> Fields </a> </li> <li> <a href="#types-that-return-cartline-2024-04"> Types that return CartLine </a> </li> </ul> </div> <h2 id="fields-2024-04"> Fields </h2> <ul class="fields"> <li> <div class="field" id="attribute-2024-04"> <div class="field-name"> attribute (<a href="/api/functions/reference/product-discounts/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/product-discounts/graphql/scalar#string-2024-04"> <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="cost-2024-04"> <div class="field-name"> cost (<a href="/api/functions/reference/product-discounts/graphql/common-objects/cartlinecost"><code>CartLineCost!</code></a>) </div> <div> <p>The cost of the merchandise line that the buyer will pay at checkout.</p> </div> </div> </li> <li> <div class="field" id="id-2024-04"> <div class="field-name"> id (<a href="/api/functions/reference/product-discounts/graphql/scalar#id-2024-04"><code>ID!</code></a>) </div> <div> <p>The ID of the cart line.</p> </div> </div> </li> <li> <div class="field" id="merchandise-2024-04"> <div class="field-name"> merchandise (<a href="/api/functions/reference/product-discounts/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-2024-04"> <div class="field-name"> quantity (<a href="/api/functions/reference/product-discounts/graphql/scalar#int-2024-04"><code>Int!</code></a>) </div> <div> <p>The quantity of the merchandise that the customer intends to purchase.</p> </div> </div> </li> <li> <div class="field" id="sellingplanallocation-2024-04"> <div class="field-name"> sellingPlanAllocation (<a href="/api/functions/reference/product-discounts/graphql/common-objects/sellingplanallocation"><code>SellingPlanAllocation</code></a>) </div> <div> <p>The selling plan associated with the cart line and the effect that each selling plan has on variants when they're purchased.</p> </div> </div> </li> </ul> <h2 id="types-that-return-cartline-2024-04"> Types that return CartLine </h2> <ul> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cart#lines-2024-04"> <code>Cart.lines</code> </a> </li> <li> <a href="/api/functions/reference/product-discounts/graphql/common-objects/cartdeliverygroup#cartlines-2024-04"> <code>CartDeliveryGroup.cartLines</code> </a> </li> </ul> </div>