retrieveLineItem - Cart Module Reference
This documentation provides a reference to the retrieveLineItem
method. This belongs to the Cart Module.
This method retrieves a line item by its ID.
Example
A simple example that retrieves a line item by its ID:
To specify relations that should be retrieved:
Parameters
itemId
stringRequiredThe item's ID.
config
FindConfig<CartLineItemDTO>The configurations determining how the line item is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a line item.
config
FindConfig<CartLineItemDTO>select
or relations
, accept the
attributes or relations associated with a line item.Returns
The retrieved line item.
Was this section helpful?