---
title: ComponentizableCartLine - Storefront API
description: Represents information about the grouped merchandise in the cart.
api_version: 2026-04
source_url:
  html: https://shopify.dev/docs/api/storefront/latest/objects/componentizablecartline
  md: https://shopify.dev/docs/api/storefront/latest/objects/componentizablecartline.md
---

# Componentizable​Cart​Line

object

Represents information about the grouped merchandise in the cart.

## Fields

* attribute

  [Attribute](https://shopify.dev/docs/api/storefront/latest/objects/Attribute)

  An attribute associated with the cart line.

  * key

    [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

    required

    ### Arguments

    The key of the attribute.

  ***

* attributes

  [\[Attribute!\]!](https://shopify.dev/docs/api/storefront/latest/objects/Attribute)

  non-null

  The attributes associated with the cart line. Attributes are represented as key-value pairs.

* cost

  [Cart​Line​Cost!](https://shopify.dev/docs/api/storefront/latest/objects/CartLineCost)

  non-null

  The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout.

* discount​Allocations

  [\[Cart​Discount​Allocation!\]!](https://shopify.dev/docs/api/storefront/latest/interfaces/CartDiscountAllocation)

  non-null

  The discounts that have been applied to the cart line.

* id

  [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID)

  non-null

  A globally-unique ID.

* line​Components

  [\[Cart​Line!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartLine)

  non-null

  The components of the line item.

* merchandise

  [Merchandise!](https://shopify.dev/docs/api/storefront/latest/unions/Merchandise)

  non-null

  The merchandise that the buyer intends to purchase.

* quantity

  [Int!](https://shopify.dev/docs/api/storefront/latest/scalars/Int)

  non-null

  The quantity of the merchandise that the customer intends to purchase.

* selling​Plan​Allocation

  [Selling​Plan​Allocation](https://shopify.dev/docs/api/storefront/latest/objects/SellingPlanAllocation)

  The selling plan associated with the cart line and the effect that each selling plan has on variants when they're purchased.

* estimated​Cost

  [Cart​Line​Estimated​Cost!](https://shopify.dev/docs/api/storefront/latest/objects/CartLineEstimatedCost)

  non-nullDeprecated

***

## Map

No referencing types

***

## Interfaces

* * [Base​Cart​Line](https://shopify.dev/docs/api/storefront/latest/interfaces/BaseCartLine)

    interface

  * [Node](https://shopify.dev/docs/api/storefront/latest/interfaces/Node)

    interface

***

## ComponentizableCartLine Implements

### Implements

* [Base​Cart​Line](https://shopify.dev/docs/api/storefront/latest/interfaces/BaseCartLine)
* [Node](https://shopify.dev/docs/api/storefront/latest/interfaces/Node)