@plentymarkets/shop-api / getCart
Function: getCart() ​
Defined in: api/getCart/index.ts:19
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();