CreateLineItemForCartDTO

The line item to be created in a cart.

titlestring
The title of the line item.
The quantity of the line item in the cart.
unit_priceBigNumberInput
The unit price of the line item.
cart_idstring
The associated cart's ID.
subtitlestringOptional
The subtitle of the line item.
thumbnailstringOptional
The thumbnail of the line item.
product_idstringOptional
The associated product's ID.
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_type_idstringOptional
The ID of 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.
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.
requires_shippingbooleanOptional
Whether the line item requires shipping.
is_discountablebooleanOptional
Whether the line item is discountable.
is_tax_inclusivebooleanOptional
Whether the line item's amount is tax inclusive.
is_custom_pricebooleanOptional
Whether the line item's amount is a custom price.
compare_at_unit_priceBigNumberInputOptional
The calculated price of the line item after applying promotions.
tax_linesCreateTaxLineDTO[]Optional
The tax lines of the line item.
adjustmentsCreateAdjustmentDTO[]Optional
The adjustments of the line item.
metadatanull | Record<string, unknown>Optional
Holds custom data in key-value pairs.
Was this page helpful?
Edit this page
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