- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
listLineItemsStep - Medusa Core Workflows Reference
This documentation provides a reference to the listLineItemsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step retrieves a list of a cart's line items matching the specified filters.
Example#
To retrieve the line items of a cart:
To retrieve the line items of a cart with pagination:
Learn more about listing items in this service factory reference.
Input#
ListLineItemsStepInput
ListLineItemsStepInputThe data to list line items.
ListLineItemsStepInput
ListLineItemsStepInputfilters
FilterableLineItemPropsThe filters to select the line items.
filters
FilterableLineItemPropsConfigurations to select the line items' fields
and relations, and to paginate the results.
Learn more in the service factory reference.
Output#
CartLineItemDTO[]
CartLineItemDTO[]
CartLineItemDTO[]
CartLineItemDTO[]CartLineItemDTO
CartLineItemDTOThe cart line item details.
CartLineItemDTO
CartLineItemDTOWas this page helpful?