Light Mode
Get Current Cart Id
This endpoint returns the unique identifier (ID) of the current cart associated with a particular user or session. It is used to retrieve the current cart ID, which is typically required for other cart-related operations such as adding or removing items from the cart, checking out, or retrieving cart details.
Response
Usage
To perform the action of returning the ID of the current cart, the developer may call the getCurrentCartId()
as shown below.
salla.cart.getCurrentCartId()
.then((response) => {
/* add your code here */
});
Last modified: 10 months ago
Response
Usage