- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
getLineItemActionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the getLineItemActionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step returns lists of cart line items to create or update based on the provided input.
Example#
Input#
GetLineItemActionsStepInput
GetLineItemActionsStepInputThe details of the line items to create or update.
GetLineItemActionsStepInput
GetLineItemActionsStepInputid
stringThe ID of the cart to create line items for.
id
stringitems
CreateLineItemForCartDTO[]The line items to create or update.
items
CreateLineItemForCartDTO[]Output#
GetLineItemActionsStepOutput
GetLineItemActionsStepOutput
GetLineItemActionsStepOutput
GetLineItemActionsStepOutputitemsToCreate
CreateLineItemForCartDTO[]The line items to create.
itemsToCreate
CreateLineItemForCartDTO[]itemsToUpdate
UpdateLineItemWithSelectorDTO[]The line items to update.
itemsToUpdate
UpdateLineItemWithSelectorDTO[]Was this page helpful?