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