- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createLineItemsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createLineItemsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates line item in a cart.
Example#
Input#
CreateLineItemsCartStepInput
CreateLineItemsCartStepInputThe details of the line items to create.
CreateLineItemsCartStepInput
CreateLineItemsCartStepInputid
stringThe ID of the cart to create line items for.
id
stringitems
CreateLineItemForCartDTO[]The line items to create.
items
CreateLineItemForCartDTO[]Output#
CartLineItemDTO[]
CartLineItemDTO[]
CartLineItemDTO[]
CartLineItemDTO[]CartLineItemDTO
CartLineItemDTOThe cart line item details.
CartLineItemDTO
CartLineItemDTOWas this page helpful?