---
title: "CartLine"
description: "CartLine"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/cart/objects/cart-line'
  md: 'https://developer.shopline.com/docs/storefront-api/cart/objects/cart-line.md'
---
# CartLine

CartLine

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`CartLine`

## Fields

* `attributes`

  [[Attribute]](https://developer.shopline.com/docs/storefront-api/common-objects/objects/attribute.md)

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

* `discountAllocations`

  [[CartDiscountAllocation]](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-discount-allocation.md)

  The discounts that have been applied to the cart line.

* `id`

  [ID!](https://developer.shopline.com/docs/storefront-api/common/scalars/id.md)

  A globally-unique identifier.

* `image`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  image url

* `price`

  [Decimal](https://developer.shopline.com/docs/storefront-api/common/scalars/decimal.md)

  merchandise  price

* `productId`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  product id

* `productVariant`

  [ProductVariant!](https://developer.shopline.com/docs/storefront-api/products/objects/product-variant.md)

  A product variant represents a different version of a product, such as differing colors or differing sizes.

* `quantity`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

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

* `selectStatus`

  [Boolean](https://developer.shopline.com/docs/storefront-api/common/scalars/boolean.md)

  The cart line is selected or not.

* `selectedOptions`

  [[SelectedOption]!](https://developer.shopline.com/docs/storefront-api/common-objects/objects/selected-option.md)

  Properties used by customers to select a product variant. Products can have multiple options, like different sizes or colors.

* `singleSelect`

  [Boolean](https://developer.shopline.com/docs/storefront-api/common/scalars/boolean.md)

  Whether the cart line can be selected separately.

* `taxable`

  [Boolean](https://developer.shopline.com/docs/storefront-api/common/scalars/boolean.md)

  whether tax required

* `title`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  title

* `variantId`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  variant id

## Schema Definition

```graphql
type CartLine { 
	attributes: [Attribute]
	discountAllocations: [CartDiscountAllocation]
	id: ID!
	image: String
	price: Decimal
	productId: String!
	productVariant: ProductVariant!
	quantity: String!
	selectStatus: Boolean
	selectedOptions: [SelectedOption]!
	singleSelect: Boolean
	taxable: Boolean
	title: String
	variantId: String! 
}
```

## Field from

* [Cart](https://developer.shopline.com/docs/storefront-api/cart/objects/cart.md).lines

  A list of lines containing information about the items the customer intends to purchase.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

