Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

AddProductToCartParams

Parameters for adding a product to cart.

export interface AddProductToCartParams extends CreateAddLineItemActionParams {
	cartId: ApiUpdateCartParams["id"];
	cartVersion: ApiUpdateCartParams["version"];
	versionFallback?: ApiUpdateCartParams["versionFallback"];
}

Properties

NameRequiredTypeDescription
cartIdRequiredApiUpdateCartParams["id"]ID of the cart to add the product to.
cartVersionRequiredApiUpdateCartParams["version"]Version of the cart to add the product to.
versionFallbackOptionalApiUpdateCartParams["versionFallback"]Flag enabling request retry in case of a ConcurrentModification error.

Referenced Types

On this page