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

UpdateCartQuantityParams

Parameters for updating cart line item quantity.

export interface UpdateCartQuantityParams {
	cartId: ApiUpdateCartParams["id"];
	cartVersion: ApiUpdateCartParams["version"];
	productId: ChangeCartLineItemQuantity["lineItemId"];
	quantity: ChangeCartLineItemQuantity["quantity"];
	versionFallback?: ApiUpdateCartParams["versionFallback"];
}

Properties

NameRequiredTypeDescription
cartIdRequiredApiUpdateCartParams["id"]ID of the cart with the line item to update the quantity of.
cartVersionRequiredApiUpdateCartParams["version"]Version of the cart with the line item to update the quantity of.
productIdRequiredChangeCartLineItemQuantity["lineItemId"]ID of the Line Item to update the quantity of.
quantityRequiredChangeCartLineItemQuantity["quantity"]The desired quantity to set for the Line Item.
versionFallbackOptionalApiUpdateCartParams["versionFallback"]Flag enabling request retry in case of a ConcurrentModification error.

Referenced Types

On this page