Home > @vsf-enterprise/epcc-api > CartEndpoints

# CartEndpoints interface

Cart related API endpoints

Signature:

export interface CartEndpoints 

# Methods

Method Description
addCustomerCartAssociation(context, params) Creates association between a customer and a cart. After cart association exist for a customer, the customer can access those carts across any device.
addCustomItemToCart(context, params) Adds a custom item to the cart
addProductToCart(context, params) Adds product to the cart.
addPromotionToCart(context, params) Applies discount to your cart as a special cart item type.
checkout(context, params) Converts your cart to an order. The cart remains and can be modified and checked out again if required.
createCart(context, params) Creates a cart with a name.
createTaxItems(context, params) Creates tax items for a cart item.
getCart(context, params) Gets a cart by id.
getCustomerCartsList(context, params) Retrieves the carts that are associated with the customer.
mergeCarts(context, params) A shopper can have more than one cart (like guest and customer ones) and decide to merge the carts into one cart.
removeCartItems(context, params) Removes items from the cart. Returns the remaining items.
updateCartItem(context, params) Updates a cart item. Returns the cart items.