getCurrentCart( )


Retrieves the current site visitor/member's cart.

Notes:

  • A 'current cart' is automatically created when the site visitor/member adds an item to their cart, or when calling Add To Current Cart.
  • Calling this method before adding an item to the cart will return a 404 error.
  • This method requires visitor or member authentication.
Permissions
Read Orders
Learn more about app permissions.
Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<Cart>
Errors
404Not Found

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?