@plentymarkets/shop-api / getCart
Function: getCart() ​
Method getCart - returns the cart data from the current session.
Parameters ​
• context: PlentysystemsIntegrationContext
Returns ​
Remarks ​
- Calls /rest/storefront/session/
- This method is used to get the cart data from the current session.
Example ​
ts
const { data } = await useSdk().plentysystems.getCart();