StoreCartLineItem

Properties#

idstring
The ID of the line item.
titlestring
The title of the line item.
quantitynumber
The line item's quantity in the cart.
requires_shippingboolean
Whether the line item requires shipping.
is_discountableboolean
Whether the line item is discountable.
is_tax_inclusiveboolean
Whether the line item price is tax inclusive.
unit_pricenumber
The unit price of the item.
cart_idstring
The ID of the associated cart.
original_totalnumber
The original total of the cart line item.
original_subtotalnumber
The original subtotal of the cart line item.
original_tax_totalnumber
The original tax total of the cart line item.
item_totalnumber
The item total of the cart line item.
item_subtotalnumber
The item subtotal of the cart line item.
item_tax_totalnumber
The item tax total of the cart line item.
totalnumber
The total of the cart line item.
subtotalnumber
The subtotal of the cart line item.
tax_totalnumber
The tax total of the cart line item.
discount_totalnumber
The discount total of the cart line item.
discount_tax_totalnumber
The discount tax total of the cart line item.
The cart this item belongs to.
subtitlestringOptional
The subtitle of the line item.
thumbnailstringOptional
The line item's thumbnail.
product_idstringOptional
The ID of the associated product.
product_titlestringOptional
The title of the associated product.
product_descriptionstringOptional
The description of the associated product.
product_subtitlestringOptional
The subtitle of the associated product.
product_typestringOptional
The type of the associated product.
product_collectionstringOptional
The collection of the associated product.
product_handlestringOptional
The handle of the associated product.
variant_idstringOptional
The associated variant's ID of the line item.
variant_skustringOptional
The sku of the associated variant.
variant_barcodestringOptional
The barcode of the associated variant.
variant_titlestringOptional
The title of the associated variant.
variant_option_valuesRecord<string, unknown>Optional
The option values of the associated variant.
compare_at_unit_pricenumberOptional
The calculated price of the line item.
metadatanull | Record<string, unknown>Optional
Holds custom data in key-value pairs.
created_atDateOptional
When the line item was created.
updated_atDateOptional
When the line item was updated.
deleted_atDateOptional
When the line item was deleted.
productStoreProductOptional
The product this item is created for.
variantStoreProductVariantOptional
The variant added to the cart.
tax_linesBaseLineItemTaxLine & object[]Optional
The item's tax lines.
adjustmentsBaseLineItemAdjustment & object[]Optional
The item's adjustments.
Was this page helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break