Skip to Content

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

FieldTypeDescription
typeStringReturns the type, either product, bundle or gift_card.
modelStringReturns the merchant defined model number.
imageStringReturns the image.
categoryPath[String]Returns the category path.
lineDiscountFloatReturns the applied line discount in customer’s currency.
priceFloatReturns the unit price in customer’s currency.
linePriceFloatReturns the line price in customer’s currency.
netPriceFloatReturns the net price in customer’s currency.
taxFloatReturns the line tax in customer’s currency.
quantityIntReturns the quantity.
titleStringReturns the title.
descriptionStringReturns the description.
attributesLabelStringReturns a label for the attributes selected for the product.
attributes[String]Returns the attributes selected for the product.
customizations[CartLineCustomization]The customizations applied to this cart line item. For richer data than attributesLabel.
gtinStringReturns a GTIN number for the product.
manufacturerStringReturns the manufacturer.
unitStringReturns a unit for the product.
productUrlStringReturns the product url.
bundleItems[CartLineItem]Returns the bundle content if the type is bundle.
giftCardCodeStringReturns the gift card code if the type is gift_card.
giftCardValueFloatReturns the gift card value in customer’s currency if the type is gift_card.
giftCardExpiryStringReturns the gift card expiry date if the type is gift_card.
productProductReturns the associated product if it’s available at the store.
rateFloatReturns the tax rate in decimals.
ratePercentageFloatReturns the tax rate.
idIntThe unique identifier of the cart item.
metafields[Metafield]!Metafields stored on this resource.
metafieldMetafieldA single metafield by namespace and key.

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