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
| Name | Required | Type | Description |
|---|---|---|---|
cartId | Required | ApiUpdateCartParams["id"] | ID of the cart with the line item to update the quantity of. |
cartVersion | Required | ApiUpdateCartParams["version"] | Version of the cart with the line item to update the quantity of. |
productId | Required | ChangeCartLineItemQuantity["lineItemId"] | ID of the Line Item to update the quantity of. |
quantity | Required | ChangeCartLineItemQuantity["quantity"] | The desired quantity to set for the Line Item. |
versionFallback | Optional | ApiUpdateCartParams["versionFallback"] | Flag enabling request retry in case of a ConcurrentModification error. |