- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
CreateCartCreateLineItemDTO
The details of the line item to create.
Properties#
quantity
BigNumberInputThe quantity of the line item.
quantity
BigNumberInputvariant_id
stringOptionalThe ID of the variant to be added to the cart.
title
stringOptionalThe title of the line item.
subtitle
stringOptionalThe subtitle of the line item.
thumbnail
stringOptionalThe thumbnail URL of the line item.
product_id
stringOptionalThe ID of the product whose variant is being added to the cart.
product_title
stringOptionalThe title of the associated product.
product_description
stringOptionalThe description of the associated product.
product_subtitle
stringOptionalThe subtitle of the associated product.
product_type
stringOptionalThe ID of the associated product's type.
product_collection
stringOptionalThe ID of the associated product's collection.
product_handle
stringOptionalThe handle of the associated product.
variant_sku
stringOptionalThe SKU of the associated variant.
variant_barcode
stringOptionalThe barcode of the associated variant.
variant_title
stringOptionalThe title of the associated variant.
variant_option_values
Record<string, unknown>OptionalThe associated variant's values for the product's options.
requires_shipping
booleanOptionalWhether the line item requires shipping.
is_discountable
booleanOptionalWhether the line item is discountable.
is_tax_inclusive
booleanOptionalWhether the line item's price is tax inclusive. Learn more in
this documentation
is_giftcard
booleanOptionalWhether the line item is a gift card.
The original price of the item before a promotion or sale.
The price of a single quantity of the item.
metadata
null | Record<string, unknown>OptionalCustom key-value pairs related to the item.
Was this page helpful?