CartLineItem
Describes a cart line item, including product details, pricing, and attributes.
Type Definition
type CartLineItem {
type: String
model: String
image: String
categoryPath: [String]
lineDiscount: Float
price: Float
linePrice: Float
netPrice: Float
tax: Float
quantity: Int
title: String
description: String
attributesLabel: String
attributes: [String]
customizations: [CartLineCustomization]
gtin: String
manufacturer: String
unit: String
productUrl: String
bundleItems: [CartLineItem]
giftCardCode: String
giftCardValue: Float
giftCardExpiry: String
product: Product
rate: Float
ratePercentage: Float
id: Int
metafields: [Metafield]!
metafield: Metafield
}Fields
Relationships
CartLineItem represents individual items within a shopping cart. It maintains relationships with several key types: it can reference a Product object for product-related line items, contains an array of CartLineCustomization objects for customization data, may include nested CartLineItem objects when the type is bundle, and holds Metafield objects for extensible metadata storage. Gift card line items include specific fields for gift card information including code and expiry date.
Example
query {
cartLineItems {
id
type
title
quantity
price
linePrice
product {
id
title
}
customizations {
label
value
}
metafields {
namespace
key
value
}
}
}Implements
None