getCurrentCart( )
Retrieves the current site visitor's cart.
The getCurrentCart()
function returns a Promise that resolves when the current cart is retrieved.
Permission Scopes
For app development, you must have one of the following permission scopes:Manage Stores - all permissions
Read eCommerce - all read permissions
Read Orders
Read Stores - all read permissions
Manage eCommerce - all permissions
Manage Orders
Learn more about permission scopes.
Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<Cart>
Was this helpful?
Yes
No