Alokai
You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x

AddToCartProps

Properties for adding a product to a cart.

export interface AddToCartProps extends BaseProps, BaseUserId {
	cartId: string;
	entry: OrderEntry & RequiredOrderEntryProps;
}

Properties

NameRequiredTypeDescription
cartIdRequiredstringCart identifier: cart code for logged in user, cart guid for anonymous user, current for the last modified cart.
entryRequiredOrderEntry & RequiredOrderEntryPropsRequest body parameter that contains details such as the product code (product.code), the quantity of a product (quantity), and the pickup store name (deliveryPointOfService.name).

Referenced Types

On this page