- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
CreateLineItemForCartDTO
The line item to be created in a cart.
title
stringThe title of the line item.
quantity
BigNumberInputThe quantity of the line item in the cart.
quantity
BigNumberInputunit_price
BigNumberInputThe unit price of the line item.
unit_price
BigNumberInputcart_id
stringThe associated cart's ID.
subtitle
stringOptionalThe subtitle of the line item.
thumbnail
stringOptionalThe thumbnail of the line item.
product_id
stringOptionalThe associated product's ID.
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 type of the associated product.
product_type_id
stringOptionalThe ID of type of the associated product.
product_collection
stringOptionalThe collection of the associated product.
product_handle
stringOptionalThe handle of the associated product.
variant_id
stringOptionalThe associated variant's ID.
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 option values of the associated variant.
requires_shipping
booleanOptionalWhether the line item requires shipping.
is_discountable
booleanOptionalWhether the line item is discountable.
is_tax_inclusive
booleanOptionalWhether the line item's amount is tax inclusive.
is_custom_price
booleanOptionalWhether the line item's amount is a custom price.
The calculated price of the line item after applying promotions.
The tax lines of the line item.
The adjustments of the line item.
metadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
Was this page helpful?