CartLineItem

  • Object

Represents a line item in a cart, which includes details about the product, variant, and any associated discounts.

Each line item contains information such as the product name, variant details, total price, and any applicable discounts. This allows for detailed tracking of items within a cart, including their pricing and discount applications.

#

Fields


ID!

The unique identifier of the line item

ID!

The unique identifier of the product associated with the cart line item.

String!

The name of the product

String!

Retrieves the slug of the product associated with a cart line item. This is useful for generating URLs or displaying product information.

Int!

Retrieves the quantity of the cart line item.

String!

Retrieves the SKU (Stock Keeping Unit) of the variant associated with a cart line item. The SKU is a unique identifier for the variant, often used for inventory management.

Money!

The line items total excluding discounts and taxes.

TaxBehavior!

Gets the tax behavior of the cart line item, which indicates how taxes are applied to the item.

TaxRate

Retrieves the tax rate applied to the cart line item. This may be null if the line item does not have a tax rate defined.

TaxedPrice

Gets the taxed price of the cart line item. This may be null if the cart does not yet have a taxed price.

Money!

Gets the total price of the cart line item after discounts and taxes.

UnitPrice!

Retrieves the unit price of the cart line item.

ID!

The unique identifier of the variant associated with the cart line item.

String!

Retrieves the name of the variant associated with a cart line item. This is useful for displaying the specific variant details to the user.