- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
retrieveCart - Cart Module Reference
This documentation provides a reference to the retrieveCart
method. This belongs to the Cart Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
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
stringThe cart's ID.
The configurations determining how the cart is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a cart.
select
or relations
, accept the
attributes or relations associated with a cart.Returns#
Promise
Promise<CartDTO>The retrieved cart.
Promise
Promise<CartDTO>Was this page helpful?