ECommerceCart
ECommerce Cart
📄️ Validate cart
Validates the current cart and returns any discrepancies such as missing item data, pricing mismatches or not valid promotion codes.
📄️ Checkout as guest
Performs the checkout process with validated cart items for a guest user. Returns checkout details including `saleId`.
📄️ Checkout
Performs the checkout process with validated cart items for a signed-in user. Returns checkout details including `saleId`.
📄️ Get delivery methods
Retrieves a list of available delivery methods for the current cart, such as collection at store or home delivery.
📄️ Add items to cart
Adds items to a new or existing cart.
📄️ Update items in cart
Updates items in a signed-in user's existing cart.
📄️ Add lenses to cart
Adds contact lenses to a new or existing cart.
📄️ Update lens details in cart
Updates contact lens details in existing cart.
📄️ Add product to cart
Add other products to a new or existing cart.
📄️ Update product in cart
Updates the other product items in a user's existing cart.
📄️ Delete item in cart
Removes an item from a cart.
📄️ Delete all items in cart.
Remove all items from a cart.
📄️ Get cart
Retrieves the current cart state with all added items, prices and other details.
📄️ Apply promotions
Calculates and applies active promotions.